cyanea-proteomics
v0.1.0 AnalysisFrom spectra to quantified proteins, with FDR you can trust.
Mass spectrometry proteomics — spectrum I/O, in-silico digestion, PSM scoring, protein inference, quantification, and FDR control.
Overview
cyanea-proteomics is a mass-spectrometry toolkit for bottom-up proteomics. It parses spectra, digests proteins in silico, generates fragment ions, scores peptide-spectrum matches, infers proteins, quantifies abundance, and controls error rates with target-decoy FDR — and writes results in mzTab.
Key Concepts
Digestion and Fragmentation
Proteins are cleaved by a chosen protease (trypsin and others) with a configurable number of missed cleavages, producing the peptide search space. For each candidate peptide, the crate predicts b/y/a fragment ion series — including common modifications such as carbamidomethylation, oxidation, phosphorylation, and TMT/iTRAQ labels.
PSM Scoring
Observed spectra are matched against predicted fragments and scored with XCorr and hyperscore. Scores drive both identification and downstream error control.
Protein Inference
Peptides rarely map to a single protein. Parsimony-based inference reports the minimal set of proteins that explains the observed peptides, avoiding inflated protein lists.
Quantification and FDR
Abundance is measured by TMT reporter ions or label-free intensity. Target-decoy analysis estimates the false discovery rate, giving a principled threshold for accepting identifications.
Code Examples
Rust
use cyanea_proteomics::{digest, Enzyme, score_psm, ScoreMethod};
let peptides = digest(&protein, Enzyme::Trypsin, 2);
let score = score_psm(&spectrum, &peptide, ScoreMethod::Hyperscore);
JavaScript (WASM)
import { digest, target_decoy_fdr } from '/wasm/cyanea_wasm.js';
const peptides = JSON.parse(digest(protein, "trypsin", 2));
const fdr = JSON.parse(target_decoy_fdr(JSON.stringify(scores), JSON.stringify(labels)));
Use Cases
- Shotgun proteomics — Identify and quantify proteins from LC-MS/MS runs.
- Quantitative comparisons — TMT or label-free abundance across conditions.
- Rigorous reporting — Target-decoy FDR and mzTab output for publication.