GDKO / AvP

Automatic evaluation of HGTs
GNU General Public License v3.0
18 stars 2 forks source link

acc2taxid.py with uniref50 - ValueError: not enough values to unpack (expected 2, got 1) #3

Closed alexvasilikop closed 1 year ago

alexvasilikop commented 1 year ago

Hello,

I am trying to create the tax ID file using the acc2taxid.py script and uniref50. I run: $ python3 AvP/aux_scripts/acc2taxid.py -m uniref -i uniref50/uniref50.fasta.gz > Adineta_ricciae/sp.taxids

and get: Traceback (most recent call last): File "AvP/aux_scripts/acc2taxid.py", line 50, in main() File "AvP/aux_scripts/acc2taxid.py", line 43, in main tr, id = record.name.split("|") ValueError: not enough values to unpack (expected 2, got 1)

When using the swissprot mode the script terminates normally. $ python3 AvP/aux_scripts/acc2taxid.py -m swissprot -i swissprot/uniprot_sprot.fasta.gz > sp.taxids $

Best

alexvasilikop commented 1 year ago

Problem was caused because the headers were not renamed as suggested in the wiki documentation. Therefore I close this issue.