mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 05:43:08 +00:00
8f199c4fa4
* Add atlas/splitmerge module * Finish the tests for atlas/splitmerge * Prettier * Update modules/atlas/splitmerge/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Remove curly brackets from meta.yml parameters For single-file outputs, as reviewed * Lintung: Remove trailing white-space Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
process ATLAS_SPLITMERGE {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::atlas=0.9.9" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/atlas:0.9.9--h082e891_0':
|
|
'quay.io/biocontainers/atlas:0.9.9--h082e891_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(bam), path(bai), path(read_group_settings), path(blacklist)
|
|
|
|
output:
|
|
tuple val(meta), path("*_mergedReads.bam"), path("*.txt.gz"), emit: data
|
|
path "versions.yml", emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def optional = blacklist ? 'blacklist=${blacklist}' : ''
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
atlas \\
|
|
task=splitMerge bam=${bam} \\
|
|
readGroupSettings=${read_group_settings}\\
|
|
$optional \\
|
|
$args
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
atlas: \$((atlas 2>&1) | grep Atlas | head -n 1 | sed -e 's/^[ \t]*Atlas //')
|
|
END_VERSIONS
|
|
"""
|
|
}
|