Newer
Older
/*
* hicexplorer - hicFindTADs
*/
process HIC_FIND_TADS {
label 'process_medium'
input:
tuple val(meta), path(cool)
output:
path("*hicfindtads*"), emit:results
path("versions.yml"), emit:versions
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
hicFindTADs --matrix ${cool} \
--outPrefix ${prefix}_hicfindtads \
${args} \
--numberOfProcessors ${task.cpus}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
hicexplorer: \$(hicFindTADs --version 2>&1 | sed 's/hicFindTADs //')
END_VERSIONS
"""
}