mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
78e2e76b24
* hmmcopy/mapCounter * update test * Remove bam tag * Remove /tmp/ path from test.yml * Update modules/hmmcopy/mapcounter/meta.yml Incorporate formatting changes Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update modules/hmmcopy/mapcounter/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Update tests/modules/hmmcopy/mapcounter/main.nf Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * ichorCNA run * Add panel of normals code * Try and fix tests * Edit string detection in tests * Fix linting issues * Just failing END_VERSIONS * Fixed versions.yml * Added DOI * Optional name for file * Add when command * Updated when * Update modules/ichorcna/createpon/main.nf Co-authored-by: Simon Pearce <simon.pearce@cruk.manchester.ac.uk> Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
50 lines
1.5 KiB
Text
50 lines
1.5 KiB
Text
def VERSION = '0.3.2' // Version information not provided by tool on CLI
|
|
|
|
process ICHORCNA_RUN {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::r-ichorcna=0.3.2" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/r-ichorcna:0.3.2--r41hdfd78af_0' :
|
|
'quay.io/biocontainers/r-ichorcna:0.3.2--r41hdfd78af_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(wig)
|
|
path gc_wig
|
|
path map_wig
|
|
path panel_of_normals
|
|
path centromere
|
|
|
|
output:
|
|
tuple val(meta), path("*.cna.seg") , emit: cna_seg
|
|
tuple val(meta), path("*.params.txt") , emit: ichorcna_params
|
|
path "**/*genomeWide.pdf" , emit: genome_plot
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
def pon = panel_of_normals ? "--normalPanel ${panel_of_normals}" : ''
|
|
def centro = centromere ? "--centromere ${centromere}" : ''
|
|
|
|
"""
|
|
runIchorCNA.R --id ${prefix} \\
|
|
$args \\
|
|
--WIG ${wig} \\
|
|
--id ${meta.id} \\
|
|
--gcWig ${gc_wig} \\
|
|
--mapWig ${map_wig} \\
|
|
${pon} \\
|
|
${centro} \\
|
|
--outDir .
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
ichorcna: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|