forked from bigbio/quantms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.nf
More file actions
38 lines (32 loc) · 1.25 KB
/
Copy pathmain.nf
File metadata and controls
38 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
process GENERATE_DECOY_DATABASE {
label 'process_very_low'
label 'openms'
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'oras://ghcr.io/bigbio/openms-tools-thirdparty-sif:2026.07.02' :
'ghcr.io/bigbio/openms-tools-thirdparty:2026.07.02' }"
input:
path(db_for_decoy)
output:
path "*.fasta", emit: db_decoy
path "versions.yml", emit: versions
path "*.log", emit: log
script:
def args = task.ext.args ?: ''
"""
DecoyDatabase \\
-in ${db_for_decoy} \\
-out ${db_for_decoy.baseName}_decoy.fasta \\
-decoy_string $params.decoy_string \\
-decoy_string_position $params.decoy_string_position \\
-method $params.decoy_method \\
-shuffle_max_attempts $params.shuffle_max_attempts \\
-shuffle_sequence_identity_threshold $params.shuffle_sequence_identity_threshold \\
-debug $params.decoydatabase_debug \\
$args \\
2>&1 | tee ${db_for_decoy.baseName}_decoy_database.log
cat <<-END_VERSIONS > versions.yml
"${task.process}":
DecoyDatabase: \$(DecoyDatabase 2>&1 | grep -E '^Version(.*)' | sed 's/Version: //g' | cut -d ' ' -f 1)
END_VERSIONS
"""
}