This commit is contained in:
veitveit 2022-01-12 16:58:30 +01:00
parent ab9b204b47
commit 5e81095694

View file

@ -1,16 +1,6 @@
// Import generic module functions
include { initOptions; saveFiles; getSoftwareName } from './functions'
params.options = [:]
options = initOptions(params.options)
process MAXQUANT_LFQ { process MAXQUANT_LFQ {
tag "$meta.id" tag "$meta.id"
label 'process_long' label 'process_long'
publishDir "${params.outdir}",
mode: params.publish_dir_mode,
saveAs: { filename -> saveFiles(filename:filename, options:params.options, publish_dir:getSoftwareName(task.process), meta:meta, publish_by_meta:['id']) }
conda (params.enable_conda ? "bioconda::maxquant=2.0.1.0" : null) conda (params.enable_conda ? "bioconda::maxquant=2.0.1.0" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) { if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
@ -29,8 +19,8 @@ process MAXQUANT_LFQ {
path "*.version.txt" , emit: version path "*.version.txt" , emit: version
script: script:
def software = getSoftwareName(task.process) def args = task.ext.args ?: ''
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}" def prefix = task.ext.prefix ?: "${meta.id}"
""" """