Skip to main content
airpot logo

airpot is a library for AI rescoring of PSMs in extreme-scale proteomics experiments.

Installation

This library requires Python 3.8+ and can be installed with pip:

pip install airpot

Basic Usage

Using airpot requires that you collect a dataset of PSMs, which can easily be accomplished with the wheely-mammoth library, which is installed when you install airpot:

>>> from wheely.mammoth.parsers import read_encyclopedia_features
>>> ds = read_encyclopedia_features("data/*.features.txt")

You can then train a model using the brew function:

>>> from airpot import brew
>>> res = brew(ds)
>>> res
<airpot.backends.mokapot.MokapotResult object at 0x7f2f5e9b7850>
>>> res.psms.data.limit(5).toPandas()[[res.psms.peptide_column, *res.psms.score_columns, res.psms.target_column, res.psms.qvalue_column]]
                   sequence  mokapot score  target  mokapot q-value
0    -.LSLEGDHSTPPSAYGSVK.-       2.851714    True         0.002123
1      -.IMDPNIVGSEHYDVAR.-       2.554996    True         0.002123
2     -.VAQPTITDNKDGTVTVR.-       2.232809    True         0.002123
3  -.TNVNGGAIALGHPLGGSGSR.-       2.189039    True         0.002123
4           -.ASIHEAWTDGK.-       2.145052    True         0.002123
>>> for m in res.models:
...   print(m)
... 
A trained mokapot.model.Model object:
	estimator: LinearSVC(class_weight={0: 10, 1: 1}, dual=False, random_state=7)
	scaler: StandardScaler()
	features: ['primary', 'xCorrLib', 'xCorrModel', 'LogDotProduct', 'logWeightedDotProduct', 'sumOfSquaredErrors', 'weightedSumOfSquaredErrors', 'numberOfMatchingPeaks', 'numberOfMatchingPeaksAboveThreshold', 'averageAbsFragmentDeltaMass', 'averageFragmentDeltaMasses', 'isotopeDotProduct', 'averageAbsParentDeltaMass', 'averageParentDeltaMass', 'eValue', 'deltaRT', 'numMissedCleavage', 'pepLength']
A trained mokapot.model.Model object:
	estimator: LinearSVC(class_weight={0: 10, 1: 10}, dual=False, random_state=7)
	scaler: StandardScaler()
	features: ['primary', 'xCorrLib', 'xCorrModel', 'LogDotProduct', 'logWeightedDotProduct', 'sumOfSquaredErrors', 'weightedSumOfSquaredErrors', 'numberOfMatchingPeaks', 'numberOfMatchingPeaksAboveThreshold', 'averageAbsFragmentDeltaMass', 'averageFragmentDeltaMasses', 'isotopeDotProduct', 'averageAbsParentDeltaMass', 'averageParentDeltaMass', 'eValue', 'deltaRT', 'numMissedCleavage', 'pepLength']
A trained mokapot.model.Model object:
	estimator: LinearSVC(class_weight={0: 0.1, 1: 0.1}, dual=False, random_state=7)
	scaler: StandardScaler()
	features: ['primary', 'xCorrLib', 'xCorrModel', 'LogDotProduct', 'logWeightedDotProduct', 'sumOfSquaredErrors', 'weightedSumOfSquaredErrors', 'numberOfMatchingPeaks', 'numberOfMatchingPeaksAboveThreshold', 'averageAbsFragmentDeltaMass', 'averageFragmentDeltaMasses', 'isotopeDotProduct', 'averageAbsParentDeltaMass', 'averageParentDeltaMass', 'eValue', 'deltaRT', 'numMissedCleavage', 'pepLength']

Metadata

Release files for airpot 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airpot 0.8.3
File Size Uploaded Provenance Actions
airpot-0.8.3.tar.gz 649.3 kB With provenance Details for airpot-0.8.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for airpot 0.8.3
File Interpreter ABI Platform Actions
airpot-0.8.3-py3-none-any.whl Python 3 none any Details for airpot-0.8.3-py3-none-any.whl

Total release size: 679.3 kB

Release files / airpot-0.8.3.tar.gz

Download URL airpot-0.8.3.tar.gz
Size 649.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2c6001f9a5aacce5d29b0c38c7d66cb5fe60db354b1f38a1fe16952df497fa6
BLAKE2b-256 checksum
How to use checksums
3540e2b54ff17427ebe06eb481796e4511dbcef5080c390d2781d5a3499fc3b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

Release files / airpot-0.8.3-py3-none-any.whl

Download URL airpot-0.8.3-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c464a2c320f6b9fcf333f38da6e57fe1160b69a968e9199a8a08e0e362a4e3f
BLAKE2b-256 checksum
How to use checksums
e6075fbe080169394aec1676791ba2f408802e7542f2aff11c055aa89cdbde4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

Security for airpot 0.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for airpot-0.8.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page