Traceback (most recent call last):
File "$DIR/SILVA-to-RDP/fix_fasta_labels.py", line 16, in <module>
output_fasta = open(argv[2], "w")
IndexError: list index out of range
From some googling, it looks like this is an issue with argv...I'm not at all familiar with C or Python. Has anybody run into similar issues with these scripts?
Thanks!
Python 2.7.8 (default, Apr 9 2015, 02:32:06)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
The full command I was running is:
python ~/lus/SILVA-to-RDP/fix_fasta_labels.py ~/lus/SILVA-to-RDP/repex.fasta > ~/lus/SILVA-to-RDP/repex_clean.fasta
I changed the command to the following, which runs perfectly fine (fixed my mistake!):
python ~/lus/SILVA-to-RDP/fix_fasta_labels.py ~/lus/SILVA-to-RDP/repex.fasta ~/lus/SILVA-to-RDP/repex_clean.fasta
Thanks for pointing me toward the command as the issue!