Skip to content

Commit

Permalink
Removed unintended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Sol committed Sep 13, 2024
1 parent b705dd5 commit 06ca65d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 44 deletions.
4 changes: 0 additions & 4 deletions MetaMorpheus/EngineLayer/PeptideSpectralMatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ protected PeptideSpectralMatch(SpectralMatch psm, List<(int Notch, IBioPolymerWi
: base(psm, bestMatchingPeptides)
{
}

public PeptideSpectralMatch(SpectralMatch psm) : base(psm)
{
}
#endregion


Expand Down
40 changes: 0 additions & 40 deletions MetaMorpheus/EngineLayer/SpectralMatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -379,46 +379,6 @@ protected SpectralMatch(SpectralMatch psm, List<(int Notch, IBioPolymerWithSetMo
SpectralAngle = psm.SpectralAngle;
}

public SpectralMatch(SpectralMatch psm)
{
_BestMatchingBioPolymersWithSetMods = psm._BestMatchingBioPolymersWithSetMods;
BaseSequence = PsmTsvWriter.Resolve(_BestMatchingBioPolymersWithSetMods.Select(b => b.Pwsm.BaseSequence)).ResolvedValue;
FullSequence = PsmTsvWriter.Resolve(_BestMatchingBioPolymersWithSetMods.Select(b => b.Pwsm.FullSequence)).ResolvedValue;

ModsChemicalFormula = psm.ModsChemicalFormula;
Notch = psm.Notch;
BioPolymerWithSetModsLength = psm.BioPolymerWithSetModsLength;
OneBasedStartResidue = psm.OneBasedStartResidue;
OneBasedEndResidue = psm.OneBasedEndResidue;
BioPolymerWithSetModsMonoisotopicMass = psm.BioPolymerWithSetModsMonoisotopicMass;
ParentLength = psm.ParentLength;
Accession = psm.Accession;
Organism = psm.Organism;
MatchedFragmentIons = psm.MatchedFragmentIons;
PsmCount = psm.PsmCount;
ModsIdentified = psm.ModsIdentified;
LocalizedScores = psm.LocalizedScores;
ScanNumber = psm.ScanNumber;
PrecursorScanNumber = psm.PrecursorScanNumber;
ScanRetentionTime = psm.ScanRetentionTime;
ScanExperimentalPeaks = psm.ScanExperimentalPeaks;
TotalIonCurrent = psm.TotalIonCurrent;
ScanPrecursorCharge = psm.ScanPrecursorCharge;
ScanPrecursorMonoisotopicPeakMz = psm.ScanPrecursorMonoisotopicPeakMz;
ScanPrecursorMass = psm.ScanPrecursorMass;
FullFilePath = psm.FullFilePath;
ScanIndex = psm.ScanIndex;
FdrInfo = psm.FdrInfo;
Score = psm.Score;
Xcorr = psm.Xcorr;
RunnerUpScore = psm.RunnerUpScore;
IsDecoy = psm.IsDecoy;
IsContaminant = psm.IsContaminant;
DigestionParams = psm.DigestionParams;
BioPolymersWithSetModsToMatchingFragments = psm.BioPolymersWithSetModsToMatchingFragments;
SpectralAngle = psm.SpectralAngle;
}

#endregion

#region FDR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ private void CalculatePsmAndPeptideFdr(List<SpectralMatch> psms, string analysis
Status("Estimating PSM FDR...", Parameters.SearchTaskId);
new FdrAnalysisEngine(psms, Parameters.NumNotches, CommonParameters, this.FileSpecificParameters,
new List<string> { Parameters.SearchTaskId }, analysisType: analysisType, doPEP: doPep, outputFolder: Parameters.OutputFolder).Run();

Status("Done estimating PSM FDR!", Parameters.SearchTaskId);
}

Expand Down

0 comments on commit 06ca65d

Please sign in to comment.