Skip to main content
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]

Metadata

Release files for cortado-ms 0.16.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 cortado-ms 0.16.3
File Size Uploaded Provenance Actions
cortado_ms-0.16.3.tar.gz 635.3 kB With provenance Details for cortado_ms-0.16.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cortado-ms 0.16.3
File Interpreter ABI Platform Actions
cortado_ms-0.16.3-py3-none-any.whl Python 3 none any Details for cortado_ms-0.16.3-py3-none-any.whl

Total release size: 682.3 kB

Release files / cortado_ms-0.16.3.tar.gz

Download URL cortado_ms-0.16.3.tar.gz
Size 635.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f7045874f7e93de1eb0eda096523b0e247011db1fc0d9152c1c57602098a3a6a
BLAKE2b-256 checksum
How to use checksums
5a01658c29b57a7fab6b2ae8a6232403094ed891ae20c3dc8d50cf5a513e706f
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 / cortado_ms-0.16.3-py3-none-any.whl

Download URL cortado_ms-0.16.3-py3-none-any.whl
Size 47.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f790818ca2740ca4619faa5261ebda33cfe779c243e7ff629f5af683244d6d0
BLAKE2b-256 checksum
How to use checksums
488a6ba51c9ba60586b5403fa455269e181136c75b3d6bc7049c009d8e50f6ec
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 cortado-ms 0.16.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 cortado_ms-0.16.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.16.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