-
Notifications
You must be signed in to change notification settings - Fork 934
Vembrane filter #9340
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?
Vembrane filter #9340
Conversation
|
Hi @famosab, This PR is originates from PR #9290, which was done using a company git account. The new PR #9340 is now from a personal account. All previous comments can be viewed in this URL. In this PR, I have added the following changes:
Please let me know if there are more changes to be made for this PR to be merge-able :) ! Cheers, |
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 @dhtt, we bump versions on separate PRs with renovate, so this file shouldn't be modified here
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 please remove this :)
| assertAll( | ||
| { assert process.success }, | ||
| { assert snapshot( | ||
| process.out |
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.
| process.out | |
| process.out, | |
| path(process.out.versions[0]).yaml |
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.
Can you run nextflow lint on this :)
| vembrane filter \\ | ||
| ${args} \\ | ||
| ${expression} \\ | ||
| -o ${prefix}.filtered.vcf \\ |
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 nf-core we prefer to let the user of the module handle the output name. So we rather make them check that the prefix is modified,.
| -o ${prefix}.filtered.vcf \\ | |
| -o ${prefix}.vcf \\ |
also .vcf might not be correct maybe you can check the other vembrane module to see how this can be handled (as the output can be different formats).
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
|
|
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 ("${rds}" == "${prefix}.rds") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
something in that direction :)
famosab
left a comment
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 already!
| @@ -0,0 +1,63 @@ | |||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | |||
| name: "vembrane_filter" | |||
| description: write your description here | |||
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.
missing!
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 please remove this :)
d579125 to
a290d09
Compare
a290d09 to
0c7152a
Compare
98c1c72 to
fcadf1b
Compare
famosab
left a comment
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 otherwise - very nice work 🚀
| val expression | ||
|
|
||
| output: | ||
| tuple val(meta), path("*.{vcf,bcf,bcf.gz}"), emit: filtered_variant |
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 I would just call the output channel vcf as well (is more in line with the other modules)
| tuple val(meta), path("*.{vcf,bcf,bcf.gz}"), emit: filtered_variant | |
| tuple val(meta), path("*.{vcf,bcf,bcf.gz}"), emit: vcf |
| ontologies: [] | ||
|
|
||
| output: | ||
| filtered_variant: |
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.
| filtered_variant: | |
| vcf: |
PR checklist
Closes #XXX
versions.ymlfile.labelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda