Skip to content

Commit

Permalink
Merge pull request #275 from steffenlem/dev
Browse files Browse the repository at this point in the history
Fixed extra flag setting for ms2pip
  • Loading branch information
jonasscheid authored Aug 18, 2023
2 parents 5ac3e94 + 047c8d8 commit 013dc25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/local/openms_psmfeatureextractor.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ process OPENMS_PSMFEATUREEXTRACTOR {
def prefix = task.ext.prefix ?: "${merged.baseName}_psm"
def args = task.ext.args ?: ''
def extra_features = ""
if(params.use_deeplc){
if(params.use_deeplc || params.use_ms2pip){
extra_features = "-extra"
if(params.add_abs_rt_error){
}
if(params.use_deeplc){
if(params.deeplc_add_abs_rt_error){
extra_features = "${extra_features} deeplc_abs_error"
}
if(params.add_log_rt_error){
if(params.deeplc_add_log_rt_error){
extra_features = "${extra_features} deeplc_log_error"
}
if(params.add_sqr_rt_error || (!params.add_sqr_rt_error && !params.add_abs_rt_error && !params.add_log_rt_error)){
if(params.deeplc_add_sqr_rt_error || (!params.deeplc_add_sqr_rt_error && !params.deeplc_add_abs_rt_error && !params.deeplc_add_log_rt_error)){
extra_features = "${extra_features} deeplc_sqr_error"
}
}
Expand Down

0 comments on commit 013dc25

Please sign in to comment.