mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
32 lines
900 B
Text
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
|
|
"""
|
|
}
|