I have a .tsv file, that looks like this:
A B C
SRX479927.bed SRX821810.bed 0.258912
SRX032890.bed SRX821809.bed 0.161135
SRX660083.bed SRX821816.bed 0.00379202
SRX821817.bed SRX821818.bed 0.0902696
SRX660084.bed SRX479928.bed 0.2671
SRX821806.bed SRX821811.bed 0.458604
SRX476926.bed SRX821806.bed 0.0303042
SRX196107.bed SRX414970.bed 0.221135
Where A and B are files, and C is an index of the similarity of these files. I am trying to construct a matrix in python with A on the y-axis and B on the x-axis, filling in the corresponding values. I have done this before for .tsv files with 2 columns (files and values), but cannot succeed with 3 columns. Can anybody provide an approach on how to solve this? I am sorry if this was asked before, but i can only find questions on how to construct a matrix from 2 columns.