-
Notifications
You must be signed in to change notification settings - Fork 7
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 module parameters #51
Conversation
For |
Not sure why the following tests are failing:
|
firstly woohoo thanks for getting t this! I'm a bit swamped with the meta-omics hackathon, but looking closely at the nf-test runs on GHA:
I gess something might be wrong with the Krakenuniq args insertion? I've not looked at your changes yet though! |
It seems that defining the parameters as I did:
is generating the error, also the
|
Maybe try:
Or something to insert only if the parameter is actually filled with something |
Using an empty string
In the case of malt it might work but we still need to decide if |
So for the MALT issue, we can maybe have an input validation check (see the
And if it does contain the flag (probably short and long flags, if they ahve them), then give an errror |
For krakenuniq, the error message seems to be related to a dependency: " db-build error: JELLYFISH_BIN: unbound variable #136 " |
Ahhh, ok I know that error. I need to double check where I've fixed that error before (either in the classification module, or in a modules conf in taxprofiler), but probably need to copy the same fix to the build module |
Sorry for the delay @alxndrdiaz , travelling and then sick kid since :( Looking into this now! |
Although @alxndrdiaz it looks like tests are passing now? But if you stil have the same issue, see the bottom of |
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.
Almost there, I think just missing krakenuniq at the moment!
nextflow.config
Outdated
@@ -62,11 +62,17 @@ params { | |||
build_diamond = false | |||
build_kaiju = false | |||
build_malt = false | |||
malt_sequencetype = "DNA" |
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.
If we don't use this anymore, we should remove this from the nextflow_schema.json
file, and references to it elsehwere, (e.g. test profiles etc)
Currently we get the following warning:
WARN: Access to undefined parameter `malt_sequencetype` -- Initialise it to a default value eg. `params.malt_sequencetype = some_value`
@alxndrdiaz I also just merged in ganon-biuld so will need an entry for this too now, but looks like it should be quite straight forward :) |
@alxndrdiaz if kids don't get sick in the next 12 hours I can resolve the conflicts here, and I may go ahead and add ganon on your behalf tomorrow morning (unless you do it in the meantime) |
@jfy133 I checked the files that could be related to the malt warning but didn't find any reference to the parameter. I have time to check that again and do the ganon update. |
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.0.2. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
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.
Once template is in, we can merge that into here update tests if necessary and the nwe are good to go!
@nf-core-bot fix linting |
…ule_parameters
OK got the test working and updated your affiliation @alxndrdiaz ! I will review as a last check and then can merge in :) |
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.
Woohooo! Thanks @alxndrdiaz !!
We can chat on slack what to do next :)
PR checklist
nf-core pipelines lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).