Web app
apb-export-web without arguments shows Cyclopts help. apb-export-web serve starts the page that converts one vendor result and shows QC before download; apb-export-web serve --help lists server options.
Inputs and outputs
- Inputs: a vendor result, an optional parameter file, an optional SDRF or prolfquapp sample table, an optional FASTA
- Outputs: any target on APB Export targets, or an APB2 result as h5ad/h5mu, Parquet or DuckDB
- QC: intensity density per sample, CV per feature within each annotation group, detected and missing counts
pMultiQC / QPX
Where the apb-pmultiqc application is installed, as in the image and a development checkout, choose this output to convert the upload into an APB result and immediately run it. The PyPI install has no apb-pmultiqc until a pMultiQC release carries the fixes it needs; there this output is QPX and writes the tables only. Optional sample annotation and FASTA verification run before the report; grouping, organism, FASTA and SDRF are not required. RT is resolved through APB Export's chromatography catalogue, never through web-specific vendor-column mappings.
After completion, Open pMultiQC report opens the self-contained HTML in a new tab. Downloads include qpx.zip (Parquet tables and exporter provenance), pmultiqc_report.html, and pmultiqc.zip (full report, data tables, logs and installed-source provenance). Only a completed job's listed report is served inline at api/jobs/{id}/report; deletion and expiry remove it with the job. Failures and timeouts remain failed jobs with a job log.
exploreDE
Choose exploreDE to write one exploreDE file per level the result holds: protein, peptide and precursor. Each is its own download, <input>_explorede_<level>.h5ad, and Open ?data=. serve --explorede-url sets the app; the default is the public instance https://shiny-public.fgcz.uzh.ch/app/exploreDE/. exploreDE downloads the file itself, so the link works only from a server exploreDE can reach and accepts, such as https://apps-dev.bfabric.org/apb-export/.
uv sync --locked --group dev
uv run --locked apb-export-web examples build
uv run --locked apb-export-web serve
Staging requires the selected fixtures to be downloaded through APB Studio already. Start the server with apb-export-web serve and stop it with Ctrl-C.
serve searches the current directory and then its parents for an indexed build/web-examples, so starting from a checkout subdirectory loads the same bundle. An explicit positional directory selects another bundle. Startup reads the folder's index and runs no exporter; it refuses a folder without an index, or one indexed with other installed APB commits, before touching the job store.
If this app already owns the requested address, serve gracefully stops it and waits for the port before starting the replacement. The check verifies the listening socket, process owner and installed app entry point; an unrelated or unverifiable listener is left running, and startup exits before changing the job store.
The page asks for the software first, then shows the files it expects: result and parameter file names from each tool's own documentation and source code, packaged as src/apb_export_ui/web/hints.json, and whether the parameter file is required.
A greyed-out output or example button says why in text beside it, such as "Perseus reads protein; this example holds peptidoform_ion.", so touch screens show it too.
On desktop, Software, Files and Convert share the left column and Output fills the right. Convert opens a separate results view with a short summary, progress, downloads and a full-width result with two tabs: Quality control first, then AnnData structure. The structure tab draws each H5AD or H5MU result's slots (X, layers, obs, var, the aligned slots and uns) from the APB sidecar beside it, <result>.apb.json; a result without one, such as a table export, Parquet or DuckDB, has no structure tab. Edit setup preserves the selected files and options; View conversion returns to the current job. Reloading a job URL reopens its results.
Examples
apb-export-web examples build resolves the packaged web selection through the Fixture Manager's downloads.csv and writes a staged manifest under build/web-examples, then indexes it: options.json, examples.json and previews/. apb-export-web examples index DIRECTORY rewrites the index alone, for a staged folder or an empty one. MaxQuant offers two complete folders, FGCZ MaxQuant 2.0.1.0 searches of the ProteoBench Q Exactive and Astral DDA samples, each with evidence, modification-specific peptides, peptides, protein groups and mqpar.xml; peptide-entrapment datasets are excluded. apb-export-web serve reads that bundle automatically; the optional positional directory overrides its location.
examples build [DIRECTORY] [WORKSPACE] accepts optional positional destination and workspace roots; the defaults are build/web-examples and ... The builder ships its supplementary example metadata and annotations with the Python package.
Both MaxQuant folders use their ProteoBench module's SDRF, whose data files match the raw runs; each raw file is its own MaxQuant experiment, so the same annotation serves every level. Choose + parameters + annotation to compute CV within conditions A and B. The selection's optional sdrf field names a CSV-relative annotation; staging puts it inside a folder input or beside a file input.
Examples can run four ways; an example with a parameter file offers the first three, one without it the first and last:
- Result file only
- With its parameter file
- With parameters and sample annotation
- With sample annotation alone
+ FASTA adds the example's FASTA to any of them, where the example has one.
The server uses the sample annotation beside the input, or the module annotation staged with the examples. It links the chosen files into the job instead of uploading them; the data stays where the corpus keeps it.
The index holds the first 20 lines of every example file, and the page shows them when a file name is clicked.
Jobs
- Each upload becomes a job folder
- One worker runs the installed conversion and report commands in its own process group
- The worker writes
status.json,qc.jsonand the downloads; the server only serves them - Finished jobs are deleted after
--ttl-hours
The page is a Lit/Vite project in web/; make web rebuilds its bundle into src/apb_export_ui/web/static, which the wheel ships, so no Node runs in production.
Deploy
Releasing the image, staging the examples and running the container: Deployment.