Figures in this documentation are real model outputs on open-access TCGA slides (e.g.
TCGA-75-7027), shown as representative examples — not benchmarks. See Responsible use → Data attribution.Load an output file
Load a Zarr output with the built-in helper; it returns the arrays and metadata as a dict.load_zarr_output returns outputs (n_tiles, D), coords (n_tiles, 2), and metadata, plus — when present — gene_names, thumbnail, tissue_mask, and tissue_ratios. HDF5 (.h5) and NPZ (.npz) outputs expose the same keys via h5py and np.load(allow_pickle=True).
Plot with the built-in helpers
bioptimus.utils ships the plotting helpers used in the getting-started notebooks. Heatmap overlays and single-gene overlays are all covered by the spatial gene panel helper below — pass a single-entry GENE_PANEL for one gene — so there’s no need to hand-roll matplotlib.
Spatial gene panel
Overlay one or more genes on the slide thumbnail in one call.
Image-only vs. bulk-RNA-guided
Compare the same gene predicted with and without bulk RNA context.
Highest- and lowest-expressing tiles
Pull the tiles driving a gene’s prediction for quick visual QC.

