edgardomortiz / vcf2phylip

Convert SNPs in VCF format to PHYLIP, NEXUS, binary NEXUS, or FASTA alignments for phylogenetic analysis
GNU General Public License v3.0
294 stars 85 forks source link

Getting an error on vcf2phylip #7

Closed NLRivera1 closed 5 years ago

NLRivera1 commented 5 years ago

Hello, I'm having issues converting my vcf file. I work with Ubuntu.

The command I entered: python ~/vcf2phylip/vcf2phylip.py -i Final.vcf Traceback (most recent call last): File "/home/computer/vcf2phylip/vcf2phylip.py", line 397, in main() File "/home/computer/vcf2phylip/vcf2phylip.py", line 220, in main site_tmp = ''.join([(amb[(nuc[broken[i][0]], nuc[broken[i][2]])]) for i in range(9, index_last_sample)]) KeyError: '2'

I've attached the file here as well. Final.vcf.gz

Any and all help is appreciated!

edgardomortiz commented 5 years ago

Hello, please clone again, retry, and let me know if it works. It should be fixed, I tested it with the provided matrix.

Edgardo

edgardomortiz commented 5 years ago

I will assume the issue was resolved and close it.

Edgardo