AI rescoring for extreme-scale proteomics
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2c6001f9a5aacce5d29b0c38c7d66cb5fe60db354b1f38a1fe16952df497fa6
|
|
| MD5 |
f8812a78abc6b24399cc7c680dae1611
|
|
| BLAKE2b-256 |
3540e2b54ff17427ebe06eb481796e4511dbcef5080c390d2781d5a3499fc3b5
|
Provenance
The following attestation bundles were made for airpot-0.8.3.tar.gz:
Publisher:
publish.yml on seerbio/airpot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airpot-0.8.3.tar.gz -
Subject digest:
d2c6001f9a5aacce5d29b0c38c7d66cb5fe60db354b1f38a1fe16952df497fa6 - Sigstore transparency entry: 2042583264
- Sigstore integration time:
-
Permalink:
seerbio/airpot@9d75daee66fd7874c8f9f3314b39e990437242db -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/seerbio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d75daee66fd7874c8f9f3314b39e990437242db -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c464a2c320f6b9fcf333f38da6e57fe1160b69a968e9199a8a08e0e362a4e3f
|
|
| MD5 |
2d22ae578ff2ee146e7766b704ab6c08
|
|
| BLAKE2b-256 |
e6075fbe080169394aec1676791ba2f408802e7542f2aff11c055aa89cdbde4d
|
Provenance
The following attestation bundles were made for airpot-0.8.3-py3-none-any.whl:
Publisher:
publish.yml on seerbio/airpot
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
airpot-0.8.3-py3-none-any.whl -
Subject digest:
6c464a2c320f6b9fcf333f38da6e57fe1160b69a968e9199a8a08e0e362a4e3f - Sigstore transparency entry: 2042584100
- Sigstore integration time:
-
Permalink:
seerbio/airpot@9d75daee66fd7874c8f9f3314b39e990437242db -
Branch / Tag:
refs/tags/v0.8.3 - Owner: https://github.com/seerbio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@9d75daee66fd7874c8f9f3314b39e990437242db -
Trigger Event:
release
-
Statement type: