What a finished run leaves in --outdir, and which parameters change it.
<outdir>/
├── preprocessing/
│ ├── illumination/ illumination profiles, per cycle
│ ├── registration/ {sample}.ome.tif, the stitched image; {sample}_ashlar_qc/
│ ├── background_subtraction/ with use_backsub
│ └── dearray/ with use_tma_dearray
├── {sample}.zarr/ the SpatialData store: image, cell outlines, cell table
├── qc/ QC reports, metrics, images
└── pipeline_info/ Nextflow reports, tool versions, parameters usedOn a TMA, {slide}_merged.zarr/ and {slide}_merge_manifest.json take the place of per-core
stores. With preprocessing_only, preprocessing/ and pipeline_info/ are the whole output.
File by file:
Preprocessing: profiles, the stitched image, subtracted and dearrayed images.
QC files: what each file in
qc/holds.Plots and reports: how to read the reports, which viewer to use, common failures.
The Zarr store: the cells, outlines and measurements, and how to keep the store healthy.
pipeline_info/ holds Nextflow’s execution report, timeline and trace, the software versions
(histo_software_versions.yml) and the parameters of the run (params_{timestamp}.json). Keep
it with the results: it says how they were made.
What changes the outputs¶
Which parameter adds, removes or changes what, in --outdir and in the store. {m} is
cellpose or instanseg; <image> is the image element. Defaults are on the
parameters page.
| Parameter | Effect on outdir | Effect on the store |
|---|---|---|
use_preprocessing | False: no preprocessing/ and no Ashlar QC. | False: channel names are the image’s own; the marker sheet does not rename them. |
preprocessing_only | Only preprocessing/ and pipeline_info/; Ashlar’s QC still with use_qc. | No store. |
use_backsub | Adds preprocessing/background_subtraction/{sample}_backsub.ome.tif and .csv. The QC JSON adds channel statistics from before subtraction. | The image is the subtracted one, named {sample}_backsub, so cell ids start with it. Channels marked remove are gone. |
use_tma_dearray | Adds preprocessing/dearray/, and dearray/sweep/ unless coreograph_args is set. One QC report per core and method, plus qc/{slide}_{m}_slide_report.html. | {slide}_merged.zarr and {slide}_merge_manifest.json instead of per-core stores. Elements are named {core_id}__{name}, e.g. TMA01_core001__cellpose_table, except an image already named after the core; tables gain obs['core_id']. |
use_tissue_segmentation | None. | Adds shapes/region_of_interest; image_patches covers only the tissue. |
use_gpu | None. | None, apart from gpu: true in each entry of uns['segmentation']. |
use_projection | Adds qc/{sample}_projection.png and .json. | Cellpose segments <image>_projected, which is then deleted unless keep_projection. |
keep_projection | None. | Keeps images/<image>_projected, channels nuclear and cell. |
use_cellpose, use_instanseg | With use_qc, one qc/{sample}_{m}_qc.json and _qc_report.html per method, and _qc_images/ with use_qc_images; with both methods segmenting cells, also qc/{sample}_comparison.json and .html. | Shapes {m}_* and tables/{m}_table per method. |
segment_cells | False: no qc/{sample}_comparison.*. | Adds shapes/{m}_cells; table rows are cells. False: rows are nuclei, with nucleus_* columns and no cell_*. |
segment_nuclei | With segment_cells: the QC JSON adds linking. | Adds shapes/{m}_nuclei. With segment_cells also shapes/{m}_cytoplasm, linked_cell_id on the nuclei, table layers nucleus and cytoplasm, and obs columns n_nuclei, nucleus_id, cytoplasm_area, nucleus_*, nc_ratio. |
quantification_statistics | None. | One table column per marker and statistic, {marker}_{statistic}; also listed in uns['quantification']. |
expand_radius_ratio | None. | X is measured over the expanded cells. Layers, shape features and obsm['spatial'] use the unexpanded ones. |
use_qc | False: no QC reports or metrics in qc/, and no {sample}_ashlar_qc/. | None: QC only reads the store. |
use_qc_images | False: no qc/{sample}_{m}_qc_images/; the report keeps metrics and charts, without crops and clusters. | None. |
publish_dir_mode | How every file reaches outdir: copy (default), copyNoFollow, move, link, symlink or rellink. symlink and rellink point into work/ and break when it is cleaned. | The store is published the same way. |
Booleans are switched off in a params file, not on the command line; see Parameters.
A rerun with -resume and different parameters can leave the store out of step with them; see
Resume a run and Pitfalls.