Adds --krona_db parameter to point at a local copy of the db needed for Krona. Suggested in Issue #404. #497
Adds --krona_db parameter to point at a local copy of the db needed for Krona. Suggested in Issue #404. #497jfy133 merged 10 commits intonf-core:devfrom willros:local-krona-db
Conversation
|
d4straub
left a comment
There was a problem hiding this comment.
Looks good to me.
Is there a way to include that into tests? Potentially with files from the test of the nf-core module ktimporttaxonomy?
There was a problem hiding this comment.
Eventually it might be good to go to https://nf-co.re/modules/krona_ktimporttaxonomy (which seems to do the same), but I agree that --krona_db parameter is in any case a good addition.
There was a problem hiding this comment.
I will look into how the test is implemented in https://nf-co.re/modules/krona_ktimporttaxonomy.
Co-authored-by: Daniel Straub <[email protected]>
Co-authored-by: James A. Fellows Yates <[email protected]>
|
Just running a little test, and then can merge |
|
Hm, auto download didn't work.... |
jfy133
left a comment
There was a problem hiding this comment.
The KRONA module received null rather than the .getParent() output for autodownloading...
|
Ah I think this is because what is literally given to the module is |
|
After thinking about it, my suggestion is to follow what is done in various Supply the whole directory containing the taxonomy files, then search for tab, and resolve the path that way. |
|
Looking deeper into the krona module of nf-core, why not use the process implemented there? https://github.com/nf-core/modules/blob/868d4c3dc7a3db39d36184173e4fe3484499396e/modules/nf-core/krona/ktimporttaxonomy/main.nf Anyways, I implemented the same solution in the local process for this pipeline. |
We also need to do a big pass through the pipeline replaceing local modules with now-official moduels... but this will requrie a big overhaul in the future! So thanks again for contribution and we hope you will keep contributing! |
closes #404
The user can now point at a local copy of the the taxonomy.tab file needed for running Krona.
PR checklist
nf-core lint).nextflow run . -profile test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).