-
Notifications
You must be signed in to change notification settings - Fork 16
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
Support for non mapped accession with taxid #1
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Support for chunk number during data insertion
…sion number, the table exists in the database - Also surrounded call to yield in case a taxid is not found in the database (E.g.: 0), do not throw stack trace but print a small error message on stderr
…speed up a little bit - Chunk value can be passed with 'create' sub option - If a taxid is not found in the database, a message is thrown to the user
Hi, Thank you for your comments and your improvements! Cheers, |
The line `for table, acc_file in acc_dl_dict.items():` was duplicated and caused the db with multiple accession tables to fail
Everything looks ready to be merged. Thanks again for your contribution! |
Thanks for merging 👍 and sorry for duplicated loop, a wrong copy/paste |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
First of all, I've found your project very interesting and tried to use it. It works well except some case where an accession number is not mapped to a taxid, see method
_unmapped_taxid
.So I've made some modifications to your code to try to support this and avoid a stack trace.
I've also tried to speed up a little bit the data loading using
insert_many
when loading other files thannames.dmp
andnodes.dmp
.Have a look at the PR and let me know.
Best
Emmanuel