You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Calculates the occupancy of post-translational modifications at the peptide level.
143
146
/// </summary>
@@ -147,11 +150,7 @@ public class PositionFrequencyAnalysis
147
150
/// <returns> A nested dictionary whose key mappings are as follows: string ProteinGroup-> string Protein-> string BaseSequence-> int ModifiedAminoAcidIndex-> string ModificationName-> double Intensity
148
151
/// Note: Each BaseSequence dictionary contains a ModifiedAminoAcidIndex key of -1 that then contains a ModificationName key called "Total" that is used to track the total intensity observed for
149
152
/// all of the amino acids in that peptide.</returns>
Copy file name to clipboardExpand all lines: mzLib/Omics/SpectrumMatch/SpectrumMatchFromTsv.cs
+8-52Lines changed: 8 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
usingSystem.Text.RegularExpressions;
5
5
usingChemistry;
6
6
usingOmics.Fragmentation.Peptide;
7
+
usingMzLibUtil;
7
8
8
9
namespaceOmics.SpectrumMatch
9
10
{
@@ -92,58 +93,15 @@ public static string RemoveParentheses(string baseSequence)
92
93
}
93
94
94
95
/// <summary>
95
-
/// Parses the full sequence to identify mods
96
+
/// Parses the full sequence to identify mods.
96
97
/// </summary>
97
-
/// <param name="fullSequence"> Full sequence of the peptide in question</param>
98
+
/// <param name="fullSeq"> Full sequence of the peptide in question</param>
99
+
/// <param name="modOnNTerminus"> If true, the index of modifications at the N-terminus will be 0 (zero-based indexing). Otherwise, it is the index of the first amino acid (one-based indexing).</param>
100
+
/// <param name="modOnCTerminus"> If true, the index of modifications at the C-terminus will be one more than the index of the last amino acid. Otherwise, it is the index of the last amino acid.</param>
98
101
/// <returns> Dictionary with the key being the amino acid position of the mod and the value being the string representing the mod</returns>
Assert.AreEqual(726036.539062,modInfo["Q7KZF4"].Proteins["Q7KZF4"].Peptides["EYGMIYLGK"].ModifiedAminoAcidPositions[4]["Common Variable:Oxidation on M"].Intensity,0.000001);
1369
+
Assert.AreEqual(modInfo["Q7KZF4"].Proteins["Q7KZF4"].Peptides["EYGMIYLGK"].Intensity,modInfo["Q7KZF4"].Proteins["Q7KZF4"].Peptides["EYGMIYLGK"].ModifiedAminoAcidPositions[4]["Common Variable:Oxidation on M"].Intensity,0.000001);
0 commit comments