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
miape = Catalog(parsed, "miape")
miape.var("protein", concept="miape") # ('gene_name', 'protein_group')
genes = miape.var("protein", concept="miape", kind="gene_name") # the column MIAPE-AnnData calls gene_name
- Every entry of both sets
layerreturns the apb2 layer table,varthe column;Nonemeans 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
UnresolvedFieldnaming the candidates attach_snapshot(parsed, catalog.snapshot())records bindings and lookups inmetadata["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 entriesmiape: draft mapping onto the MIAPE-AnnData Schema 0.4.0 draft (HUPO-PSI AI Readiness Working Group): protein, peptide and peptidoform fields and therawlayer; ion levels have no MIAPE modality; 32 entriesCatalog(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, neverunknown - 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:
confidencewithkind(pep, q_value) andstage;miapewithkindnaming the MIAPE-AnnData field and its requirement level
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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apb_catalog-0.1.0.tar.gz | 24.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apb_catalog-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 73.6 kB
Release files / apb_catalog-0.1.0.tar.gz
| Download URL | apb_catalog-0.1.0.tar.gz |
|---|---|
| Size | 24.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
728956e20f14ff8dc1ca580bccc5be4d973559cf6bb1625ecf4ab9db07ba9619
|
|
BLAKE2b-256 checksum How to use checksums |
ee55705d962116dc89894557ab1131d7c46f47385a3798e5491b3f182630e42b
|
| 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 logRelease files / apb_catalog-0.1.0-py3-none-any.whl
| Download URL | apb_catalog-0.1.0-py3-none-any.whl |
|---|---|
| Size | 49.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
537df7289b188626a3cf45fda2cb42b814fb0521d00fe2ac6907a41915f4bdb8
|
|
BLAKE2b-256 checksum How to use checksums |
1d7a9485cef4c039cd34ccdbd87151bcf05ba068415844bb52bfa3fa17c56d49
|
| 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