@@ -169,7 +169,7 @@ public static void WriteXmlDatabase(Dictionary<string, HashSet<Tuple<int, string
169
169
protected override MyResults RunSpecific ( )
170
170
{
171
171
MyTaskResults myGPTMDresults = new MyGPTMDTaskResults ( this ) ;
172
- myGPTMDresults . newDatabases = new List < XmlForTask > ( ) ;
172
+ myGPTMDresults . newDatabases = new List < DbForTask > ( ) ;
173
173
174
174
var currentRawFileList = rawDataFilenameList ;
175
175
@@ -180,9 +180,10 @@ protected override MyResults RunSpecific()
180
180
List < MorpheusModification > fixedModifications = listOfModListsForGPTMD . Where ( b => b . Fixed ) . SelectMany ( b => b . Mods ) . ToList ( ) ;
181
181
List < MorpheusModification > localizeableModifications = listOfModListsForGPTMD . Where ( b => b . Localize ) . SelectMany ( b => b . Mods ) . ToList ( ) ;
182
182
List < MorpheusModification > gptmdModifications = listOfModListsForGPTMD . Where ( b => b . Gptmd ) . SelectMany ( b => b . Mods ) . ToList ( ) ;
183
+
183
184
Dictionary < string , List < MorpheusModification > > identifiedModsInXML ;
184
185
HashSet < string > unidentifiedModStrings ;
185
- MatchXMLmodsToKnownMods ( xmlDbFilenameList , localizeableModifications , out identifiedModsInXML , out unidentifiedModStrings ) ;
186
+ MatchXMLmodsToKnownMods ( dbFilenameList , localizeableModifications , out identifiedModsInXML , out unidentifiedModStrings ) ;
186
187
187
188
IEnumerable < Tuple < double , double > > combos = LoadCombos ( ) . ToList ( ) ;
188
189
@@ -200,7 +201,7 @@ protected override MyResults RunSpecific()
200
201
lp . Add ( ProductType . Y ) ;
201
202
202
203
Status ( "Loading proteins..." ) ;
203
- var proteinList = xmlDbFilenameList . SelectMany ( b => GetProteins ( true , identifiedModsInXML , b ) ) . ToList ( ) ;
204
+ var proteinList = dbFilenameList . SelectMany ( b => GetProteins ( true , identifiedModsInXML , b ) ) . ToList ( ) ;
204
205
AnalysisEngine analysisEngine ;
205
206
AnalysisResults analysisResults = null ;
206
207
for ( int spectraFileIndex = 0 ; spectraFileIndex < currentRawFileList . Count ; spectraFileIndex ++ )
@@ -240,14 +241,14 @@ protected override MyResults RunSpecific()
240
241
241
242
//output(gptmdResults.ToString());
242
243
243
- string outputXMLdbFullName = Path . Combine ( OutputFolder , string . Join ( "-" , xmlDbFilenameList . Select ( b => Path . GetFileNameWithoutExtension ( b . FileName ) ) ) + "GPTMD.xml" ) ;
244
+ string outputXMLdbFullName = Path . Combine ( OutputFolder , string . Join ( "-" , dbFilenameList . Select ( b => Path . GetFileNameWithoutExtension ( b . FileName ) ) ) + "GPTMD.xml" ) ;
244
245
245
246
WriteXmlDatabase ( gptmdResults . Mods , proteinList . Where ( b => ! b . IsDecoy ) . ToList ( ) , outputXMLdbFullName ) ;
246
247
247
248
SucessfullyFinishedWritingFile ( outputXMLdbFullName ) ;
248
249
249
250
// TODO: Fix so not always outputting a contaminant
250
- myGPTMDresults . newDatabases . Add ( new XmlForTask ( outputXMLdbFullName , false ) ) ;
251
+ myGPTMDresults . newDatabases . Add ( new DbForTask ( outputXMLdbFullName , false ) ) ;
251
252
252
253
return myGPTMDresults ;
253
254
}
0 commit comments