-
Notifications
You must be signed in to change notification settings - Fork 695
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
Add motus prep_long #6590
Add motus prep_long #6590
Conversation
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.
Tests should be fixed with echo '' | gzip >
I think!
Co-authored-by: Felix Lenner <[email protected]>
Co-authored-by: Felix Lenner <[email protected]>
Co-authored-by: Felix Lenner <[email protected]>
Co-authored-by: Felix Lenner <[email protected]>
Co-authored-by: Felix Lenner <[email protected]>
Co-authored-by: Felix Lenner <[email protected]>
process { | ||
""" | ||
input[0] = Channel.of([ | ||
file('https://raw.githubusercontent.com/motu-tool/mOTUs/master/motus/downloadDB.py') |
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.
This seems strange, why is the input a python script?
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.
In order to run the module, we need to run the download of the motus db first.This is how we have been doing with the motus profile as well.
https://github.com/nf-core/modules/blob/master/modules/nf-core/motus/profile/tests/main.nf.test#L20
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.
But the script could just be part of the module?
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.
Could you please explain what you mean? We need the script to run the test.
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.
I think @SPPearce means we could just copy and paste teh code from the mOTUs repository and dump it straight into the module itself.
I think we did this @SPPearce as the script occasioanlly changes to account for changes in where the the database gets downloaded from or something, so it was easier to just download on the fly.
So any copied-code could potentially break.
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.
Yes, that is what I meant, to include the script itself with the module for the download module.
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.
But if there is a reason behind it then that is fine. It isn't relevant for this module anyway.
process { | ||
""" | ||
input[0] = Channel.of([ | ||
file('https://raw.githubusercontent.com/motu-tool/mOTUs/master/motus/downloadDB.py') |
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.
But if there is a reason behind it then that is fine. It isn't relevant for this module anyway.
PR checklist
Closes #6589
versions.yml
file.label
nf-core modules test <MODULE> --profile docker
nf-core modules test <MODULE> --profile singularity
nf-core modules test <MODULE> --profile conda
nf-core subworkflows test <SUBWORKFLOW> --profile docker
nf-core subworkflows test <SUBWORKFLOW> --profile singularity
nf-core subworkflows test <SUBWORKFLOW> --profile conda