@@ -48,11 +48,9 @@ process COMET {
4848 def isoSlashComet = " 0/1"
4949 if (params. isotope_error_range) {
5050 def isoRangeComet = params. isotope_error_range. split(" ," )
51- isoSlashComet = " "
52- for (c in isoRangeComet[0 ]. toInteger().. isoRangeComet[1 ]. toInteger()-1 ) {
53- isoSlashComet + = c + " /"
54- }
55- isoSlashComet + = isoRangeComet[1 ]
51+ def range = (isoRangeComet[0 ]. toInteger().. isoRangeComet[1 ]. toInteger()-1 ). collect { v -> v. toString() }
52+ range. add(isoRangeComet[1 ])
53+ isoSlashComet = range. join(" /" )
5654 }
5755 // for consensusID the cutting rules need to be the same. So we adapt to the loosest rules from MSGF
5856 // TODO find another solution. In ProteomicsLFQ we re-run PeptideIndexer (remove??) and if we
@@ -96,8 +94,8 @@ process COMET {
9694 -enzyme "${ enzyme} " \\
9795 -isotope_error ${ isoSlashComet} \\
9896 -precursor_charge $params . min_precursor_charge :$params . max_precursor_charge \\
99- -fixed_modifications ${ meta.fixedmodifications.tokenize(',').collect { "'$it '" }.join(" ") } \\
100- -variable_modifications ${ meta.variablemodifications.tokenize(',').collect { "'$it '" }.join(" ") } \\
97+ -fixed_modifications ${ meta.fixedmodifications.tokenize(',').collect { mod -> "'$mod '" }.join(" ") } \\
98+ -variable_modifications ${ meta.variablemodifications.tokenize(',').collect { mod -> "'$mod '" }.join(" ") } \\
10199 -max_variable_mods_in_peptide $params . max_mods \\
102100 -precursor_mass_tolerance $meta . precursormasstolerance \\
103101 -precursor_error_units $meta . precursormasstoleranceunit \\
0 commit comments