Confidence estimation for extreme-scale proteomics experiments
Project description
cortado is a Python package that implements various methods to estimate false discovery rates (FDR) in extreme-scale mass spectrometry proteomics experiments. cortado is focused on gathering and reducing datasets to enable applying efficient implementations to estimate FDR. An additional focus is supporting peptide-centric searching through the "mixture-maximum" (MixMax) approach, which also supports spectrum-centric searches.
Cortado is designed to be easy-to-use and flexible. Currently the following modes are supported:
- Global PSM FDR
- Global peptide or precursor FDR
- MixMax q-value estimation
- Protein scoring by rolling up PSM scores
- Protein q-value estimation
Installation
cortado requires Python 3.8+ and can be installed with pip:
pip install cortado-ms
Basic Usage
Using cortado requires that you collect a dataset of PSMs, which can easily be
accomplished with the
wheely-mammoth library, which is
installed when you install cortado-ms:
>>> from wheely.mammoth.parsers import read_encyclopedia_features
>>> ds = read_encyclopedia_features("data/*.features.txt")
You can then compute q-values using the assign_confidence function:
>>> from cortado import assign_confidence
>>> conf = assign_confidence(ds, "primary", desc=False)
>>> print(f"pi0={100*conf.pi0:.2f}%")
pi0=36.74%
>>> conf.data.toPandas()[["primary", "sequence", "q-value"]]
primary sequence q-value
0 43.783160 -.LSLEGDHSTPPSAYGSVK.- 0.000000
1 41.212322 -.NGPLEVAGAAVSAGHGLPAK.- 0.000000
2 36.081665 -.IMDPNIVGSEHYDVAR.- 0.000000
3 34.730186 -.TTHYTPLAC[+57.0214635]GSNPLKR.- 0.000000
4 34.666630 -.SGPKPFSAPKPQTSPSPK.- 0.000000
.. ... ... ...
827 8.150498 -.FGVEQDRMDK.- 0.414025
828 8.065474 -.QYYYSADGSR.- 0.416572
829 8.028464 -.APHDFQFVQK.- 0.416572
830 7.946067 -.KLYEDAQMAR.- 0.417337
831 7.632076 -.LTC[+57.0214635]PC[+57.0214635]C[+57.0214635... 0.420368
[832 rows x 3 columns]
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 cortado_ms-0.16.3.tar.gz.
File metadata
- Download URL: cortado_ms-0.16.3.tar.gz
- Upload date:
- Size: 635.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 |
f7045874f7e93de1eb0eda096523b0e247011db1fc0d9152c1c57602098a3a6a
|
|
| MD5 |
4f002f14eae9095a6e03b18fba63e161
|
|
| BLAKE2b-256 |
5a01658c29b57a7fab6b2ae8a6232403094ed891ae20c3dc8d50cf5a513e706f
|
Provenance
The following attestation bundles were made for cortado_ms-0.16.3.tar.gz:
Publisher:
publish.yml on seerbio/cortado
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cortado_ms-0.16.3.tar.gz -
Subject digest:
f7045874f7e93de1eb0eda096523b0e247011db1fc0d9152c1c57602098a3a6a - Sigstore transparency entry: 2042016385
- Sigstore integration time:
-
Permalink:
seerbio/cortado@089a237ba0e4f2552106ffecfc1348536cbbfef5 -
Branch / Tag:
refs/tags/v0.16.3 - Owner: https://github.com/seerbio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@089a237ba0e4f2552106ffecfc1348536cbbfef5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file cortado_ms-0.16.3-py3-none-any.whl.
File metadata
- Download URL: cortado_ms-0.16.3-py3-none-any.whl
- Upload date:
- Size: 47.0 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 |
4f790818ca2740ca4619faa5261ebda33cfe779c243e7ff629f5af683244d6d0
|
|
| MD5 |
4eba2a39ee0291e1fb6bb7d0d7c6e6a1
|
|
| BLAKE2b-256 |
488a6ba51c9ba60586b5403fa455269e181136c75b3d6bc7049c009d8e50f6ec
|
Provenance
The following attestation bundles were made for cortado_ms-0.16.3-py3-none-any.whl:
Publisher:
publish.yml on seerbio/cortado
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cortado_ms-0.16.3-py3-none-any.whl -
Subject digest:
4f790818ca2740ca4619faa5261ebda33cfe779c243e7ff629f5af683244d6d0 - Sigstore transparency entry: 2042016689
- Sigstore integration time:
-
Permalink:
seerbio/cortado@089a237ba0e4f2552106ffecfc1348536cbbfef5 -
Branch / Tag:
refs/tags/v0.16.3 - Owner: https://github.com/seerbio
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@089a237ba0e4f2552106ffecfc1348536cbbfef5 -
Trigger Event:
release
-
Statement type: