Skip to content

Error while writing fasta files #33

@yurunxian

Description

@yurunxian

Hi!
I encountered a error when execuated avp prepare. When the avp prepare finished extracting hits from DB, an error showed up.
The seq name in ./tmp/setblast.fa looks like ">KAG6554565.1@56867", so I thought I correctely prepared the NR database. I also found although there are 151483 seq names in ./tmp/extract_id.txt, a total of 226185 seqs are present in ./tmp/setblast.fa.

[+] Setting up
[!] Selected 3156 HGT candidates
[+] Parsing hits file and grouping similar queries
[!] Formed 2814 groups
[+] Extracting hits from DB
[+] Writing fasta files
Traceback (most recent call last):
File "/data/yurx/software/AvP/avp", line 7, in
main()
File "/data/yurx/software/AvP/depot/interface.py", line 29, in main
prepare.main()
File "/data/yurx/software/AvP/depot/prepare.py", line 333, in main
lname = ncbi.translate_to_names(lnode) # This does not output them in order
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/yurx/anaconda3/envs/AvP/lib/python3.12/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 324, in translate_to_names
id2name = self.get_taxid_translator(taxids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/yurx/anaconda3/envs/AvP/lib/python3.12/site-packages/ete3/ncbi_taxonomy/ncbiquery.py", line 268, in get_taxid_translator
result = self.db.execute(cmd)
^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: no such column: "1" - should this be a string literal in single-quotes?<

As I have several species to analyze, the error message varies among different analyses. For example, in another species:

sqlite3.OperationalError: no such column: "574976" - should this be a string literal in single-quotes?

Could you please help check out this issue? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions