2021-11-16 12:26:55 +00:00
|
|
|
process MAXQUANT_LFQ {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_long'
|
2022-02-03 11:45:21 +00:00
|
|
|
conda (params.enable_conda ? "bioconda::maxquant=2.0.3.0=py310hdfd78af_1" : null)
|
2021-11-16 12:26:55 +00:00
|
|
|
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
|
2022-02-03 10:38:44 +00:00
|
|
|
container "https://depot.galaxyproject.org/singularity/maxquant:2.0.3.0--py310hdfd78af_1"
|
2021-11-16 12:26:55 +00:00
|
|
|
} else {
|
2022-02-03 10:38:44 +00:00
|
|
|
container "quay.io/biocontainers/maxquant:2.0.3.0--py310hdfd78af_1"
|
2021-11-16 12:26:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
input:
|
2021-11-21 09:47:16 +00:00
|
|
|
tuple val(meta), path(fasta), path(paramfile)
|
|
|
|
path raw
|
2021-11-16 12:26:55 +00:00
|
|
|
|
|
|
|
output:
|
2021-12-17 11:34:28 +00:00
|
|
|
tuple val(meta), path("*.txt"), emit: maxquant_txt
|
2022-02-08 09:02:54 +00:00
|
|
|
path "versions.yml" , emit: versions
|
2021-11-16 12:26:55 +00:00
|
|
|
|
2022-02-09 09:42:07 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2021-11-16 12:26:55 +00:00
|
|
|
script:
|
2022-01-12 15:58:30 +00:00
|
|
|
def args = task.ext.args ?: ''
|
2022-01-20 17:02:30 +00:00
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
|
|
|
2021-11-16 12:26:55 +00:00
|
|
|
"""
|
2022-01-21 07:54:43 +00:00
|
|
|
cat <<-END_VERSIONS > versions.yml
|
2022-01-21 08:46:17 +00:00
|
|
|
"${task.process}":
|
|
|
|
maxquant: \$(maxquant --version 2>&1 > /dev/null | cut -f2 -d\" \")
|
2022-01-21 07:54:43 +00:00
|
|
|
END_VERSIONS
|
2021-11-21 09:47:16 +00:00
|
|
|
sed \"s_<numThreads>.*_<numThreads>$task.cpus</numThreads>_\" ${paramfile} > mqpar_changed.xml
|
|
|
|
sed -i \"s|PLACEHOLDER|\$PWD/|g\" mqpar_changed.xml
|
2021-11-16 12:26:55 +00:00
|
|
|
mkdir temp
|
2021-11-21 09:47:16 +00:00
|
|
|
maxquant mqpar_changed.xml
|
2021-12-17 11:34:28 +00:00
|
|
|
mv combined/txt/*.txt .
|
2021-11-16 12:26:55 +00:00
|
|
|
"""
|
|
|
|
}
|