Created
November 7, 2014 13:13
-
-
Save Bemmu/c4361a8202b98ea3a806 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LEADERBOARDCYCLOPEPTIDESEQUENCING(Spectrum, N) | |
Leaderboard ← {empty peptide} | |
LeaderPeptide ← empty peptide | |
while Leaderboard is non-empty | |
Leaderboard ← Expand(Leaderboard) | |
for each Peptide in Leaderboard | |
# -------------------------------------- | |
IF SCORE(PEPTIDE, SPECTRUM) == 83: | |
print PEPTIDE | |
if Mass(Peptide) = ParentMass(Spectrum) | |
if Score(Peptide, Spectrum) > Score(LeaderPeptide, Spectrum) | |
LeaderPeptide ← Peptide | |
else if Mass(Peptide) > ParentMass(Spectrum) | |
remove Peptide from Leaderboard | |
Leaderboard ← Trim(Leaderboard, Spectrum, N) | |
output LeaderPeptide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment