Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Peptide-spectrum matching and protein identification from MS/MS data. Use when identifying peptides from tandem mass spectra. Covers database searching, spectral library matching, and FDR estimation using target-decoy approaches.
.claude/skills/bio-proteomics-peptide-identification/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-18 | ✗→✓ | ▲ Improved | — | — |
| case-05 | ✗→✓ | ▲ Improved | — | — |
| case-03 | ✓→✓ | = Same ✓ | — | — |
| case-13 | ✓→✓ | = Same ✓ | — | — |
| case-10 | ✗→✗ | = Same ✗ | — | — |
Reference examples tested with: MSnbase 2.28+
Before using code patterns, verify installed versions match. If versions differ:
pip show <package> then help(module.function) to check signaturespackageVersion('<pkg>') then ?function_name to verify parametersIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
"Identify peptides from my MS/MS spectra" → Match tandem mass spectra against a protein database to identify peptide sequences, then control false discovery rate using target-decoy competition.
pyopenms for in-memory database search and PSM handlingcomet, MSFragger, X!Tandem for high-throughput database searchingMSnbase::readMSData() for importing search resultsGoal: Identify peptide sequences from tandem mass spectra by matching against a protein database.
Approach: Load a FASTA database, perform in-silico tryptic digestion to generate theoretical peptides, then match experimental spectra against theoretical fragment ion patterns to identify peptide-spectrum matches (PSMs).
pythonfrom pyopenms import MSExperiment, MzMLFile, FASTAFile, ProteaseDigestion from pyopenms import ModificationsDB, AASequence # Load FASTA database fasta_entries = [] FASTAFile().load('uniprot_human.fasta', fasta_entries) # In-silico digestion digestion = ProteaseDigestion() digestion.setEnzyme('Trypsin') digestion.setMissedCleavages(2) peptides = [] for entry in fasta_entries: seq = AASequence.fromString(entry.sequence) result = [] digestion.digest(seq, result) peptides.extend([(entry.identifier, str(p)) for p in result])
pythonfrom pyopenms import IdXMLFile, ProteinIdentification, PeptideIdentification protein_ids = [] peptide_ids = [] IdXMLFile().load('search_results.idXML', protein_ids, peptide_ids) for pep_id in peptide_ids: rt = pep_id.getRT() mz = pep_id.getMZ() for hit in pep_id.getHits(): sequence = hit.getSequence() score = hit.getScore() charge = hit.getCharge()
pythondef calculate_fdr(scores, is_decoy, score_threshold): above_threshold = scores >= score_threshold n_target = ((~is_decoy) & above_threshold).sum() n_decoy = (is_decoy & above_threshold).sum() fdr = n_decoy / n_target if n_target > 0 else 1.0 return fdr def find_score_at_fdr(scores, is_decoy, target_fdr=0.01): sorted_scores = np.sort(scores)[::-1] for threshold in sorted_scores: fdr = calculate_fdr(scores, is_decoy, threshold) if fdr <= target_fdr: return threshold return sorted_scores[-1]
rlibrary(MSnbase) # Read mzIdentML results psms <- readMzIdData('results.mzid') # Filter to 1% FDR psms_filtered <- psms[psms$qvalue <= 0.01, ] # Unique peptides per protein peptide_counts <- table(psms_filtered$accession)
pythonfrom pyopenms import SpectraSTSearchAlgorithm, MSExperiment # Load spectral library library = MSExperiment() MzMLFile().load('spectral_library.mzML', library) # Match query spectra against library # Returns similarity scores and library matches
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | pass→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.