Open the teaching deck, worksheet, and editable slide source.
Interactive Lab
Practice in short loops: checkpoint quiz, microtask decision, and competency progress tracking.
NeuroAI Analysis Microtask
Before reporting a motif result, include:
Progress Tracker
State is saved locally in your browser for this module.
0% complete
Capability target
Produce a skeleton-based morphology summary with at least three descriptors and one explicit limitation.
Concept set
1) What is skeletonization and why do we need it?
A segmented neuron occupies millions of voxels in the EM volume. To analyze its morphology efficiently, we reduce it to a skeleton: a tree graph where nodes represent points along the neurite centerline and edges represent the path between them. Skeletons compress a neuron’s 3D structure from gigabytes to kilobytes while preserving topology (branching pattern, path lengths, connectivity) — at the cost of surface geometry and spine shape, which are discarded.
Skeletonization algorithms (e.g., TEASAR — Sato et al. 2000) work by finding the medial axis of the volumetric segment. The result is a set of nodes with (x, y, z, radius) attributes connected in a parent-child tree rooted at the soma. The standard file format is SWC (Stockley-Wheal-Cole), where each line records: node ID, compartment type, x, y, z, radius, parent ID.
2) Core morphological descriptors
From a skeleton, you can compute a rich set of descriptors that characterize neuron morphology:
Descriptor
Definition
Biological meaning
Total cable length
Sum of all edge lengths (μm)
Extent of the neuron’s arbor; correlates with total input capacity
Number of branch points
Nodes with >1 child
Arbor complexity; more branches = more distributed connectivity
Branch order
Distance (in branches) from soma
Proximal vs distal structure
Strahler number
Hierarchical ordering of branches (terminal = 1, increases at confluences of equal order)
Tree complexity metric from hydrology, useful for comparing neuron types
Sholl analysis
Number of intersections with concentric spheres centered on soma
Spatial distribution of arbor; peaks indicate regions of maximum branching
Tortuosity
Path length / Euclidean distance between endpoints
How “winding” a process is; axons tend to be more tortuous than dendrites
Spine density
Spines per μm of dendritic length
Input density; excitatory neurons have 0.5-3 spines/μm, inhibitory neurons ~0
Arbor volume
Convex hull of all skeleton nodes
Spatial territory covered by the neuron
Bifurcation angles
Angle between daughter branches at each branch point
Distinguishes cell types (pyramidal cells have characteristic apical bifurcation)
3) Morphology for cell-type classification
Neuronal cell types have characteristic morphological signatures. A layer 5 thick-tufted pyramidal cell has a distinctive apical dendrite reaching L1 with a prominent terminal tuft, thick axon, and large soma. A parvalbumin+ basket cell has smooth dendrites and a dense local axonal arbor. By computing morphological descriptors and comparing to reference databases, you can classify neurons from their shape alone.
Key tools: NeuroM (Blue Brain Project) for morphology analysis in Python. NBLAST (Costa et al. 2016) for morphological similarity search — compare a neuron’s shape to a library of typed neurons and find the best match.
Volume boundary effects truncate neurons that extend beyond the imaged region, biasing measurements toward smaller/simpler morphologies.
Skeletonization artifacts can create false branches (from noisy segmentation boundaries) or miss thin processes.
Always report: reconstruction completeness (estimated fraction of arbor within volume), known errors, and how these might affect the measured descriptors.
Misconception guardrails
Each of these is a belief a learner plausibly holds on arriving. Name it, then check your own work against it.
Misconception guardrail: a skeleton is a lossless summary of a neuron.
Misconception guardrail: morphological measurements are comparable across cells that were proofread to different levels.
Misconception guardrail: total dendritic length is a property of the neuron itself, independent of how it was reconstructed.
Misconception guardrail: a cell type assigned from morphology alone needs no corroboration from connectivity or molecular identity.
Worked example: the interneuron that was a truncated pyramidal cell
The numbers below are illustrative — they show the shape of the reasoning, not measurements from a specific dataset.
You are classifying neuron 7 from a set of 10 skeletons in L2/3 of mouse visual cortex, pyramidal versus interneuron.
Step 1: compute the descriptors. Cable length 1,850 µm, 41 branch points, spine density 0.11 spines/µm, maximum Strahler order 4, small arbor volume. Reference ranges: L2/3 pyramidal cells run several millimeters of cable at 0.5-3 spines/µm; smooth interneurons sit near 0 spines/µm. The value 0.11 fits neither range but is nearer the interneuron side. Naive call: interneuron.
Step 2: distrust a value that falls between bimodal reference ranges. Spine density is bimodal across these two classes for a biological reason. An intermediate value more often signals a measurement problem than intermediate biology, so the next move is a reconstruction audit, not a classification.
Step 3: audit the reconstruction before believing the number. Three checks. Completeness: the soma sits 30 µm from a volume face, and the thickest dendrite exits the volume 60 µm from the soma — consistent with a truncated apical trunk; estimated arbor containment is roughly 40%. Split errors: the edit log shows two unrepaired split candidates on distal branches. Skeleton artifacts: seven terminal “branches” shorter than 2 µm hug the segmentation boundary — skeletonization noise, not biology. Pruning them drops the branch count from 41 to 34.
Step 4: recompute what can be salvaged. A per-length ratio like spine density is robust to truncation only if computed on compartments actually contained in the volume. Restricted to the three fully contained basal dendrites, spine density is 1.4 spines/µm — squarely pyramidal. Total cable length and arbor volume cannot be reported as properties of the neuron at 40% containment; report “within-volume cable: 1,850 µm (lower bound)” instead.
Step 5: the corrected call and its evidence. Putative pyramidal cell: spine density 1.4/µm on contained compartments, a truncated thick trunk oriented toward the pia, and asymmetric output synapses onto spines in the provided synapse table. The synapse-based label agrees. The original mismatch was manufactured by averaging spines over the whole skeleton, including the spine-poor truncated trunk and seven spurious boundary branches.
What gets reported. Cell 7: putative pyramidal; containment ~40%; descriptors partitioned into robust (spine density on contained dendrites, bifurcation angles) and unreliable (total cable, branch count, Sholl profile, arbor volume). The limitation sentence names the truncation specifically — not a generic “reconstruction may contain errors.”
Core workflow
Build skeleton from volumetric segmentation using TEASAR or equivalent algorithm.
Quality-check the skeleton: prune spurious branches, verify branch points, check for disconnected fragments.
Compare against reference patterns: does this neuron match the expected morphology for its putative cell type?
Report interpretation confidence: which descriptors are robust, which are affected by reconstruction quality?
60-minute tutorial run-of-show
Pre-class preparation (10 min async)
Review the data formats content library entry (skeletons section)
Install/check NeuroM or equivalent morphology analysis package
Minute-by-minute plan
**00:00-10:00
Morphology overview**
“Why do we care about neuron shape?” — Shape constrains function: a neuron’s dendritic arbor determines what inputs it can receive; its axonal arbor determines where it can send output.
Show 3 neuron types (pyramidal, basket, Martinotti) and their characteristic morphologies.
“Today you’ll learn to quantify these shapes from EM data.”
**10:00-24:00
Skeleton extraction demo**
Live demo: take a segmented neuron, run skeletonization, visualize result in Neuroglancer.
Walk through SWC format: “Each line is a node. Parent ID tells you the tree structure.”
Common pitfall: show a skeleton with spurious branches from noisy segmentation. Demonstrate pruning.
**24:00-38:00
Descriptor calculation**
Hands-on: learners compute 5 descriptors for one neuron using NeuroM or provided scripts.
Compare results across the group: did everyone get the same numbers? Discuss sources of variation.
Introduce Sholl analysis with live visualization.
**38:00-50:00
Interpretation and caveats**
“Your neuron has total cable length of 2,100 μm and 47 branch points. Is that a lot?” — Compare to published values for the putative cell type.
Discussion: which descriptors are robust to reconstruction errors? (Cable length is sensitive to splits; branch count is sensitive to both splits and spurious branches; spine density is robust if the segmentation boundary is accurate.)
“What if 30% of the arbor is outside the volume? How does that change your interpretation?”
**50:00-60:00
Competency check**
Each learner submits their morphology descriptor table with:
At least 3 descriptors with values
Putative cell-type classification based on morphology
One explicit limitation of the measurement
Exit ticket: “Name one morphology feature that could be confounded by reconstruction quality.”
Studio activity: comparative morphometry (60-75 minutes)
Scenario: You have skeletons for 10 neurons in L2/3 of mouse visual cortex. Your task is to classify them as pyramidal vs interneuron based on morphology alone, then validate against synapse-based classification (excitatory vs inhibitory output synapses).
Task sequence:
Compute morphological descriptors for all 10 neurons (cable length, branch points, spine density, Strahler number, arbor volume).
Create a summary table and scatter plot (e.g., spine density vs cable length).
Classify each neuron as pyramidal or interneuron based on morphological criteria.
Compare your morphological classification to the synapse-based classification (provided). Do they agree?
For any mismatches, investigate: was the morphological measurement affected by reconstruction quality?
Scatter plot with proposed classification boundary.
Classification comparison table (morphology call vs synapse call).
Brief report on any mismatches and their likely cause.
Assessment rubric
Minimum pass
Valid skeleton and descriptor set for all 10 neurons, with at least 3 descriptors each.
Every classification carries a stated evidence chain, not just a label.
At least one explicit measurement limitation named, tied to a specific reconstruction issue.
Strong performance
Descriptors partitioned into robust versus reconstruction-sensitive for each borderline cell.
Mismatches between morphological and synapse-based calls traced to a root cause (truncation, split, spurious branches) rather than logged as disagreement.
Per-cell completeness estimated and reported next to every absolute measurement.
Ratios computed on contained compartments wherever truncation is present.
Common failure to flag
Descriptor list without biological context — numbers with no statement of what they mean for identity.
Classification from a single descriptor when the others disagree.
Absolute cable length or arbor volume reported for truncated cells without a lower-bound qualifier.
Common errors and how to recover
A descriptor falls between the reference ranges. Do not average your way to a hybrid cell type. Recover by auditing the reconstruction first — containment, split candidates, skeleton artifacts — and recomputing the descriptor on the parts of the cell you can trust.
Branch count is inflated by spurious branches. Boundary-hugging micro-branches from noisy segmentation add tens of false terminals. Recover by pruning with a stated length threshold and reporting counts before and after pruning, so a reader can see how much of the number was artifact.
You compared cells proofread to different levels. A “morphological difference” between a proofread and an unproofread cell mostly measures proofreading effort. Recover by restricting comparisons to cells at the same completeness tier, or by reporting completeness per cell and flagging cross-tier comparisons as unreliable.
Absolute measurements on truncated arbors. Cable length on a 40%-contained neuron is not a property of the neuron. Recover by preferring per-length ratios on contained compartments and reporting absolute values as explicit lower bounds.
Skeletons computed against an unpinned segmentation. Recomputing six months later gives different numbers because proofreading continued. Recover by recording the materialization version and skeletonization parameters with every descriptor table; if the version was not recorded, the old numbers describe an unrecoverable state.
What this module does not cover
Skeleton formats and algorithm internals. SWC details, generation methods, and how the skeletonization method itself changes the answer are data formats and representations.
Costa M et al. (2016) “NBLAST: rapid, sensitive comparison of neuronal structure and construction of neuron family databases.” Neuron 91(2):293-311.
Sato M et al. (2000) “TEASAR: Tree-structure extraction algorithm for accurate and robust skeletons.” Pacific Conference on Computer Graphics and Applications.
Scorcioni R, Polavaram S, Ascoli GA (2008) “L-Measure: a web-accessible tool for the analysis, comparison and search of digital reconstructions of neuronal morphologies.” Nature Protocols 3(5):866-876.
Ascoli GA et al. (2007) “Petilla terminology: nomenclature of features of GABAergic interneurons of the cerebral cortex.” Nature Reviews Neuroscience 8(7):557-568.
Quick practice prompt
Explain one morphology feature that could be confounded by reconstruction quality.
Teaching Materials
Slide Deck
Classroom-ready deck links for teaching and delivery.