Skip to content

Module configuration

Authored documents

A module is a TOML file and the SDRF-Proteomics table it names. The SDRF owns the sample design: one row per run, its data file, assay name, condition, and the quantity of every species in the mixture. The TOML holds only the scoring settings an SDRF cannot express.

sdrf = "module.sdrf.tsv"

[species.YEAST]
organism = "saccharomyces cerevisiae"
suffix = "_YEAST"
color = "#88ccef"

[species.HUMAN]
organism = "homo sapiens"
suffix = "_HUMAN"

[general]
min_count_multispec = 1
level = "peptidoform_ion"
default_cutoff_min_feature = 1
max_nr_observed = 6

[run_aliases]
"run_A1.raw" = ["run_A1_uncalibrated"]

The SDRF path is relative to the TOML's directory. APB2 reads it through apb2.api.SdrfSource.read; the columns ProteoBench uses are:

SDRF column Becomes
comment[data file] run identifier raw_file, without directories or extension
assay name sample_name
the single factor value[…] column condition; A and B are required
characteristics[spiked compound], one column per species CT=mixture;SP=<organism>;QY=<amount> <unit>

Fields used by scoring

  • Each species' expected A/B ratio is the quotient of its condition A and condition B quantities. Every scored species needs one quantity per condition, in one unit, identical across that condition's rows.
  • [species.<NAME>] links an SDRF organism to the FASTA entry-name suffix that marks its proteins, and to an optional plot color. Every spiked organism needs an entry.
  • Species and contaminants come from apb-fasta's varm["fasta_validation"], so scoring requires peptide verification. A feature belongs to a species when a FASTA protein containing its peptide has that organism (suffix without _, e.g. HUMAN); with --proteins vendor, when a protein the vendor reports has it. It is a contaminant when such a protein is, or when apb2 marked it apb_Contaminant; it is dropped as a decoy when apb2 marked it apb_Decoy.
  • [run_aliases] lists further run names that vendor tables report, keyed by SDRF data file. An observation may match a run's identifier, an alias, or its sample name; successful matching always records the module's canonical metadata.
  • min_count_multispec controls exclusion of features assigned to multiple species.
  • level selects the single APB2 quantification level to annotate and score.
  • default_cutoff_min_feature selects the aggregate projection shown at the top of the score.
  • max_nr_observed controls the complete cutoff-indexed score range.
  • abundance_normalization, optional, APB only: none or run_setting. The module then scores the level's intensity layer with that normalization, which apb-catalog's abundance_alpha set names per software, instead of the primary layer; where the set names none, the primary layer is scored and the level summary says so. dia_plasma sets none.

Unknown TOML sections, such as ProteoBench's [reference_database] and [validation], are accepted. Only the resolved sample design and scoring fields are embedded in APB metadata. The packaged SDRFs pass the official sdrf-pipelines structural validation; APB itself does not validate SDRF structure or ontology terms.

Supported quantitative modules

HY omits ECOLI from the SDRF and the [species] table; HYE includes it. The quantitative scorer supports the eight HYE/HY modules used by the legacy APB integration and the plasma module:

Name Acquisition and instrument Level
dda_astral DDA Astral peptidoform_ion
dda_peptidoform DDA peptidoform
dda_qexactive DDA Q Exactive peptidoform_ion
dia_aif DIA AIF peptidoform_ion
dia_astral DIA Astral peptidoform_ion
dia_diapasef DIA diaPASEF peptidoform_ion
dia_plasma DIA timsTOF, human plasma background (PYE) peptidoform_ion
dia_singlecell DIA low-input/single-cell peptidoform_ion
dia_zenotof DIA ZenoTOF peptidoform_ion

Load from Python

Load them by name without locating package files:

from apb_proteobench.api import load_packaged_module

module = load_packaged_module("dia_singlecell")

load_packaged_module() accepts only these nine modules, which are validated for the current quantitative scorer; any other name raises and lists them.

Packaged for planned support

Two newer ProteoBench module documents are also packaged so this repository owns the complete upstream catalogue:

Name Module Current status
denovo_dda_hcd de novo DDA HCD different schema; not implemented
entrapment_dia_astral DIA Astral entrapment scored by run entrapment; TOML plus SDRF of the three K562 runs

load_packaged_module() refuses both. load_packaged_entrapment_module("entrapment_dia_astral") loads the entrapment module for EntrapmentAnalyzer; see the Python API.

The nine supported modules are derived from ProteoBench's module TOMLs, with their sample design moved into packaged SDRFs. entrapment_dia_astral gains an SDRF, drops the upstream mapping_file and names its level peptidoform_ion; denovo_dda_hcd is an unchanged copy. All files are pinned by checksum. Their source revision, original paths, and support status are recorded in MODULES_NOTICE.md.

Persisted form

The embedded sample design is normalized as a column mapping (raw_file, sample_name, and condition arrays), rather than TOML's list of tables, so the same JSON-compatible value round-trips through AnnData's HDF5 representation. Authored aliases participate in annotation and remain traceable to the checksum-identified source module; source.sdrf records the SDRF's name and checksum beside the TOML's.

Continue to Result layout for the physical and storage-neutral metadata locations.