Skip to main content

APB ProteoBench

DOI PyPI

ProteoBench annotation, mixed-species diagnostics, and scoring for storage-neutral APB2 results. HYE and HY use the same configuration-driven calculation.

Installation

APB ProteoBench requires Python 3.13 or later.

pip install apb-proteobench

Usage

Run the complete workflow directly from vendor files:

apb-proteobench run quant report.tsv proteins.fasta \
    --params search-parameters.txt \
    --module module_settings.toml \
    --software spectronaut \
    --level peptidoform_ion \
    --output results/scored.h5ad

This one call converts the selected APB2 quantification level, verifies modification-stripped peptide sequences against the FASTA database, applies the ProteoBench sample design, calculates diagnostics and scores, and writes one final APB2 result. Omit --level to convert every compatible level. Single-level H5AD and multi-level H5MU targets are supported alongside Parquet and DuckDB. Intermediate values remain storage-neutral ParsedLevels, and APB2's write_parsed_levels selects persistence from the target suffix. It scores the level named in module_settings.toml as the vendor table reports it and performs no quantitative aggregation.

The equivalent reusable workflow calls the existing tools directly:

apb2 convert report.tsv --params search-parameters.txt --software spectronaut --output results/all
apb-fasta verify-peptides results/all.h5mu proteins.fasta --output results/fasta-checked.h5mu
apb-proteobench benchmark results/fasta-checked.h5mu module_settings.toml results/scored.h5mu

APB ProteoBench declares apb2, apb-fasta and apb-catalog.

The CLI intentionally exposes only run and benchmark; APB2 owns conversion and persistence, while the Python API exposes in-memory ProteoBench analysis over canonical ParsedLevels. benchmark combines annotation and scoring for an existing APB2 result. Scoring uses one abundance layer: --layer NAME, by default X, the APB primary layer projected to AnnData X; a module that sets abundance_normalization, such as dia_plasma, makes X the layer apb-catalog's abundance_alpha set names for it. Per-layer diagnostics live in varm["proteobench:<layer-name>"], while selection provenance and layer-keyed scores live in metadata["proteobench"]. See the documentation.

To feed the existing pMultiQC ProteoBench module and retain the matching ProteoBot result, add --result-performance reports/result_performance.csv to run or benchmark. The option publishes two staged files in the same directory: result_performance.csv plus <intermediate_hash>.json in the schema and naming convention used by Proteobench/Results_quant_ion_DDA. Each file is published atomically without overwrite, and a failed publication rolls back any file added by the same call. This export writes the scored layer, supports only a peptidoform_ion level, and refuses either existing target. Its SHA-256 submission hash is computed only during this export from the selected layer and scoring inputs. The new identity does not match historical SHA-1 uploads.

For optional operation-level timing files, pass --timings-dir DIR to run. It writes separate JSON files for APB2 conversion, FASTA verification, and ProteoBench benchmarking without changing the scored result or Studio's process-level runtime measurement.

The package owns all 11 ProteoBench module TOMLs: the nine quantitative HYE/HY and plasma modules and the newer de novo and entrapment documents. Entrapment is scored by run entrapment; de novo is packaged for planned support. Neither is accepted by the quantitative scorer. Every quantitative module's scores include ProteoBench's plasma metrics under generic names; see results. Stable names, support status, and the Python loading API are documented under module configuration.

Development

uv sync --group dev
make check
.venv/bin/pre-commit install --hook-type pre-commit --hook-type pre-push

All Python commands run from the synchronized project .venv.

Metadata

Release files for apb-proteobench 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apb-proteobench 0.2.0
File Size Uploaded Provenance Actions
apb_proteobench-0.2.0.tar.gz 54.2 kB With provenance Details for apb_proteobench-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apb-proteobench 0.2.0
File Interpreter ABI Platform Actions
apb_proteobench-0.2.0-py3-none-any.whl Python 3 none any Details for apb_proteobench-0.2.0-py3-none-any.whl

Total release size: 134.3 kB

Release files / apb_proteobench-0.2.0.tar.gz

Download URL apb_proteobench-0.2.0.tar.gz
Size 54.2 kB
Tags Source
SHA-256 checksum
How to use checksums
3718c4a7d5688c0fa39322ae950877ecb6e4a692a5cf5ad6a08d5eea4d7deb26
BLAKE2b-256 checksum
How to use checksums
a1cc5467866100435f79d72e24642728f16684da8033639fca35b13fb46c642d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Release files / apb_proteobench-0.2.0-py3-none-any.whl

Download URL apb_proteobench-0.2.0-py3-none-any.whl
Size 80.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e8ecfabd3c8b829216df5a9b97e275bdce669fb129cf67461c380db665f8221
BLAKE2b-256 checksum
How to use checksums
6f2a7c310dd0b6bc3d3417e5a0b57fc50a30f6e371a80967b726954813ed90a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 21, 2026.

Transparency log

Security for apb-proteobench 0.2.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apb_proteobench-0.2.0.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 Nov 21, 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.

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