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.

Marker sheet

The marker sheet says what each channel of the stitched image is. One row per channel, across all cycles. Only raw-cycle runs use it; a pre-stitched image takes its channel names from the image itself.

Example

Two cycles of four channels, each cycle starting with its nuclear stain:

channel_numbercycle_numbermarker_namechannel_rolechannel_compartmentfilter
11DNA_1dnanuclearDAPI
21CD45markermembraneFITC
31PanCKmarkercytoplasmCy3
41CD3markermembraneCy5
52DNA_2dnanuclearDAPI
62CD8markermembraneFITC
72CD68markercytoplasmCy3
82Ki67markernuclearCy5
As CSV, to copy
channel_number,cycle_number,marker_name,channel_role,channel_compartment,filter
1,1,DNA_1,dna,nuclear,DAPI
2,1,CD45,marker,membrane,FITC
3,1,PanCK,marker,cytoplasm,Cy3
4,1,CD3,marker,membrane,Cy5
5,2,DNA_2,dna,nuclear,DAPI
6,2,CD8,marker,membrane,FITC
7,2,CD68,marker,cytoplasm,Cy3
8,2,Ki67,marker,nuclear,Cy5

The required columns

RoleMeaning
dnaA nuclear stain, such as DAPI or Hoechst. Every cycle needs at least one.
markerA biological readout, such as CD3.
autofluorescenceA channel acquired only to be subtracted from others; see below.
blankA channel expected to be dark. QC checks that it is.

The nuclear stain is read by stitching, segmentation and the QC check for cells lost between cycles. Naming the role, rather than guessing from the name, means a Hoechst stain is found as surely as a DAPI one.

Where the nuclear stain sits

Ashlar lines up every cycle on the same position within the cycle: by default, the first channel of each cycle. That channel must be a dna channel in every cycle, or the run stops at startup. So put the nuclear stain first in each cycle, as in the example.

If your nuclear stain is elsewhere, tell Ashlar its position with -c in ashlar_args (counting from 0; -1 is the last). For a TMA, Coreograph finds cores on the first dna channel. To run anyway on a channel that is not dna, set skip_reference_dna_check.

Optional columns

Background subtraction columns

Only with use_backsub, which subtracts autofluorescence channels from the markers; see backsub.

channel_numbercycle_numbermarker_namechannel_rolechannel_compartmentexposurebackgroundremove
11DNA_1dnanuclear20
21AF_FITCautofluorescence100true
32DNA_2dnanuclear20
42CD45markermembrane100AF_FITC
As CSV, to copy
channel_number,cycle_number,marker_name,channel_role,channel_compartment,exposure,background,remove
1,1,DNA_1,dna,nuclear,20,,
2,1,AF_FITC,autofluorescence,,100,,true
3,2,DNA_2,dna,nuclear,20,,
4,2,CD45,marker,membrane,100,AF_FITC,

A full run with these columns: WSI with background subtraction.

Before a long run

The run checks the sheet when it starts: numbering, unique names, a dna channel per cycle, the nuclear stain’s position, and the backsub and projection columns. It stops with a message naming the sample and the problem. One check comes later: that the sheet lists as many channels as the stitched image has, which is known only after stitching.

Columns

Generated from the schema the run validates against.

Marker sheet columns

One row per channel, across all cycles. Reconciled against the OME-XML read from the raw images, so channel_number and cycle_number must match what the microscope wrote. Derived from nf-core/mcmicro’s schema_marker.json.

ColumnRequiredTypeDescription
channel_numberyesinteger1-based channel index, counted continuously across all cycles rather than restarting each cycle.
cycle_numberyesinteger1-based acquisition cycle this channel belongs to. Must match a cycle_number in the input samplesheet.
marker_nameyesstringChannel name, for example DAPI or CD3. This is what reaches the SpatialData object and the feature table, so it should be the name you want in your results.
channel_roleyesstring: dna, marker, autofluorescence, blankWhat the pipeline should do with this channel. dna is a nuclear stain, used for segmentation and as the reference for the cross-cycle photobleaching check. marker is a biological readout. autofluorescence is a channel acquired to be subtracted rather than interpreted, and is what the background column points at. blank is a channel expected to be dark, which QC checks rather than reports. This replaces guessing the nuclear channel by matching its name.
channel_compartmentnostringOptional. Where the signal is expected to sit within a cell. Combine with + for a marker that stains more than one compartment, for example nuclear+cytoplasm. Read by QC, which can only judge whether a marker landed where it should if the sheet says where that is. Order is not significant.
segmentationnostring: nuclear, cell, noneOptional. With use_projection, which projected channel this marker feeds: nuclear, cell (membrane and cytoplasm), or none. Setting it on any row makes the column the whole selection; blank rows are then left out. Without it, the first dna channel is nuclear and every marker whose channel_compartment includes membrane or cytoplasm is cell.
filternostringOptional filter cube or channel descriptor.
excitation_wavelengthnointegerOptional excitation wavelength in nm.
emission_wavelengthnointegerOptional emission wavelength in nm.
exposurenonumberExposure time. Required when background subtraction is enabled, since backsub scales by exposure.
backgroundnostringName of the marker to use as the background channel for this channel, used by background subtraction.
removenobooleanSet true to drop this channel from downstream output.
uniprot_idnostringOptional. UniProt accession of the protein this channel stains, optionally with an isoform suffix. Read by use_virtues, which embeds a channel only when it has one. Leave empty for DNA stains and channels to skip.