.. image:: _static/paftacular_logo.png :alt: Paftacular Logo :align: center :width: 300px | .. raw:: html
Python package Documentation Status PyPI version Python 3.12+ License
| .. raw:: html
Welcome to Paftacular's documentation! Paftacular is a Python library for parsing and serializing mzPAF (Peak Annotation Format). mzPAF is a specification from the Proteomics Standards Initiative (PSI) that provides a compact, human-readable notation for describing fragment ion types, chemical modifications, charge states, mass errors, and confidence scores.
Features -------- * **mzPAF parsing**: Handles parsing / serializing of mzPAF strings * **Properties**: Supports calculating mass and composition of annotated ions * **Type-Annotations**: typed.py file for static type checking * **Caching**: serialization and parsing results are cached for performance (when applicable) * **Integrated**: Integrated with peptacular, such that peptacular can output mzPAF annotations for fragment ions Quick Example ------------- .. testcode:: import paftacular as pft ann = pft.parse("y5") print(ann.ion_type.series) print(ann.mass()) .. testoutput:: y 19.017841466812 See :doc:`usage` for the full guide, including creating annotations programmatically, computing masses/compositions, and round-tripping to mzPAF strings. .. toctree:: :maxdepth: 2 :caption: Contents: installation usage api Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search`