nf-core_modules/modules/maxquant/lfq/main.nf

34 lines
1.2 KiB
Text
Raw Normal View History

2021-11-16 12:26:55 +00:00
process MAXQUANT_LFQ {
tag "$meta.id"
label 'process_long'
conda (params.enable_conda ? "bioconda::maxquant=2.0.1.0" : null)
if (workflow.containerEngine == 'singularity' && !params.singularity_pull_docker_container) {
2021-11-21 09:47:16 +00:00
container "https://depot.galaxyproject.org/singularity/maxquant:2.0.1.0--py39hdfd78af_2"
2021-11-16 12:26:55 +00:00
} else {
2022-01-20 17:02:30 +00:00
container "wombatp/maxquant-pipeline:v0.13"
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-01-19 14:19:09 +00:00
path "versions.yml" , emit: version
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-20 17:02:30 +00:00
export PATH=/usr/local/lib/dotnet:/usr/local/lib/dotnet/tools:/opt/conda/envs/nf-core-maxquant/bin:/opt/conda/envs/nf-core-maxquant/lib/dotnet/tools:/opt/conda/envs/nf-core-maxquant/lib/dotnet:$PATH
2022-01-20 11:10:49 +00:00
echo \"maxquant: \"\$(maxquant --version 2>&1 > /dev/null | cut -f2 -d\" \") > versions.yml
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
"""
}