Skip to content

Commit a9a8e0a

Browse files
committed
add support for changing cascadia score threshold
1 parent 46beafa commit a9a8e0a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

modules/cascadia.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ process CASCADIA_SEARCH {
3838

3939
"""
4040
${extra_command}
41-
cascadia sequence ${ms_file} /usr/local/bin/cascadia.ckpt --out ${ms_file.baseName}
41+
cascadia sequence ${ms_file} /usr/local/bin/cascadia.ckpt --score_threshold ${params.cascadia.score_threshold} --out ${ms_file.baseName}
4242
> >(tee "${ms_file.baseName}.stdout") 2> >(tee "${ms_file.baseName}.stderr" >&2)
4343
4444
echo "${params.images.cascadia}" | egrep -o '[0-9]+\\.[0-9]+\\.[0-9]+' | xargs printf "cascadia_version=%s\n" > cascadia_version.txt

nextflow.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ params {
5555

5656
// options for Cascadia (de novo DIA search)
5757
cascadia.use_gpu = false; // whether or not to use available GPU, must be set to false if no GPU is available
58-
58+
cascadia.score_threshold = 0.8 // score threshold applied to predictions. (default: 0.8)
59+
5960
// optional user-supplied parameters
6061
email = null // email to notify of workflow outcome, leave null to send no email
6162
skyline.template_file = null // the skyline template, if null use default_skyline_template_file

0 commit comments

Comments
 (0)