@@ -86,7 +86,7 @@ workflow DDA_ID {
8686 } else if (params. rescore_range == " by_sample" ) {
8787 // Sample map
8888 GETSAMPLE (ch_expdesign)
89- ch_expdesign_sample = EXTRACT_SAMPLE . out. ch_expdesign_sample
89+ ch_expdesign_sample = GETSAMPLE . out. ch_expdesign_sample
9090 ch_expdesign_sample. splitCsv(header : true , sep : ' \t ' )
9191 .map { get_sample_map(it) }. set{ sample_map_idv }
9292
@@ -155,7 +155,7 @@ workflow DDA_ID {
155155 IDSCORESWITCHER (MS2RESCORE . out. idxml. combine(Channel . value(" PEP" )))
156156 ch_software_versions = ch_software_versions. mix(IDSCORESWITCHER . out. version)
157157 ch_consensus_input = IDSCORESWITCHER . out. id_score_switcher. combine(Channel . value(" MS:1001491" ))
158- ch_rescoring_results = IDSCORESWITCHER . out. id_files_ForIDPEP
158+ ch_rescoring_results = IDSCORESWITCHER . out. ch_consensus_input
159159 } else {
160160 ch_fdridpep = Channel . empty()
161161 if (params. search_engines. split(" ," ). size() == 1 ) {
@@ -224,13 +224,25 @@ def convert_exp_meta(Map meta, value, file_name, sample_map) {
224224 } else if (value == " sample_id" ) {
225225 tag = file(file_name). name. lastIndexOf(' _perc.idXML' )
226226 if (tag == -1 ) {
227- position = file(file_name). name. lastIndexOf(' _sage.idXML ' )
228- if (position == -1 ) {
229- position = file(file_name). name. lastIndexOf(' _comet_feat .idXML' )
227+ ifms2rescore = file(file_name). name. lastIndexOf(' _ms2rescore_ ' )
228+ if (ifms2rescore == -1 ) {
229+ position = file(file_name). name. lastIndexOf(' _sage .idXML' )
230230 if (position == -1 ) {
231- position = file(file_name). name. lastIndexOf(' _msgf_feat.idXML' )
231+ position = file(file_name). name. lastIndexOf(' _comet_feat.idXML' )
232+ if (position == -1 ) {
233+ position = file(file_name). name. lastIndexOf(' _msgf_feat.idXML' )
234+ }
235+ }
236+ } else {
237+ position = file(file_name). name. lastIndexOf(' _sage_ms2rescore.idXML' )
238+ if (position == -1 ) {
239+ position = file(file_name). name. lastIndexOf(' _comet_ms2rescore_feat.idXML' )
240+ if (position == -1 ) {
241+ position = file(file_name). name. lastIndexOf(' _msgf_ms2rescore_feat.idXML' )
242+ }
232243 }
233244 }
245+
234246 } else {
235247 position = file(file_name). name. lastIndexOf(' _sage_perc.idXML' )
236248 if (position == -1 ) {
0 commit comments