bio-proteomics-protein-inference
Protein grouping and inference from peptide identifications. Use when resolving protein ambiguity from shared peptides. Handles protein groups and protein-level FDR control using parsimony and probabilistic approaches.
Best use case
bio-proteomics-protein-inference is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Protein grouping and inference from peptide identifications. Use when resolving protein ambiguity from shared peptides. Handles protein groups and protein-level FDR control using parsimony and probabilistic approaches.
Teams using bio-proteomics-protein-inference should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/bio-proteomics-protein-inference/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How bio-proteomics-protein-inference Compares
| Feature / Agent | bio-proteomics-protein-inference | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Protein grouping and inference from peptide identifications. Use when resolving protein ambiguity from shared peptides. Handles protein groups and protein-level FDR control using parsimony and probabilistic approaches.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
## Version Compatibility
Reference examples tested with: pyOpenMS 3.1+
Before using code patterns, verify installed versions match. If versions differ:
- Python: `pip show <package>` then `help(module.function)` to check signatures
- R: `packageVersion("<pkg>")` then `?function_name` to verify parameters
If code throws ImportError, AttributeError, or TypeError, introspect the installed
package and adapt the example to match the actual API rather than retrying.
# Protein Inference
**"Resolve protein groups from my peptide identifications"** → Group peptide-spectrum matches into protein groups, resolving shared-peptide ambiguity using parsimony or probabilistic methods, then apply protein-level FDR.
- Python: `pyopenms.ProteinInference()` for parsimony-based grouping
- R: Bioconductor protein inference workflows
## The Protein Inference Problem
Peptides can map to multiple proteins (shared peptides), making protein identification ambiguous.
```python
# Example: Peptide mapping
peptide_to_proteins = {
'PEPTIDEK': ['P12345', 'P67890'], # Shared between paralogs
'UNIQUER': ['P12345'], # Unique to P12345
'ANOTHERONE': ['P12345'], # Unique to P12345
'SHAREDK': ['P67890', 'P11111'], # Shared
}
# P12345 has 2 unique peptides -> confident identification
# P67890 has 0 unique peptides -> subset, may be grouped with P12345
```
## Parsimony Principle
**Goal:** Resolve protein identification ambiguity from shared peptides by finding the minimal protein set explaining all observed peptides.
**Approach:** Build a peptide-to-protein mapping, then greedily select proteins that cover the most unassigned peptides until all peptides are accounted for, producing a minimal explanatory protein list.
```python
def apply_parsimony(peptide_protein_map):
'''Find minimal set of proteins explaining all peptides'''
proteins = set()
for prots in peptide_protein_map.values():
proteins.update(prots)
protein_peptides = {p: set() for p in proteins}
for pep, prots in peptide_protein_map.items():
for p in prots:
protein_peptides[p].add(pep)
covered_peptides = set()
selected_proteins = []
# Greedy: select protein covering most uncovered peptides
while covered_peptides != set(peptide_protein_map.keys()):
best_protein = max(protein_peptides.keys(),
key=lambda p: len(protein_peptides[p] - covered_peptides))
new_coverage = protein_peptides[best_protein] - covered_peptides
if not new_coverage:
break
selected_proteins.append(best_protein)
covered_peptides.update(new_coverage)
return selected_proteins
```
## Protein Groups
```python
def create_protein_groups(peptide_protein_map):
'''Group proteins with identical peptide evidence'''
protein_peptides = {}
for pep, prots in peptide_protein_map.items():
for p in prots:
protein_peptides.setdefault(p, set()).add(pep)
# Group by peptide set
peptide_set_to_proteins = {}
for protein, peptides in protein_peptides.items():
key = frozenset(peptides)
peptide_set_to_proteins.setdefault(key, []).append(protein)
groups = []
for peptides, proteins in peptide_set_to_proteins.items():
groups.append({
'proteins': proteins,
'peptides': list(peptides),
'n_peptides': len(peptides),
'is_group': len(proteins) > 1
})
return groups
```
## pyOpenMS Protein Inference
```python
from pyopenms import ProteinIdentification, PeptideIdentification
from pyopenms import BasicProteinInferenceAlgorithm
# Load identifications
protein_ids = []
peptide_ids = []
IdXMLFile().load('search_results.idXML', protein_ids, peptide_ids)
# Run inference
inference = BasicProteinInferenceAlgorithm()
inference.run(peptide_ids, protein_ids)
# Results include protein groups and scores
for protein_id in protein_ids:
for hit in protein_id.getHits():
accession = hit.getAccession()
score = hit.getScore()
```
## R: Protein Inference with ProteinInference
```r
library(ProteinInference)
# From peptide-protein mapping
protein_groups <- infer_proteins(
peptides = psm_data$peptide,
proteins = psm_data$protein,
method = 'parsimony'
)
# Count unique peptides per group
protein_groups$n_unique <- sapply(protein_groups$peptides, function(p) {
sum(sapply(p, function(pep) length(peptide_to_protein[[pep]]) == 1))
})
```
## Protein-Level FDR
```python
def protein_fdr(protein_groups, target_fdr=0.01):
'''Calculate protein-level FDR from group scores'''
sorted_groups = sorted(protein_groups, key=lambda x: x['score'], reverse=True)
target_count = 0
decoy_count = 0
for group in sorted_groups:
if group['is_decoy']:
decoy_count += 1
else:
target_count += 1
group['fdr'] = decoy_count / target_count if target_count > 0 else 1.0
# Q-value
min_fdr = 1.0
for group in reversed(sorted_groups):
min_fdr = min(min_fdr, group['fdr'])
group['qvalue'] = min_fdr
return [g for g in sorted_groups if g['qvalue'] <= target_fdr and not g['is_decoy']]
```
## Related Skills
- peptide-identification - Input for protein inference
- quantification - Quantify inferred proteins
- database-access/uniprot-access - Protein annotationsRelated Skills
tooluniverse-proteomics-analysis
Analyze mass spectrometry proteomics data including protein quantification, differential expression, post-translational modifications (PTMs), and protein-protein interactions. Processes MaxQuant, Spectronaut, DIA-NN, and other MS platform outputs. Performs normalization, statistical analysis, pathway enrichment, and integration with transcriptomics. Use when analyzing proteomics data, comparing protein abundance between conditions, identifying PTM changes, studying protein complexes, integrating protein and RNA data, discovering protein biomarkers, or conducting quantitative proteomics experiments.
tooluniverse-protein-therapeutic-design
Design novel protein therapeutics (binders, enzymes, scaffolds) using AI-guided de novo design. Uses RFdiffusion for backbone generation, ProteinMPNN for sequence design, ESMFold/AlphaFold2 for validation. Use when asked to design protein binders, therapeutic proteins, or engineer protein function.
tooluniverse-protein-structure-retrieval
Retrieves protein structure data from RCSB PDB, PDBe, and AlphaFold with protein disambiguation, quality assessment, and comprehensive structural profiles. Creates detailed structure reports with experimental metadata, ligand information, and download links. Use when users need protein structures, 3D models, crystallography data, or mention PDB IDs (4-character codes like 1ABC) or UniProt accessions.
protein-interaction-network-analysis
Analyze protein-protein interaction networks using STRING, BioGRID, and SASBDB databases. Maps protein identifiers, retrieves interaction networks with confidence scores, performs functional enrichment analysis (GO/KEGG/Reactome), and optionally includes structural data. No API key required for core functionality (STRING). Use when analyzing protein networks, discovering interaction partners, identifying functional modules, or studying protein complexes.
proteinmpnn
Design protein sequences using ProteinMPNN inverse folding. Use this skill when: (1) Designing sequences for RFdiffusion backbones, (2) Redesigning existing protein sequences, (3) Fixing specific residues while designing others, (4) Optimizing sequences for expression or stability, (5) Multi-state or negative design. For backbone generation, use rfdiffusion or bindcraft. For ligand-aware design, use ligandmpnn. For solubility optimization, use solublempnn.
protein-qc
Quality control metrics and filtering thresholds for protein design. Use this skill when: (1) Evaluating design quality for binding, expression, or structure, (2) Setting filtering thresholds for pLDDT, ipTM, PAE, (3) Checking sequence liabilities (cysteines, deamidation, polybasic clusters), (4) Creating multi-stage filtering pipelines, (5) Computing PyRosetta interface metrics (dG, SC, dSASA), (6) Checking biophysical properties (instability, GRAVY, pI), (7) Ranking designs with composite scoring. This skill provides research-backed thresholds from binder design competitions and published benchmarks.
protein-design-workflow
End-to-end guidance for protein design pipelines. Use this skill when: (1) Starting a new protein design project, (2) Need step-by-step workflow guidance, (3) Understanding the full design pipeline, (4) Planning compute resources and timelines, (5) Integrating multiple design tools. For tool selection, use binder-design. For QC thresholds, use protein-qc.
string-protein-interaction-analysis-with-omicverse
Help Claude query STRING for protein interactions, build PPI graphs with pyPPI, and render styled network figures for bulk gene lists.
bio-spatial-transcriptomics-spatial-proteomics
Analyzes spatial proteomics data from CODEX, IMC, and MIBI platforms including cell segmentation and protein colocalization. Use when working with multiplexed imaging data, analyzing protein spatial patterns, or integrating spatial proteomics with transcriptomics.
bio-single-cell-trajectory-inference
Infer developmental trajectories and pseudotime from single-cell RNA-seq data using Monocle3, Slingshot, and scVelo for RNA velocity analysis. Use when inferring developmental trajectories or pseudotime.
bio-proteomics-spectral-libraries
Build, manage, and search spectral libraries for proteomics. Use when creating or working with spectral libraries for DIA analysis. Covers DDA-based library generation, predicted libraries (Prosit, DeepLC), and library formats.
bio-proteomics-quantification
Protein quantification from mass spectrometry data including label-free (LFQ, intensity-based), isobaric labeling (TMT, iTRAQ), and metabolic labeling (SILAC) approaches. Use when extracting protein abundances from MS data for differential analysis.