Open the teaching deck, worksheet, and editable slide source.
Interactive Lab
Practice in short loops: checkpoint quiz, microtask decision, and competency progress tracking.
Circuit Logic Checkpoint
Motif Claim Microtask
Your motif is enriched 1.7x over a cell-type-stratified null. Which sentence belongs in the results?
Progress Tracker
State is saved locally in your browser for this module.
0% complete
Capability target
Generate one synapse-to-motif interpretation with explicit evidence chain and one alternative explanation.
Concept set
1) Synaptic organization as circuit logic
Synapses are not randomly placed. Their location on the postsynaptic neuron (soma, proximal dendrite, distal dendrite, spine, axon initial segment) determines their functional impact:
Perisomatic synapses (on soma and proximal dendrites): typically inhibitory (basket cells), powerful because they’re close to the spike initiation zone. These synapses can veto spiking.
Dendritic spine synapses: typically excitatory, the workhorses of cortical computation. Each spine receives one (usually) excitatory synapse. Spine size correlates with synapse strength — larger mushroom spines have larger PSDs and more AMPA receptors.
AIS synapses: exclusively from chandelier cells. The only inhibitory input at the axon initial segment, positioned to control spike generation directly.
Shaft synapses on smooth dendrites: typically inhibitory-to-inhibitory connections (disinhibition circuits) or excitatory inputs onto aspiny interneurons.
This compartment-specific targeting is a fundamental organizing principle of cortical circuits. In EM connectomics, you can directly observe where each synapse lands, making this a uniquely powerful approach for studying circuit logic.
2) Circuit motifs: recurring wiring patterns
Beyond individual synapses, the pattern of connections between neurons forms circuit motifs — small subgraph patterns that may implement computational primitives:
Reciprocal connections (A↔B): ~4× enriched in cortex (Song et al. 2005). May support recurrent amplification and persistent activity.
Feed-forward loops (A→B, A→C, B→C): Signal from A reaches C via two paths with different latencies. May implement temporal filtering.
Feedback inhibition (E→I→E): Excitatory neuron activates an inhibitory neuron that feeds back to inhibit it. Gain control and response normalization.
Disinhibition (E→I1→I2→E): Excitatory neuron activates an inhibitory neuron that inhibits another inhibitory neuron, releasing a target excitatory neuron from inhibition. Gating mechanism.
Convergent input: Multiple neurons synapse onto the same target, potentially from different modalities or processing streams. Integration circuits.
3) From observation to claim: the evidence chain
To claim that a motif is “enriched” or “functionally relevant,” you need:
Detection: Identify the motif instances in the connectome graph.
Quantification: Count occurrences.
Comparison: Compare to a null model (degree-preserving random, spatially constrained, cell-type-stratified).
Biological interpretation: What computation could this motif implement?
Alternative explanation: What non-functional explanation could produce the same enrichment? (e.g., spatial proximity, cell-type structure)
4) Annotation errors create false motifs
Segmentation and synapse detection errors can create or destroy motif instances:
A merge error joining two neurons creates false connections, potentially generating false motifs.
A false synapse (detection error) adds a false edge to the graph.
A missed synapse removes a real edge, breaking real motifs.
Always ask: “Could this motif be an artifact of reconstruction errors?” Sensitivity analysis across proofreading versions helps: if a motif finding changes substantially between data versions, it may not be robust.
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: asymmetric morphology means a synapse is excitatory, rather than putatively excitatory under a stated assumption.
Misconception guardrail: reconstruction errors add symmetric noise to motif counts, when merges bias them toward denser motifs.
Misconception guardrail: a motif observed more often than expected is a functional building block.
Misconception guardrail: synapse count is a direct measure of connection strength rather than a proxy for it.
Worked example: the feedback-inhibition claim, walked to its honest size
The numbers below are illustrative — they show the shape of the reasoning, not results from a specific published dataset.
A student finds that feedback inhibition loops (pyramidal → interneuron → same pyramidal) look common in a 200-neuron L2/3 subgraph with 1,450 directed edges, and drafts the claim “this circuit is organized for gain control.” Here is how an expert walks that claim down to what the data supports.
Step 1 — Count against a null before describing function. Observed: 68 E→I→E feedback loops. Against 1,000 degree-preserving rewirings: null mean 41, sd 6, so z = 4.5 and enrichment 1.7x. Promising — but the degree-preserving null shuffles cell types, and E→I and I→E edges are common regardless of specific feedback wiring. A cell-type-stratified null preserving E/I connection rates expects 61 loops: enrichment 1.11x, z = 1.0. Most of the apparent enrichment was type composition; what survives is modest and needs the next two checks to mean anything.
Step 2 — Use the synapse-level evidence the graph threw away. This is where EM earns its keep. In 49 of the 68 loops the I→E synapses land perisomatically — on soma or proximal dendrite, the basket-cell placement positioned to control spiking. In 12 loops they land on distal dendrites, and in 7 the compartment is uncertain. The perisomatic subset is the one consistent with the gain-control story; the distal subset is a different circuit motif with different functional implications. A graph-only analysis would have averaged these together. The compartment cues and their reliability limits are Technical Unit 05.
Step 3 — Ask what reconstruction error does to this count, in this direction. Merges inflate dense motifs: a merged interneuron inherits two cells’ partner lists and manufactures loops. Check the interneurons carrying the most loops — the top one participates in 11. Its morphology passes inspection, but 19 of the 68 loops depend on at least one 1-synapse edge, the least reliable edge class. Re-run at a ≥2 synapse threshold: 51 loops survive, and the stratified-null comparison moves to 47 expected — the residual enrichment thins further. Re-count on the next proofreading materialization: 64 loops, with the composition roughly stable, so the count is not an artifact of one data version.
Step 4 — Write the claim and its boundary. Supported: “Perisomatic-targeting feedback loops are present and constitute the majority of E→I→E motifs in this subgraph; loop frequency is largely explained by cell-type connection rates, with at most a small residual above the stratified null.” Non-claim: “This does not show the circuit performs gain control — that requires functional data — and does not show loop-specific wiring selection, which the stratified null does not support.” Alternative explanation, stated in the report: spatial proximity was never controlled, and interneuron arbors overlap densely with their neighbors.
What the walk bought. The claim shrank from “organized for gain control” to a compartment-resolved anatomical statement with a quantified null comparison and a stated confound. The smaller claim is publishable and durable; the original was neither.
Core workflow
Identify synapse candidates: find synapses in the region of interest with correct pre/post assignment.
Build local connectivity motif: extract the subgraph connecting the pre and post neurons and their immediate neighbors.
Classify the motif: reciprocal pair, feed-forward loop, feedback inhibition, convergent input, etc.
Evaluate against null: is this motif more common than expected?
State supported claim (what the data shows) + caveat (what it doesn’t prove and what could confound it).
60-minute tutorial run-of-show
Pre-class preparation (10 min async)
Review the synapse classification content library entry (Gray Type I/II)
Quick review: asymmetric (Type I, excitatory) vs symmetric (Type II, inhibitory) synapses.
Show 3 synapses in EM: spine synapse, perisomatic synapse, AIS synapse. “Where the synapse lands tells you about circuit function.”
**10:00-24:00
Motif construction examples**
Walk through 3 motifs in the MICrONS dataset:
Reciprocal pair between two L2/3 pyramidal cells (mutual excitation)
Feed-forward loop: L4 stellate → L2/3 pyramidal → L5 pyramidal, with L4 also connecting directly to L5
Feedback inhibition: pyramidal → basket cell → same pyramidal
For each: show the EM evidence (synapses), draw the circuit diagram, discuss functional implication.
**24:00-38:00
Learner motif analysis**
Learners receive a small subgraph (15 neurons, 50 synapses) and identify all 3-node motifs.
Count each motif type. Which are most common?
Compare to expectations: “If these were randomly connected with the same degree distribution, how many of each motif would you expect?”
**38:00-50:00
Alternative explanation challenge**
For each enriched motif, learners must propose one alternative (non-functional) explanation:
“Reciprocal connections are enriched because nearby neurons are more likely to connect” (spatial proximity)
“Feed-forward loops are enriched because of cell-type structure” (E→I and I→E are common)
Group discussion: how would you test whether the spatial explanation is sufficient?
**50:00-60:00
Competency check**
Each learner writes a motif claim/caveat pair:
“In this circuit, [motif] is enriched [X]× compared to [null model]. This is consistent with [functional interpretation]. However, [alternative explanation] could also account for this enrichment.”
Exit ticket: “One motif claim and one plausible confound.”
Studio activity: motif discovery and interpretation (60-75 minutes)
Scenario: You are analyzing a 200-neuron subgraph from the MICrONS dataset, spanning L2/3 and L4 of mouse visual cortex. Your goal: characterize the local circuit motif profile and identify any enriched patterns that suggest specific wiring rules.
Task sequence:
Enumerate all 2-node and 3-node motifs in the subgraph (use DotMotif or equivalent tool).
Generate 1,000 degree-preserving random rewirings. Count motifs in each.
Compute z-scores for each motif type.
Identify the top 3 most enriched motifs. For each: draw the circuit diagram, propose a functional interpretation, and state one alternative explanation.
Write a 1-page “circuit logic brief” summarizing the motif profile of this circuit.
Expected outputs:
Motif count table (observed vs expected vs z-score for each motif type).
Circuit diagrams for top 3 enriched motifs.
1-page circuit logic brief with interpretations and caveats.
Assessment rubric
Minimum pass
The motif count table reports observed, expected, and z-score for every motif class examined, not only the enriched ones.
At least one motif carries a complete evidence chain: detection method, count, null comparison, and interpretation, in that order.
Each claim in the circuit logic brief is paired with an explicit caveat stating what it does not prove.
The synapse threshold and data version used to build the subgraph are stated in the brief.
Strong performance
Every enriched motif has at least one non-functional alternative explanation (spatial proximity, cell-type composition, reconstruction error) named and, where possible, tested.
A second null model or a stratified analysis is applied to at least one motif, with the change in effect size reported.
Synapse-level evidence — compartment targeting, Gray type — is used to subdivide or qualify at least one motif class rather than treating graph edges as interchangeable.
Sensitivity to reconstruction quality is quantified: the headline count is re-run at a second synapse threshold or across proofreading versions, and the difference is reported.
Common failure to flag
Motif claim without error-awareness — treating every enriched pattern as a functional circuit without considering artifacts or spatial confounds.
Functional language (“this circuit gates,” “this loop amplifies”) presented as a finding rather than as a consistency statement.
Enrichment reported against a single weak null with no statement of what it fails to control.
Common errors and how to recover
You interpreted enrichment against the degree-preserving null as specific wiring. In a mixed E/I population, type composition alone assembles many motifs. Recover by re-testing against a cell-type-stratified null and reporting the effect size under both — the shrinkage is part of the result.
Your motif count leans on 1-synapse edges. These are the edges most vulnerable to false detections and merge errors. Recover by re-running the count at a ≥2 synapse threshold; if the enrichment collapses, it was riding on the least reliable data, and the honest report says so.
A single neuron accounts for a large share of a motif’s instances. That concentration is a merge-error signature before it is a hub story. Recover by inspecting the cell’s morphology and ultrastructure, and by reporting motif counts with and without the suspect cell.
You called a synapse excitatory from asymmetry alone and built a circuit story on it. Gray type licenses “putatively excitatory,” not certainty. Recover by restating the claim with the assumption visible, checking persistence across sections and vesicle morphology per Technical Unit 05, and downgrading any loop whose sign rests on a low-confidence call.
The motif count changed between data versions and you picked the version that supported the story. Recover by reporting the count under both versions with the materialization IDs stated; a real finding is roughly stable, and if it is not, version sensitivity is the finding.
What this module does not cover
The full statistical machinery of motif analysis. The triad census, multiple-comparison correction, permutation inference, and the error-perturbation simulation are Technical Unit 09 and Motif analysis.
Reading the ultrastructure itself. Organelle sizes, the three criteria for calling a synapse, and calibrated confidence tiers are Technical Unit 05 and Synapse classification; this module consumes those calls and inherits their error rates.
Graph construction decisions. Node and edge schemas, thresholds, and what the graph abstraction discards are Module 10.
Where the errors come from and how they are fixed. Merge and split mechanics, proofreading, and quality metrics are Module 06, Module 07, and Technical Unit 08.
Function. No structural motif analysis, however careful, demonstrates computation; the structure-function boundary and what would count as functional evidence are treated in NeuroAI bridge.