Skip to content

Commit 4bf1e0f

Browse files
author
stefanks
authored
Calibration on peptides with modifications
Stefan branch
2 parents 4c65aa8 + 579c128 commit 4bf1e0f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

EngineLayer/CalibrationEngine/CalibrationEngine.cs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -221,17 +221,11 @@ private DataPointAquisitionResults GetDataPoints()
221221
// Each identification has an MS2 spectrum attached to it.
222222
int ms2spectrumIndex = identification.thisPSM.newPsm.scanNumber;
223223

224-
//// Get the peptide, don't forget to add the modifications!!!!
225-
//var SequenceWithChemicalFormulas = identification.thisPSM.SequenceWithChemicalFormulas;
226-
//if (SequenceWithChemicalFormulas == null)
227-
// continue;
228-
//Proteomics.Peptide coolPeptide = new Proteomics.Peptide(SequenceWithChemicalFormulas);
229-
230224
// Get the peptide, don't forget to add the modifications!!!!
231-
var seq = identification.thisPSM.FullSequence;
232-
if (identification.thisPSM.NumMods > 0)
225+
var SequenceWithChemicalFormulas = identification.thisPSM.SequenceWithChemicalFormulas;
226+
if (SequenceWithChemicalFormulas == null || identification.thisPSM.peptidesWithSetModifications.First().allModsOneIsNterminus.Any(b => b.Value.neutralLoss != 0))
233227
continue;
234-
Proteomics.Peptide coolPeptide = new Proteomics.Peptide(seq);
228+
Proteomics.Peptide coolPeptide = new Proteomics.Peptide(SequenceWithChemicalFormulas);
235229

236230
int peptideCharge = identification.thisPSM.newPsm.scanPrecursorCharge;
237231

TaskLayer/GPTMDTask/GPTMDTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public GptmdTask()
3535
MaxModificationIsoforms = 4096;
3636
InitiatorMethionineBehavior = InitiatorMethionineBehavior.Variable;
3737
ProductMassTolerance = new Tolerance(ToleranceUnit.Absolute, 0.01);
38-
PrecursorMassTolerance = new Tolerance(ToleranceUnit.PPM, 5);
38+
PrecursorMassTolerance = new Tolerance(ToleranceUnit.PPM, 2);
3939
BIons = true;
4040
YIons = true;
4141
CIons = false;

0 commit comments

Comments
 (0)