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.

Samplesheet

The samplesheet tells the pipeline where your images are. It has one of two shapes, depending on whether the pipeline should stitch the images (use_preprocessing, on by default) or they are stitched already.

Cycle sheet

For raw images: one row per acquisition cycle. Rows with the same sample are one slide; the pipeline stitches its cycles together into one image.

samplecycle_numberimage_tilesmarker_sheet
slide011/data/myproject/raw/slide01/cycle01.ome.tiff/data/myproject/sheets/markers_slide01.csv
slide012/data/myproject/raw/slide01/cycle02.ome.tiff/data/myproject/sheets/markers_slide01.csv
slide021/data/myproject/raw/slide02/cycle01.ome.tiff/data/myproject/sheets/markers_slide02.csv
As CSV, to copy
sample,cycle_number,image_tiles,marker_sheet
slide01,1,/data/myproject/raw/slide01/cycle01.ome.tiff,/data/myproject/sheets/markers_slide01.csv
slide01,2,/data/myproject/raw/slide01/cycle02.ome.tiff,/data/myproject/sheets/markers_slide01.csv
slide02,1,/data/myproject/raw/slide02/cycle01.ome.tiff,/data/myproject/sheets/markers_slide02.csv

Stitched-image sheet

For images stitched elsewhere, with use_preprocessing: false: one row per image, and no marker sheet.

sampledata_path
slideA/data/myproject/stitched/slideA.ome.tif
slideB/data/myproject/stitched/slideB.ome.tif
As CSV, to copy
sample,data_path
slideA,/data/myproject/stitched/slideA.ome.tif
slideB,/data/myproject/stitched/slideB.ome.tif

Path rules

Reuse illumination profiles

The first step, BaSiCPy, computes an illumination profile per cycle. To reuse profiles from an earlier run instead of computing them again, give them in two extra columns. Within one run folder, resuming already reuses them; this is for a new run.

  1. Find the earlier run’s profiles: preprocessing/illumination/{sample}_cycle{n}-dfp.ome.tif and -ffp.ome.tif, one pair per cycle.

  2. Add dfp and ffp columns to the samplesheet, on every cycle row of the sample:

    samplecycle_numberimage_tilesdfpffpmarker_sheet
    slide011/data/raw/slide01/cycle01.ome.tiff/data/run1/preprocessing/illumination/slide01_cycle1-dfp.ome.tif/data/run1/preprocessing/illumination/slide01_cycle1-ffp.ome.tif/data/sheets/markers_slide01.csv
    slide012/data/raw/slide01/cycle02.ome.tiff/data/run1/preprocessing/illumination/slide01_cycle2-dfp.ome.tif/data/run1/preprocessing/illumination/slide01_cycle2-ffp.ome.tif/data/sheets/markers_slide01.csv
  3. Run. BaSiCPy is skipped for those cycles.

Two rules:

Columns

Generated from the schemas the run validates against.

Cycle sheet columns

One row per acquisition cycle. Rows sharing a sample name are grouped and ordered by cycle_number before stitching. Derived from nf-core/mcmicro’s schema_input_cycle.json.

ColumnRequiredTypeDescription
sampleyesstringSample name. Becomes meta.id and is used to group cycles and to name outputs.
cycle_numberyesinteger1-based acquisition cycle. Determines the order in which cycles are passed to Ashlar, and must match the cycle_number column of the marker sheet. Must run 1..N per sample without repeats or gaps: a repeat makes two rows indistinguishable, since a cycle is identified by sample and cycle_number together. JSON Schema validates rows independently and cannot express that, so it is checked by validateCycleNumbers at startup.
image_tilesyesstringPath to the raw image tiles for this cycle: either a single multi-tile file or a directory of tiles.
dfpnostringOptional pre-computed dark-field profile for this cycle. Supply only when skipping BaSiCPy; if given for one cycle it must be given for all.
ffpnostringOptional pre-computed flat-field profile for this cycle. Supply only when skipping BaSiCPy; if given for one cycle it must be given for all.
marker_sheetyesstringPath to the marker sheet for this sample, one row per channel. Every cycle row of a sample must name the same file: the sheet describes the whole stitched image, not one cycle of it. Two samples may name different sheets, which is the point of the column.

Stitched-image sheet columns

Schema for the file provided with params.input

ColumnRequiredTypeDescription
samplenostring
idnostring
data_pathyesstring