--- license: cc-by-4.0 task_categories: - image-segmentation - image-to-text tags: - neuroscience - neuron-reconstruction - neuron-tracing - brain-wide-reconstruction - light-microscopy - morphology - swc size_categories: - 100G.tif,swcs/.swc,mask-r1/_mask.tif ``` Example loading code: ```python import json from pathlib import Path root = Path("path/to/CORAL/cubes1937") with open(root / "annos.json", "r") as f: annos = json.load(f) with open(root / "C2-cubes1937_tvt" / "train.txt", "r") as f: train_samples = [line.strip().split(",") for line in f if line.strip()] cube_rel, swc_rel, mask_rel = train_samples[0] cube_path = root / cube_rel swc_path = root / swc_rel mask_path = root / mask_rel ``` ## Brain-wide Reconstruction: `slices` and `swcs` The brain-wide reconstruction data includes whole-mouse-brain 2D slice images and neuron-level SWC annotations. Main contents: - `slices/slices/`: 2D slice images of the mouse whole brain in TIFF format. - `swcs/single-neurons-step2/`: SWC annotations for each individual neuron. - `swcs/all-neurons-step2.swc`: a merged SWC annotation containing all **32** neurons. - `swcs/brain_hemisphere.json`: an arbitrary 3D plane used to divide the left and right hemispheres, together with hemisphere annotations for the 32 neurons. `brain_hemisphere.json` contains: - `plane`: plane type, azimuth/elevation, normal vector, offset, and a point on the plane. - `neurons`: per-neuron soma location, signed distance to the plane, left/right neurite length, total length, and hemisphere label. Hemisphere statistics: | Neuron hemisphere category | Number of neurons | |---|---:| | Entirely in the left hemisphere | 12 | | Entirely in the right hemisphere | 14 | | Crossing both hemispheres | 6 | | Total | 32 | Example loading code: ```python import json from pathlib import Path root = Path("path/to/CORAL") slice_dir = root / "slices" / "slices" single_neuron_dir = root / "swcs" / "single-neurons-step2" all_neurons_swc = root / "swcs" / "all-neurons-step2.swc" slice_paths = sorted(slice_dir.glob("*.tif")) single_neuron_swcs = sorted(single_neuron_dir.glob("*.swc")) with open(root / "swcs" / "brain_hemisphere.json", "r") as f: hemisphere_info = json.load(f) ```