Skip to main content

AI rescoring for extreme-scale proteomics

Project description

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']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

airpot-0.8.3.tar.gz (649.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airpot-0.8.3-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file airpot-0.8.3.tar.gz.

File metadata

  • Download URL: airpot-0.8.3.tar.gz
  • Upload date:
  • Size: 649.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for airpot-0.8.3.tar.gz
Algorithm Hash digest
SHA256 d2c6001f9a5aacce5d29b0c38c7d66cb5fe60db354b1f38a1fe16952df497fa6
MD5 f8812a78abc6b24399cc7c680dae1611
BLAKE2b-256 3540e2b54ff17427ebe06eb481796e4511dbcef5080c390d2781d5a3499fc3b5

See more details on using hashes here.

Provenance

The following attestation bundles were made for airpot-0.8.3.tar.gz:

Publisher: publish.yml on seerbio/airpot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file airpot-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: airpot-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for airpot-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c464a2c320f6b9fcf333f38da6e57fe1160b69a968e9199a8a08e0e362a4e3f
MD5 2d22ae578ff2ee146e7766b704ab6c08
BLAKE2b-256 e6075fbe080169394aec1676791ba2f408802e7542f2aff11c055aa89cdbde4d

See more details on using hashes here.

Provenance

The following attestation bundles were made for airpot-0.8.3-py3-none-any.whl:

Publisher: publish.yml on seerbio/airpot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page