Skip to content

Commit

Permalink
yo
Browse files Browse the repository at this point in the history
  • Loading branch information
trishorts committed Sep 20, 2024
1 parent f33313b commit 5a3445b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions MetaMorpheus/EngineLayer/Gptmd/GptmdEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ protected override MetaMorpheusEngineResults RunSpecific()
if (newPeptides.Any())
{
var scores = new ConcurrentBag<double>();
var scores = new List<double>();
var targetFragmentsForEachDissociationType = new ConcurrentDictionary<DissociationType, List<Product>>();
if (CommonParameters.DissociationType == DissociationType.Autodetect)
Expand Down Expand Up @@ -198,9 +198,9 @@ protected override MetaMorpheusEngineResults RunSpecific()

return new GptmdResults(this, modDict.ToDictionary(kvp => kvp.Key, kvp => new HashSet<Tuple<int, Modification>>(kvp.Value)), modsAdded);
}
private ConcurrentBag<double> CalculatePeptideScores(List<PeptideWithSetModifications> newPeptides, DissociationType dissociationType, SpectralMatch psm)
private List<double> CalculatePeptideScores(List<PeptideWithSetModifications> newPeptides, DissociationType dissociationType, SpectralMatch psm)
{
var scores = new ConcurrentBag<double>();
var scores = new List<double>();

foreach (var peptide in newPeptides)
{
Expand Down
10 changes: 5 additions & 5 deletions MetaMorpheus/TaskLayer/GPTMDTask/GPTMDTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ protected override MyTaskResults RunSpecific(string OutputFolder, List<DbForTask
nextFileLoadingTask.Start();
LoadModifications(taskId, out var variableModifications, out var fixedModifications, out var localizeableModificationTypes);

// TODO: print error messages loading GPTMD mods
List<Modification> gptmdModifications = GlobalVariables.AllModsKnown.OfType<Modification>().Where(b => GptmdParameters.ListOfModsGptmd.Contains((b.ModificationType, b.IdWithMotif))).ToList();
IEnumerable<Tuple<double, double>> combos = LoadCombos(gptmdModifications).ToList();

// start loading proteins in the background
List<Protein> proteinList = null;
Task<List<Protein>> proteinLoadingTask = new(() =>
Expand All @@ -55,6 +51,11 @@ protected override MyTaskResults RunSpecific(string OutputFolder, List<DbForTask
});
proteinLoadingTask.Start();

// TODO: print error messages loading GPTMD mods
List<Modification> gptmdModifications = GlobalVariables.AllModsKnown.OfType<Modification>().Where(b => GptmdParameters.ListOfModsGptmd.Contains((b.ModificationType, b.IdWithMotif))).ToList();
IEnumerable<Tuple<double, double>> combos = LoadCombos(gptmdModifications).ToList();


List<SpectralMatch> allPsms = new List<SpectralMatch>();

var numRawFiles = currentRawFileList.Count;
Expand Down Expand Up @@ -116,7 +117,6 @@ protected override MyTaskResults RunSpecific(string OutputFolder, List<DbForTask
nextFileLoadingTask = new Task<MsDataFile>(() => myFileManager.LoadFile(currentRawFileList[nextFileIndex], SetAllFileSpecificCommonParams(CommonParameters, fileSettingsList[nextFileIndex])));
nextFileLoadingTask.Start();
}
//MsDataFile myMsDataFile = myFileManager.LoadFile(origDataFile, combinedParams);
Status("Getting ms2 scans...", new List<string> { taskId, "Individual Spectra Files", origDataFile });
Ms2ScanWithSpecificMass[] arrayOfMs2ScansSortedByMass = GetMs2Scans(myMsDataFile, origDataFile, combinedParams).OrderBy(b => b.PrecursorMass).ToArray();
myFileManager.DoneWithFile(origDataFile);
Expand Down

0 comments on commit 5a3445b

Please sign in to comment.