Skip to main content

APB Catalog

Catalogues of what APB result fields mean, one set per kind of meaning, each stating its purpose and users, so the consumer asks for a meaning instead of vendor columns such as PEP, EG_PEP or Q_Value.

Documentation: anndata-omics-bridge.github.io/apb-catalog, built from docs/ with make docs; start with Get started.

Installation

pip install apb-catalog

Use

from apb_catalog.api import Catalog

confidence = Catalog(parsed, "identification_confidence")                     # parsed: apb2 ParsedLevels
confidence.layer("ion", concept="confidence")                 # ('pep', 'q_value') — kinds on offer, or None
pep = confidence.layer("ion", concept="confidence", kind="pep")  # MaxQuant PEP, Spectronaut EG_PEP, DIA-NN PEP
  • Every entry of both sets
  • layer returns the apb2 layer table, var the column; None means the vendor has no such field
  • A level answers only for its own entity: ion for precursors, protein for protein groups
  • Confidence lookups mean identification unless stage="quantification" says otherwise
  • Two equally good fields, or a rule nobody reviewed, raise UnresolvedField naming the candidates
  • attach_snapshot(parsed, catalog.snapshot()) records bindings and lookups in metadata["catalog"][<catalogue>]

Catalogues

  • identification_confidence: how likely each identification is correct: per-run PEP and q-value layers, per-feature PEP and Sage's MS1-peak q-value; used by apb-aggregate's confidence-weighted rollups; 12 entries
  • Catalog(parsed, name).description: the set's purpose and users, also embedded in its snapshot
  • Each set lists every packaged APB2 rule level, so a vendor without a relevant field answers missing, never unknown
  • Entries bind to reviewed effective-rule fingerprints (SHA-256 of canonical rule_json); any APB2 rule change needs re-review, enforced by the drift tests
  • Vocabulary: confidence with kind (pep, q_value) and stage

Snapshot contract

attach_snapshot stores apb-catalog-resolution 0.2 as JSON at ParsedLevels.metadata["catalog"][<catalogue>]; APB2 persists it in every format, including AnnData uns from HDF5 result format 5. It embeds the set's description, concept definitions, level bindings, retained entries and every answer, so readers need neither this package nor its catalogues. The JSON Schema is published with the package; make schema regenerates it.

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-catalog 0.1.2

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-catalog 0.1.2
File Size Uploaded Provenance Actions
apb_catalog-0.1.2.tar.gz 23.2 kB With provenance Details for apb_catalog-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apb-catalog 0.1.2
File Interpreter ABI Platform Actions
apb_catalog-0.1.2-py3-none-any.whl Python 3 none any Details for apb_catalog-0.1.2-py3-none-any.whl

Total release size: 60.7 kB

Release files / apb_catalog-0.1.2.tar.gz

Download URL apb_catalog-0.1.2.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6d00d56e72b6ec66e072d9c2b155e46d869785c75d620f581d15996fd14b8ee3
BLAKE2b-256 checksum
How to use checksums
3f22445bc2ec7d9394b023a7da9aaac2fd5822d375d7c5cae5c00151cb8381b6
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 Oct 21, 2026.

Transparency log

Release files / apb_catalog-0.1.2-py3-none-any.whl

Download URL apb_catalog-0.1.2-py3-none-any.whl
Size 37.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26052285f5d4f75625d3122da9f1d94a52be9846e7e80859be5e4bab455e280c
BLAKE2b-256 checksum
How to use checksums
b0fd8bdecddc20cf86e27e8ac7a27a57247b0dbb58ef41439f94800d2072bcdb
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 Oct 21, 2026.

Transparency log

Security for apb-catalog 0.1.2

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_catalog-0.1.2.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 Oct 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