-
Notifications
You must be signed in to change notification settings - Fork 838
Yleaf module added @3.3.0 #8210
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
base: master
Are you sure you want to change the base?
Conversation
This adds the Yleaf package (https://doi.org/10.1093/molbev/msy032) at 3.3.0. Currently locked to the local version while necessary Yleaf update is pending.
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.
Looking good, some initial comments until bioconda recipe is ready
def args = task.ext.args ?: '' | ||
def prefix = task.ext.prefix ?: "${meta.id}" | ||
def ref_genome = reference_genome ?: "hg38" | ||
// These defaults correspond to the defaults used in the Yleaf package |
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.
Small comment: if the tool itself has it's own defaults then you don't need to define all of these. Input vals
should ONLY be for mandatory inputs where there is no default 1
Footnotes
{ assert process.out.versions != null }, | ||
{ assert process.out.haplogroup != null }, | ||
{ assert process.out.tree != null }, | ||
{ assert process.out.log != null } |
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.
Is this checking that teh file exists because they are variable? If so we have other patterns for this: https://nf-co.re/docs/contributing/nf-test/assertions
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 fact you don't need the !=
bit at all
then { | ||
assertAll( | ||
{ assert process.success }, | ||
{ assert process.out.versions != null }, |
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.
{ assert process.out.versions != null }, | |
{ assert process.out.versions }, |
Also all of these can go into a snapshot()
function, so they are more explicitly recorded - see other modules for examples
This adds the Yleaf package (https://doi.org/10.1093/molbev/msy032) at
3.3.0. Currently locked to the local version while necessary Yleaf
update is pending (genid/Yleaf#32)
Closes #8211.
PR checklist
Closes #XXX
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