Skip to content

Commit

Permalink
adjust inverted qValue threshold to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
trishorts committed Oct 15, 2024
1 parent 3049ef3 commit 5231c70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MetaMorpheus/EngineLayer/FdrAnalysis/FdrAnalysisEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class FdrAnalysisEngine : MetaMorpheusEngine
private readonly string AnalysisType;
private readonly string OutputFolder; // used for storing PEP training models
private readonly bool DoPEP;
private readonly int PsmCountThresholdForInvertedQvalue = 1000;

public FdrAnalysisEngine(List<SpectralMatch> psms, int massDiffAcceptorNumNotches, CommonParameters commonParameters,
List<(string fileName, CommonParameters fileSpecificParameters)> fileSpecificParameters, List<string> nestedIds, string analysisType = "PSM",
Expand Down Expand Up @@ -71,10 +72,10 @@ private void DoFalseDiscoveryRateAnalysis(FdrAnalysisResults myAnalysisResults)
.Select(b => b.FirstOrDefault())
.ToList();

if (psms.Count > 100 & DoPEP)
if (psms.Count > PsmCountThresholdForInvertedQvalue & DoPEP)
{
CalculateQValue(psms, peptideLevelCalculation: false, pepCalculation: false);
if (peptides.Count > 100 )
if (peptides.Count > PsmCountThresholdForInvertedQvalue)
{
CalculateQValue(peptides, peptideLevelCalculation: true, pepCalculation: false);

Expand Down Expand Up @@ -199,7 +200,7 @@ public void CalculateQValue(List<SpectralMatch> psms, bool peptideLevelCalculati
}
else
{
if(psms.Count < 100)
if(psms.Count < PsmCountThresholdForInvertedQvalue)
{

QValueTraditional(psms, peptideLevelAnalysis: peptideLevelCalculation);
Expand Down

0 comments on commit 5231c70

Please sign in to comment.