Skip to main content

APB ProteoBench

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 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-aggregate ion protein sum results/fasta-checked.h5mu results/aggregated.h5mu
apb-proteobench benchmark results/aggregated.h5mu module_settings.toml results/scored.h5mu

The apb-aggregate step is optional: include it only when the scored level must be derived from a lower one. Omit it and benchmark reads results/fasta-checked.h5mu directly.

APB ProteoBench declares apb2, apb-fasta and apb-catalog, and reaches aggregation solely as a subprocess.

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. 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 an 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; 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.1.1

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.1.1
File Size Uploaded
apb_proteobench-0.1.1.tar.gz 47.8 kB Details

Built distribution (wheel)

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

Total release size: 123.6 kB

Release files / apb_proteobench-0.1.1.tar.gz

Download URL apb_proteobench-0.1.1.tar.gz
Size 47.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f640d4b437a473f17b4f8b30ca1ed1a0224f9c49aaf56280021ad9df99d02ad8
BLAKE2b-256 checksum
How to use checksums
8b130bbfc84eda79855cc6159d0db434a386e94d59b0ce7aa21d3d109b9d9ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

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

Download URL apb_proteobench-0.1.1-py3-none-any.whl
Size 75.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee38c11750b22efd23b2d9980bb0099a22ea5fecba158803b3101004be374e0c
BLAKE2b-256 checksum
How to use checksums
00ace5064030112a40f5714e1b405604476e369d6642b5bfee7bd2c49b36fead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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