nf-core_modules/modules/bismark/genomepreparation/main.nf
2022-02-04 09:53:32 +01:00

32 lines
900 B
Text

process BISMARK_GENOMEPREPARATION {
tag "$fasta"
label 'process_high'
conda (params.enable_conda ? "bioconda::bismark=0.23.0" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/bismark:0.23.0--0' :
'quay.io/biocontainers/bismark:0.23.0--0' }"
input:
path fasta, stageAs: "BismarkIndex/*"
output:
path "BismarkIndex" , emit: index
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
"""
bismark_genome_preparation \\
$args \\
BismarkIndex
cat <<-END_VERSIONS > versions.yml
"${task.process}":
bismark: \$(echo \$(bismark -v 2>&1) | sed 's/^.*Bismark Version: v//; s/Copyright.*\$//')
END_VERSIONS
"""
}