Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.