rrwick / Bacsort

a collection of scripts for organising bacterial genomes by species
GNU General Public License v3.0
76 stars 9 forks source link

pairwise_identities_to_distance_matrix.py failed #6

Closed limin321 closed 4 years ago

limin321 commented 4 years ago

Hi I got a matrix file from running fastANI, it is lower-triangle matrices. Now I want to create a tree from it, so first I run pairwise_identities_to_distance_matrix.py trying to convert it to phylip format. Following is my code:

python pairwise_identities_to_distance_matrix.py --max_dist 0.2 10agr.matrix  > 10agr.phylip

However, I got the error message: Convert FastANI distances to PHYLIP matrix

Traceback (most recent call last): File "pairwise_identities_to_distance_matrix.py", line 94, in main() File "pairwise_identities_to_distance_matrix.py", line 52, in main cluster_2 = parts[1] IndexError: list index out of range

Can anyone please help me explain what goes wrong? How should I fix it? ################################################################### I think I figured it out. I should use the output file directly, instead of the matrix file.

Thanks. Limin