I have a file after parse it using following code
with open ('cl1_vs_cl1.blast', 'rb') as csvfile:
read= csv.reader(csvfile, delimiter='\t', quotechar='|')
for row in read:
print row[0],row[1],row[11]
it will generate a file like
A B = n1
A C = n2
A D = n3
B C = n4
B D = n5
......
i would like to assign the pairwised data into a 2D array.
A B C D .....
A n1 n2 n3
B n1
C n2 n4
D n3 n5 .......
How can i achieve it?
if I also want to save the pairwised data as a hash of hashs in perl how i suppose to do it?
Thanks a lot!
…
For the hash part (also known as a dictionary in python)
This will give allow you to access your info by myHash[‘A’][‘B’] and get back n1