Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make surpi db for new NCBI accession2taxid files #36

Open
DooYal opened this issue Feb 14, 2022 · 0 comments
Open

How to make surpi db for new NCBI accession2taxid files #36

DooYal opened this issue Feb 14, 2022 · 0 comments

Comments

@DooYal
Copy link

DooYal commented Feb 14, 2022

I modified the create_taxonomy shell and python scripts with replacing "gi_taxid_nucl.dmp.gz" into ”nucl_gb.accession2taxid.gz“ and also replacing such filename for protein.
However, when it comes to the step 4 of create_taxonomy shell script, there is always an error:

Starting creation of taxonomy SQLite databases...
Creating names_nodes_scientific.db...
Creating taxid_prot.db...
Traceback (most recent call last):
File "/mnt/upan/share/surpi/create_taxonomy_db.py", line 76, in
c.execute("INSERT INTO gi_taxid VALUES ("+line[0]+","+line[1]+")")
sqlite3.OperationalError: no such column: accession

I found that there is actually "accession" in the header of corresponding files, so, where should I modify to correctly build the surpi protein and nucleotide db?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant