Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Outputs

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 used

On 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:

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.

ParameterEffect on outdirEffect on the store
use_preprocessingFalse: no preprocessing/ and no Ashlar QC.False: channel names are the image’s own; the marker sheet does not rename them.
preprocessing_onlyOnly preprocessing/ and pipeline_info/; Ashlar’s QC still with use_qc.No store.
use_backsubAdds 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_dearrayAdds 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_segmentationNone.Adds shapes/region_of_interest; image_patches covers only the tissue.
use_gpuNone.None, apart from gpu: true in each entry of uns['segmentation'].
use_projectionAdds qc/{sample}_projection.png and .json.Cellpose segments <image>_projected, which is then deleted unless keep_projection.
keep_projectionNone.Keeps images/<image>_projected, channels nuclear and cell.
use_cellpose, use_instansegWith 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_cellsFalse: no qc/{sample}_comparison.*.Adds shapes/{m}_cells; table rows are cells. False: rows are nuclei, with nucleus_* columns and no cell_*.
segment_nucleiWith 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_statisticsNone.One table column per marker and statistic, {marker}_{statistic}; also listed in uns['quantification'].
expand_radius_ratioNone.X is measured over the expanded cells. Layers, shape features and obsm['spatial'] use the unexpanded ones.
use_qcFalse: no QC reports or metrics in qc/, and no {sample}_ashlar_qc/.None: QC only reads the store.
use_qc_imagesFalse: no qc/{sample}_{m}_qc_images/; the report keeps metrics and charts, without crops and clusters.None.
publish_dir_modeHow 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.