Conversation
932b1eb to
ef3d2d1
Compare
ef3d2d1 to
249aa89
Compare
| ? 'https://depot.galaxyproject.org/singularity/civicpy:5.2.0--pyhdfd78af_0' | ||
| : 'docker.io/griffithlab/civicpy:v5.2.0' }" |
There was a problem hiding this comment.
these are non-standard because I ran into issues building the wave container for docker + singularity
There was a problem hiding this comment.
We have a quay.io repository for custom docker containers. It is a recommendation to upload them there so that we stay independent of third parties that might delete the images. See the docs for more info. You can request the upload via #request-core in the nf-core slack. I think its fine to store it there until they resolve the issue on their side :)
famosab
left a comment
There was a problem hiding this comment.
Nice! I am also interested in having civic added to nf-core so I already added some feedback to help with the module development :)
| { assert snapshot( | ||
| file(process.out.vcf[0][1]).name, | ||
| process.out.versions_civicpy | ||
| ).match() } |
There was a problem hiding this comment.
You can use
{ assert snapshot(sanitizeOutput(process.out)).match() }
for the stub assertion. It should not be necessary to do any other assertions in the stub test.
| @@ -0,0 +1,5 @@ | |||
| process { | |||
| withName: CIVICPY_ANNOTATE { | |||
| ext.args = '--include-status accepted' | |||
There was a problem hiding this comment.
We want the ext.args to be present in the main.nf.test file. That makes everything more readable in one go. See the module specifications for more info.
| ? 'https://depot.galaxyproject.org/singularity/civicpy:5.2.0--pyhdfd78af_0' | ||
| : 'docker.io/griffithlab/civicpy:v5.2.0' }" |
There was a problem hiding this comment.
We have a quay.io repository for custom docker containers. It is a recommendation to upload them there so that we stay independent of third parties that might delete the images. See the docs for more info. You can request the upload via #request-core in the nf-core slack. I think its fine to store it there until they resolve the issue on their side :)
| val annotation_genome_version | ||
|
|
||
| output: | ||
| tuple val(meta), path("*.vcf"), emit: vcf |
There was a problem hiding this comment.
| tuple val(meta), path("*.vcf"), emit: vcf | |
| tuple val(meta), path("*.vcf"), emit: vcf |
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}.civic" | ||
|
|
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}.civic" |
There was a problem hiding this comment.
If input and output names can overlap, use task.ext.prefix to disambiguate. For example:
if ("${vcf}" == "${prefix}.vcf.gz") error "Input and output names are the same, use \"task.ext.prefix\" to disambiguate!"
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}.civic" | ||
|
|
||
| """ |
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/meta-schema.json | ||
| name: "civicpy_annotate" | ||
|
|
||
| description: A python client and analysis toolkit for the Clinical Interpretations of Variants in Cancer (CIViC) knowledgebase |
There was a problem hiding this comment.
Can you be more specific for annotate here?
|
|
||
| civicpy annotate-vcf \\ | ||
| --input-vcf ${vcf} \\ | ||
| --output-vcf ${prefix}.vcf \\ |
There was a problem hiding this comment.
We usually want the vcf files to be bgzipped if possible
There was a problem hiding this comment.
Conda probably has the same issue as the biocontainer / wave container?
PR checklist
Closes #11076.
This module adds
CIVICpy, an analysis toolkit and SDK for extracting and analyzing knowledge from the CIViC knowledgebase. Tests are added.civicpypackages, they are both lacking backports:Trying to add backports into the wave container build fails even if they're both from pip.
Also logged an issue on the civicpy repo here.
topic: versions- See version_topicslabelnf-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