mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
5e7daa7b96
* Add --max--ppsize option * Add args to phantompeakqualtools and all the missing files (test, yml, ...) * Fix tests * Add the nextflow.config * Fix tests
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
def VERSION = '1.2.2' // Version information not provided by tool on CLI
|
|
|
|
process PHANTOMPEAKQUALTOOLS {
|
|
tag "$meta.id"
|
|
label 'process_medium'
|
|
|
|
conda (params.enable_conda ? "bioconda::phantompeakqualtools=1.2.2" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/phantompeakqualtools:1.2.2--0' :
|
|
'quay.io/biocontainers/phantompeakqualtools:1.2.2--0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(bam)
|
|
|
|
output:
|
|
tuple val(meta), path("*.out") , emit: spp
|
|
tuple val(meta), path("*.pdf") , emit: pdf
|
|
tuple val(meta), path("*.Rdata"), emit: rdata
|
|
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}"
|
|
"""
|
|
RUN_SPP=`which run_spp.R`
|
|
Rscript $args -e "library(caTools); source(\\"\$RUN_SPP\\")" -c="$bam" -savp="${prefix}.spp.pdf" -savd="${prefix}.spp.Rdata" -out="${prefix}.spp.out" -p=$task.cpus
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
phantompeakqualtools: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|