-
Notifications
You must be signed in to change notification settings - Fork 14
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
ENH: Add fetch-ncbi-taxonomy
action
#118
Conversation
Hey @VinzentRisch, do you mind giving this one a review too? It is the follow up from the last one. I know it looks huge but it's way smaller than it looks (194 insertions(+), 4 deletions(-)). But it builds on top of branches that are not yet merged (moshpit PRs listed in the tasklist), so that is why it looks so big in the diff. If you want to see only the pertinent changes you can run the following in you local copy: git diff build_eggnog_diamond_db_issue_115 fetch_ncbi_iss_107 |
Hey @Sann5, why does this depend on the two other PRs in q2-moshpit? |
Hey @misialq . It does not strictly depend on them but because it modifies the same files I decided to make this branch off of the same branch as those two PRs, to avoid merging conflicts. Therefore it would be nice if those other two are merged before this one :). |
I see. Let's try to avoid that in the future though - it makes the review process much more complicated than it needs to be - now whoever is reviewing your PRs has to look at the same code changes three times. The merge conflicts you would get from what you have in those would be rather easy to solve, if any, so let's try not to focus too much on what may need resolution later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @Sann5, I ran the command and it runs without problems. 🙂
But there are two tests that fail for me
- kraken2/tests/test_classification.py::TestClassifyKraken2Reads::test_paired_end_reads_parallel <- ../q2-moshpit/q2_moshpit/kraken2/tests/test_classification.py Fatal Python error: Segmentation fault
raise Exception("Interchange failed to start")
Exception: Interchange failed to start
- kraken2/tests/test_classification.py::TestClassifyKraken2Contigs::test_contigs_parallel <- ../q2-moshpit/q2_moshpit/kraken2/tests/test_classification.py FAILED[ 48%
raise ValueError('ParallelConfig already loaded, cannot nest ParallelConfigs)
ValueError: ParallelConfig already loaded, cannot nest ParallelConfigs
could you look into that?
These are from another PR :). They are failing for me too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Michal Ziemski <[email protected]>
8883f6d
to
8233505
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I'm testing the action itself, please clean up this PR as pointed out below.
Co-authored-by: Michal Ziemski <[email protected]>
Alright, alright 😊 my bad too, I looked at PRs in the wrong order 😅 Waiting for the changes from the other one then ;) |
@misialq ready for review 🚀
|
Co-authored-by: Michal Ziemski <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #118 +/- ##
========================================
Coverage 97.74% 97.74%
========================================
Files 35 45 +10
Lines 2172 2799 +627
========================================
+ Hits 2123 2736 +613
- Misses 49 63 +14 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks @Sann5! 🥇
About this repo
q2-moshpit
is aqiime2
plugin that offers various analyses for shotgun metagenome data.fetch-ncbi-taxonomy
to theeggnog._dbs
module, as well as test and test data for it.What's new
build-custom-diamond-db
action can take an optionaltaxonomy
input. By providing such input users can create a Diamond database with taxonomy features. Previously, to provide this optional input, users had to rely on theqiime tools import
functionality. The goal of this action is to replace this import method with an action that fetches the corresponding data from the NCBI ftp server.build_custom_diamond_db
action) #107Additional Info
Merge after
NCBITaxonomyDirFmt
to accomodate data-version file q2-types-genomics#73build-eggnog-diamond-db
action #116Set up an environment
Run it locally
Running the tests