Skip to content

Commit

Permalink
Increased QValue cutoff for calibrating PSMs to 0.01 (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Sol authored Aug 2, 2024
1 parent f48d118 commit 7fd6aee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ public CalibrationParameters()
MinMS1IsotopicPeaksNeededForConfirmedIdentification = 3;
MinMS2IsotopicPeaksNeededForConfirmedIdentification = 2;
NumFragmentsNeededForEveryIdentification = 10;
QValueCutoffForCalibratingPSMs = 0.01;
WriteIndexedMzml = true;
}

Expand All @@ -17,5 +18,7 @@ public CalibrationParameters()
public int MinMS1IsotopicPeaksNeededForConfirmedIdentification { get; set; }
public int MinMS2IsotopicPeaksNeededForConfirmedIdentification { get; set; }
public int NumFragmentsNeededForEveryIdentification { get; set; }

public double QValueCutoffForCalibratingPSMs { get; set; }
}
}
5 changes: 4 additions & 1 deletion MetaMorpheus/TaskLayer/CalibrationTask/CalibrationTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,10 @@ private DataPointAquisitionResults GetDataAcquisitionResults(MsDataFile myMsData

_ = new FdrAnalysisEngine(allPsms, searchMode.NumNotches, CommonParameters, FileSpecificParameters, new List<string> { taskId, "Individual Spectra Files", fileNameWithoutExtension }, doPEP: false).Run();

List<SpectralMatch> goodIdentifications = allPsms.Where(b => b.FdrInfo.QValueNotch < 0.001 && !b.IsDecoy && b.FullSequence != null).ToList();
List<SpectralMatch> goodIdentifications = allPsms.Where(b =>
b.FdrInfo.QValueNotch < CalibrationParameters.QValueCutoffForCalibratingPSMs
&& b.FullSequence != null
&& !b.IsDecoy).ToList();

if (!goodIdentifications.Any())
{
Expand Down

0 comments on commit 7fd6aee

Please sign in to comment.