Peptacular
A Python package for peptide sequence analysis built around ProForma 2.1 notation. Calculate masses, generate fragments, predict isotopic patterns, and more. Peptacular uses type annotations extensively, so it is type safe.
Install / Use
/learn @tacular-omics/PeptacularREADME
Peptacular
<div align="center"> <img src="https://raw.githubusercontent.com/tacular-omics/peptacular/main/peptacular_logo.png" alt="Peptacular Logo" width="400" style="margin: 20px;"/>A Python package for peptide sequence analysis built around ProForma 2.1 notation. Calculate masses, generate fragments, predict isotopic patterns, and more. Peptacular uses type annotations extensively, so it is type safe.
</div>Features
- ProForma 2.1 Parsing
- Modifiable ProFormaAnnotation Objects (Factory Pattern)
- Mass/Mz/Composition Calculations
- Predicted Isotopic Distributions
- Enzymatic Protein Digestion
- Fragment Ion Generation
- Physiochemical Property Calculations
- Built-in Parallel Processing
Installation
pip install peptacular
Quick Start (Object Based)
See docs for more detail.
import peptacular as pt
# Parse a sequence into a ProFormaAnnotation
peptide: pt.ProFormaAnnotation = pt.parse("PEM[Oxidation]TIDE")
# Calculate mass and m/z
mass: float = peptide.mass() # 849.342
mz: float = peptide.mz(charge=2) # 425.678
# Factory pattern
print(peptide.set_charge(2).set_peptide_name("Peptacular").serialize())
# (>Peptacular)PEM[Oxidation]TIDE/2
Quick Start (Functional Based)
When more than one item is passed to the functional API methods, it is automatically parallelized.
import peptacular as pt
peptides = ['[Acetyl]-PEPTIDES', '<C13>ARE', 'SICK/2']
# Calculate mass and m/z for all peptides
masses: list[float] = pt.mass(peptides) # [928.4026, 374.1914, 451.2454]
mzs: list[float] = pt.mz(peptides, charge=2) # [465.2086, 188.103, 225.6227]
ProForma 2.1 Compliance
See PROFORMA_COMPLIANCE.md for detailed compliance status.
Contributing
Contributions welcome! See CONTRIBUTING.md for guidelines on setting up the development environment, code style, testing, and submitting pull requests.
License
MIT
Citation
Working on a JOSS submission, but in the meantime use:
https://doi.org/10.5281/zenodo.15054278
Related Skills
claude-opus-4-5-migration
111.5kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
352.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
51.3k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.8kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
