agentsclimarketplace

Isotopic envelope calculation

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/isotopic-envelope-calculation

Use when when you have one or more peptide sequences (as strings) and need to predict their theoretical isotopic distribution for comparison against experimental MS peaks, validation of mass calibration, or simulation of expected peptide signals in a mass spectrometry assay.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill isotopic-envelope-calculation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.3 KB, 983 tokens by cl100k_base, as published. Nobody here has run it

isotopic-envelope-calculation

Summary

Compute the relative abundance distribution of isotopic peaks (m/z and intensity pairs) for a given polypeptide sequence using Pyteomics' mass module. This enables prediction of the mass spectrum envelope expected from a peptide, which is essential for matching experimental MS data to theoretical values in proteomics.

When to use

When you have one or more peptide sequences (as strings) and need to predict their theoretical isotopic distribution for comparison against experimental MS peaks, validation of mass calibration, or simulation of expected peptide signals in a mass spectrometry assay.

When NOT to use

  • You have already-measured experimental mass spectrum peaks and need to perform peak picking or deconvolution—use MS-specific peak detection instead.
  • Your input is a protein or genomic sequence; first digest or translate to peptide sequences.
  • You need to account for instrument resolution, adducts, or modifications not yet defined in Pyteomics—consider enriching your input or post-processing results.

Inputs

  • peptide sequence string(s)
  • optionally: peptide composition object from pyteomics.mass

Outputs

  • isotopic distribution envelope (m/z, intensity pairs)
  • CSV or JSON file of m/z and intensity values
  • optional: matplotlib visualization of isotopic envelope

How to apply

Install Pyteomics (via pip or conda) with NumPy as a core dependency. Import the pyteomics.mass module and define your peptide sequences as input strings. Call the isotopic distribution calculation function on each peptide composition to compute the relative abundances of isotopic peaks. The function returns m/z and intensity pairs that describe the expected peak envelope. Format and optionally visualize the results using matplotlib or export to a structured format (CSV or JSON) for downstream analysis or comparison with experimental spectra.

Related tools

  • Pyteomics (Provides the mass module for isotopic distribution calculation and core physico-chemical property computations for polypeptides) — https://github.com/levitsky/pyteomics
  • NumPy (Core numerical dependency for efficient array-based computation of isotopic abundances)
  • matplotlib (Optional visualization of isotopic peak envelopes as line plots or bar charts)
  • pandas (Optional export and tabulation of isotopic distribution results to CSV or structured formats)

Examples

from pyteomics.mass import Composition; comp = Composition(sequence='PEPTIDE'); dist = comp.isotopic_composition_abundance(); print([(mz, intensity) for mz, intensity in sorted(dist.items())])

Evaluation signals

  • Output m/z values are in ascending order and span the expected mass range for the peptide and its isotopologues.
  • Sum of all intensity values equals 1.0 (or 100% if normalized to the most abundant peak).
  • The most intense peak corresponds to the monoisotopic composition (all atoms at lowest mass isotope).
  • Peak spacing in m/z reflects the expected 1 Da difference between consecutive isotopologues (for singly charged ions).
  • Results are reproducible across multiple runs with identical input sequences and Pyteomics version.

Limitations

  • Computation assumes neutral polypeptides; does not inherently account for charge states or common adducts (e.g., [M+H]⁺, [M+Na]⁺) without manual adjustment of m/z values post-calculation.
  • Isotopic distribution depends on accurate elemental composition; modifications (e.g., phosphorylation, glycosylation) must be explicitly represented in the input or composition object.
  • High-resolution envelopes for large peptides (>20 kDa) may include many peaks; filtering by intensity threshold may be necessary for practical visualization or matching.
  • No built-in isotope pattern deconvolution; the output is theoretical and assumes no instrument noise or overlapping peptide signals.

Evidence

  • [readme] Pyteomics provides modules for calculation of basic physico-chemical properties of polypeptides including mass and isotopic distribution: "calculation of basic physico-chemical properties of polypeptides: mass and isotopic distribution"
  • [methods] The workflow involves calling isotopic distribution calculation function on each peptide composition to compute relative abundances of isotopic peaks: "Call the isotopic distribution calculation function on each peptide composition to compute relative abundances of isotopic peaks"
  • [methods] Results should be formatted and exported to a structured file format and optionally visualized: "Format and export the isotopic distribution results (m/z, intensity pairs) to a CSV or JSON file; optionally visualize the envelope using matplotlib"
  • [methods] Pyteomics requires NumPy as a core dependency: "Install Pyteomics with pip or conda, ensuring NumPy is available as a core dependency"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.