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_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 |
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,Cy5The required columns¶
channel_numbercounts 1, 2, 3, … across all cycles. It does not restart at each cycle.cycle_numberis the cycle the channel was acquired in, as in the samplesheet.marker_nameis the name you want in your results: it becomes the channel name in the image and the column name in the cell table. Each name once only.channel_rolesays what the pipeline should do with the channel:
| Role | Meaning |
|---|---|
dna | A nuclear stain, such as DAPI or Hoechst. Every cycle needs at least one. |
marker | A biological readout, such as CD3. |
autofluorescence | A channel acquired only to be subtracted from others; see below. |
blank | A 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¶
channel_compartment: where in the cell the signal belongs:nuclear,cytoplasm,membrane, or a combination joined with+, such asnuclear+cytoplasm. QC uses it to check that a marker landed where it should, and channel projection uses it to pick Cellpose’s cell channel. Blank costs a check, not a run.segmentation: only withuse_projection. Which of Cellpose’s two channels a marker feeds:nuclear,cellornone. Without the column, the firstdnachannel isnuclear, and everymarkerwhose compartment includesmembraneorcytoplasmiscell. Once any row has a value, the column is the whole selection: blank rows are left out, thednachannel included. See Many markers with Cellpose.uniprot_id: only withuse_virtues. The human UniProt ID of the protein a marker shows, such asP08246; channels without one are not embedded. See VirTues.filter,excitation_wavelength,emission_wavelength: for your records.
Background subtraction columns¶
Only with use_backsub, which subtracts autofluorescence
channels from the markers; see backsub.
exposure: every channel needs one. Backsub scales the background by the ratio of exposure times.background: on a marker, themarker_nameof the channel to subtract from it. That channel must have the roleautofluorescence.remove:truedrops the channel after subtraction, typically the autofluorescence channels. Keep at least onednachannel, and do not name a removed channel incellpose_channelsorinstanseg_channels. Withoutuse_backsub,removeis ignored with a warning.
| 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 |
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.
| Column | Required | Type | Description |
|---|---|---|---|
channel_number | yes | integer | 1-based channel index, counted continuously across all cycles rather than restarting each cycle. |
cycle_number | yes | integer | 1-based acquisition cycle this channel belongs to. Must match a cycle_number in the input samplesheet. |
marker_name | yes | string | Channel 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_role | yes | string: dna, marker, autofluorescence, blank | What 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_compartment | no | string | Optional. 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. |
segmentation | no | string: nuclear, cell, none | Optional. 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. |
filter | no | string | Optional filter cube or channel descriptor. |
excitation_wavelength | no | integer | Optional excitation wavelength in nm. |
emission_wavelength | no | integer | Optional emission wavelength in nm. |
exposure | no | number | Exposure time. Required when background subtraction is enabled, since backsub scales by exposure. |
background | no | string | Name of the marker to use as the background channel for this channel, used by background subtraction. |
remove | no | boolean | Set true to drop this channel from downstream output. |
uniprot_id | no | string | Optional. 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. |