How to show your own histology in the Slice figure
This guide shows you how to display your registered histology images behind the trajectory, instead of only the Allen template and annotation.
Prerequisites
Histology registered to the 25 µm Allen atlas, saved as NRRD or TIFF volumes with these dimensions:
Format
Dimensions
NRRD
[voxels in AP, voxels in DV, voxels in ML]
TIFF (
.tifor.tiff)[voxels in ML, voxels in DV, voxels in AP]
Steps
Put the volumes in one folder. Name them so the GUI can tell the channels apart:
Format
Red channel
Green channel
NRRD
RDin the file nameGRin the file nameTIFF
RDorC1in the file nameGRorC0in the file nameFor TIFFs, if you don’t want to name the channels by colour, call them
C0andC1instead. The name only sets the entry in theSlice Plotsmenu:C0appears asHistology greenandC1asHistology red.Add the folder as the
histologydataset in the session YAML. Histology is usually shared by all the probes of an animal, so it is convenient to put it indefaults:defaults: histology: path: /path/to/histology
When opening a data folder instead of a YAML, put the volumes in that folder.
Load the session and cycle through the slice images with Alt+4. Each volume adds a
Histology redorHistology greenentry.
If both NRRD and TIFF files are in the folder, only the NRRD files are used.