mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
greatly simplify syntax (#1121)
This commit is contained in:
parent
6510a7ff4f
commit
3b366c7c6a
4 changed files with 8 additions and 12 deletions
|
@ -3,11 +3,9 @@ process ENSEMBLVEP {
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::ensembl-vep=104.3" : null)
|
conda (params.enable_conda ? "bioconda::ensembl-vep=104.3" : null)
|
||||||
container "${ task.ext.container_tag ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
"nfcore/vep:${task.ext.container_tag}" :
|
'https://depot.galaxyproject.org/singularity/ensembl-vep:104.3--pl5262h4a94de4_0' :
|
||||||
workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
'quay.io/biocontainers/ensembl-vep:104.3--pl5262h4a94de4_0' }"
|
||||||
'https://depot.galaxyproject.org/singularity/ensembl-vep:104.3--pl5262h4a94de4_0' :
|
|
||||||
'quay.io/biocontainers/ensembl-vep:104.3--pl5262h4a94de4_0' }"
|
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(vcf)
|
tuple val(meta), path(vcf)
|
||||||
|
|
|
@ -3,11 +3,9 @@ process SNPEFF {
|
||||||
label 'process_medium'
|
label 'process_medium'
|
||||||
|
|
||||||
conda (params.enable_conda ? "bioconda::snpeff=5.0" : null)
|
conda (params.enable_conda ? "bioconda::snpeff=5.0" : null)
|
||||||
container "${ task.ext.container_tag ?
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
||||||
"nfcore/snpeff:${task.ext.container_tag}" :
|
'https://depot.galaxyproject.org/singularity/snpeff:5.0--hdfd78af_1' :
|
||||||
workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
'quay.io/biocontainers/snpeff:5.0--hdfd78af_1' }"
|
||||||
'https://depot.galaxyproject.org/singularity/snpeff:5.0--hdfd78af_1' :
|
|
||||||
'quay.io/biocontainers/snpeff:5.0--hdfd78af_1' }"
|
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(vcf)
|
tuple val(meta), path(vcf)
|
||||||
|
|
|
@ -3,7 +3,7 @@ process {
|
||||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||||
|
|
||||||
withName: ENSEMBLVEP {
|
withName: ENSEMBLVEP {
|
||||||
ext.container_tag = '104.3.WBcel235'
|
container = 'nfcore/vep:104.3.WBcel235'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ process {
|
||||||
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
publishDir = { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" }
|
||||||
|
|
||||||
withName: SNPEFF {
|
withName: SNPEFF {
|
||||||
ext.container_tag = '5.0.WBcel235'
|
container = 'nfcore/snpeff:5.0.WBcel235'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue