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

Accession loading issue #85

Open
bosborne opened this issue May 7, 2020 · 3 comments
Open

Accession loading issue #85

bosborne opened this issue May 7, 2020 · 3 comments

Comments

@bosborne
Copy link

bosborne commented May 7, 2020

I used the "prot" option when building the database, thinking that protein ids would be loaded, but:

sqlite> select count() from accession;
0
sqlite> select count(
) from taxa;
2244574
sqlite>

There's no information about proteins in the database. Why is this option called "prot" when only taxonomic data is loaded? The documentation should describe what these different "division" options mean. Or perhaps the "prot" option is not working? My commands:

taxadb download --outdir taxadb --type prot --quiet
taxadb create --input taxadb --dbname taxadb.sqlite --chunk 100 --division prot --quiet

@bosborne bosborne changed the title Documentation issue "prot" option issue May 8, 2020
@bosborne
Copy link
Author

bosborne commented May 8, 2020

Same issue with "full":

sqlite> .tables
accession taxa
sqlite> select count() from accession;
0
sqlite> select count(
) from taxa;
2244856

taxadb download --outdir taxadb --type full --quiet
taxadb create --input taxadb --dbname taxadb.sqlite --chunk 100 --division full --fast --quiet

@bosborne
Copy link
Author

bosborne commented May 8, 2020

These commands take hours to complete by the way, and logging seems to look right. It's as if there's no "commit" after the accession loading. But PeeWee is supposed to autocommit, yes?

@bosborne bosborne changed the title "prot" option issue Accession loading issue May 8, 2020
@bosborne
Copy link
Author

bosborne commented May 9, 2020

Now I've got it to work:

sqlite> select count() from accession;
832375605
sqlite> select count(
) from accession;
832375605

I'll put in a pull request, the code does an explicit "commit".

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