Skip to main content

Confidence estimation for extreme-scale proteomics experiments

Project description

cortado logo

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


Download files

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

Source Distribution

cortado_ms-0.16.3.tar.gz (635.3 kB view details)

Uploaded Source

Built Distribution

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

cortado_ms-0.16.3-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

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

Hashes for cortado_ms-0.16.3.tar.gz
Algorithm Hash digest
SHA256 f7045874f7e93de1eb0eda096523b0e247011db1fc0d9152c1c57602098a3a6a
MD5 4f002f14eae9095a6e03b18fba63e161
BLAKE2b-256 5a01658c29b57a7fab6b2ae8a6232403094ed891ae20c3dc8d50cf5a513e706f

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortado_ms-0.16.3.tar.gz:

Publisher: publish.yml on seerbio/cortado

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

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

Hashes for cortado_ms-0.16.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4f790818ca2740ca4619faa5261ebda33cfe779c243e7ff629f5af683244d6d0
MD5 4eba2a39ee0291e1fb6bb7d0d7c6e6a1
BLAKE2b-256 488a6ba51c9ba60586b5403fa455269e181136c75b3d6bc7049c009d8e50f6ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for cortado_ms-0.16.3-py3-none-any.whl:

Publisher: publish.yml on seerbio/cortado

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