2022-03-25 17:22:17 +00:00
|
|
|
process CONTROLFREEC_ASSESSSIGNIFICANCE {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_low'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? "bioconda::control-freec=11.6" : null)
|
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/control-freec:11.6--h1b792b2_1':
|
|
|
|
'quay.io/biocontainers/control-freec:11.6--h1b792b2_1' }"
|
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(cnvs), path(ratio)
|
|
|
|
|
|
|
|
output:
|
2022-03-25 19:49:08 +00:00
|
|
|
tuple val(meta), path("*.p.value.txt"), emit: p_value_txt
|
2022-03-25 17:22:17 +00:00
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
|
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
2022-03-25 19:49:08 +00:00
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
2022-03-25 17:22:17 +00:00
|
|
|
"""
|
2022-04-08 09:43:40 +00:00
|
|
|
cat \$(which assess_significance.R) | R --slave --args ${cnvs} ${ratio}
|
2022-03-25 17:22:17 +00:00
|
|
|
|
2022-03-25 19:49:08 +00:00
|
|
|
mv *.p.value.txt ${prefix}.p.value.txt
|
|
|
|
|
2022-03-25 17:22:17 +00:00
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
controlfreec: \$(echo \$(freec -version 2>&1) | sed 's/^.*Control-FREEC //; s/:.*\$//' | sed -e "s/Control-FREEC v//g" )
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-04-08 09:43:40 +00:00
|
|
|
|
|
|
|
stub:
|
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
|
|
"""
|
|
|
|
touch ${prefix}.p.value.txt
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
controlfreec: \$(echo \$(freec -version 2>&1) | sed 's/^.*Control-FREEC //; s/:.*\$//' | sed -e "s/Control-FREEC v//g" )
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
2022-03-25 17:22:17 +00:00
|
|
|
}
|