When to use¶
Your images were stitched elsewhere and you only want segmentation, quantification and QC. The run starts at the SpatialData store: no illumination correction, stitching, dearray or background subtraction. The example below is made up; adapt it to your images.
The samplesheet¶
One row per image:
| sample | data_path |
|---|---|
| slideA | /data/myproject/stitched/slideA.ome.tif |
| slideB | /data/myproject/stitched/slideB.ome.tif |
Copy as CSV: samplesheet.csv
sample,data_path
slideA,/data/myproject/stitched/slideA.ome.tif
slideB,/data/myproject/stitched/slideB.ome.tifdata_pathis the stitched OME-TIFF, the only format read.There is no marker sheet. Channel names come from the image itself, so name channels in
cellpose_channelsas the image does. An image without names givesChannel:0:0, and so on.That includes this pipeline’s own stitched images from Tutorial 5: Ashlar writes no channel names, so add them to the image first.
Columns: The samplesheet.
The parameters¶
Save as params.yml:
input: /data/myproject/sheets/samplesheet.csv
outdir: /data/myproject/results
use_preprocessing: false
use_cellpose: true
cellpose_channels: "CD45 DAPI"
patch_width_pixel: 5000use_preprocessing: falsestarts from the stitched image. See Which steps run.cellpose_channelsgives Cellpose a membrane marker and the nuclear stain, nuclear last. Channel projection is not available here: it needs the marker sheet. For InstanSeg, setinstanseg_channelsfor the same reason.patch_width_pixel: 5000assumes 25 000 × 25 000 pixels: 25 patches. See Patch size.
Run¶
nextflow run CosciaLab/histo -r v3.2.0 \
-profile singularity,size_small,slurm \
-params-file params.ymlWhat runs: the SpatialData store, tiled segmentation with Cellpose, quantification and the QC report.
What you get¶
results/
├── slideA.zarr/
│ ├── images/ the image, channels named as in the file
│ ├── shapes/ image_patches, cellpose_cells
│ └── tables/ cellpose_table
├── slideB.zarr/
├── qc/ slideA_cellpose_qc_report.html, slideB_cellpose_qc_report.html, …
└── pipeline_info/No preprocessing/. Every file: Outputs.
What to check¶
“Channels” in the QC report: the names you expect, not
Channel:0:0.“Segmentation overlay” and “Cells per patch”.
The outlines over the image; see Viewers.
Something off? See Common failures.