Module 03 Activity Worksheet

Module: Module 03: Python and Jupyter for Neuroscience
Duration: 4 hours
Generated from the module page. Edit modules/module03.md, not this file.


Capability target

Create a reproducible Jupyter notebook that ingests a connectomics dataset slice, performs one analysis, and exports documented outputs. Demonstrate familiarity with the core Python libraries used in connectomics research: CAVEclient, CloudVolume, NetworkX, pandas, and matplotlib.

You are done when you can demonstrate this, not when you have filled in every box below.


Before you start

Check that you have:

Bring one question you already have about this topic. Write it here so you can check at the end whether it was answered:

My question:

Questions this module answers

Keep these in view. At the end, answer each in one sentence.

  1. How do we structure notebooks for reuse?
    • Your answer:
  2. What metadata should accompany outputs?
    • Your answer:

The task

Scenario: Learners produce a complete, reproducible Jupyter notebook that queries a connectomics dataset, performs a descriptive analysis, and exports documented results. The work runs in four parts: setup and data loading (20 minutes), analysis (20 minutes), visualization and export (15 minutes), and a reproducibility check (5 minutes).

  1. Setup and data loading (Part A, 20 minutes): create a new notebook with a header cell: title, your name, date, dataset name, materialization version.
  2. Create a setup cell with all imports and version pinning.
  3. Initialize CAVEclient (or load a provided sample CSV if CAVE access is unavailable).
  4. Query or load a synapse table. Validate: print column names, data types, row count, and first 5 rows.
  5. Add a markdown cell explaining what the dataset contains and what version you are using.
  6. Analysis (Part B, 20 minutes): choose one descriptive analysis from the following options: a synapse count distribution (histogram of synapse counts per neuron); top connections (bar chart of the 10 most connected cell-type pairs); a degree distribution (in-degree vs. out-degree scatter plot for all neurons in a region); or a spatial distribution (scatter plot of synapse locations colored by cell type).
  7. Write the analysis code with markdown cells explaining each step.
  8. Compute at least one summary statistic (mean, median, max, or standard deviation) and report it in a markdown cell.
  9. Visualization and export (Part C, 15 minutes): create at least one publication-quality figure with labeled axes, title, and legend.
  10. Add a markdown caption below the figure explaining what it shows and what conclusions (if any) can be drawn.
  11. Export your data table as CSV and your figure as PNG.
  12. Create a metadata JSON cell recording dataset version, query parameters, and analysis date.
  13. Reproducibility check (Part D, 5 minutes): restart the kernel and run all cells.
  14. Verify all outputs regenerate correctly.
  15. If any cell fails, fix it and re-run.

What you hand in


Working checklist

Tick as you go. If you skip a step, write why — a skipped step with a stated reason is a decision; a skipped step without one is a gap.


Evidence and reasoning

Fill one row per claim you make in your artifact. A claim without a limitation is not finished.

# Claim Evidence (what specifically) Limitation / what would change my mind
1      
2      
3      

Confidence. For your main claim, mark one and say why:

Why:

One alternative I considered and rejected, and the reason:


Misconception self-check

These are the errors this module is designed to prevent. Confirm you did not make them, or note where you nearly did:


Session timing (facilitator reference)

Time Segment
  Header: title, author, date, dataset version, materialization version.
  Setup: imports and environment configuration.
  Data loading: queries and schema validation.
  Analysis: computation cells with markdown explanations.
  Export: saving outputs with metadata.
  Initialize CAVEclient and set materialization version (3 min).
  Query synapse table filtered by brain region (5 min).
  Group by pre/post cell type and count synapses (5 min).
  Build a NetworkX graph from the grouped data (5 min).
  Plot a bar chart of top 10 connections by synapse count (4 min).

Rubric

Score yourself before anyone else does. Where you fall short, name the specific next action rather than a general intention.

My self-assessment:


Exit prompt

Add one markdown cell documenting input version, processing steps, and output files. Then write a code cell that queries a synapse table and computes the mean number of synapses per neuron for one brain region.

Your answer:


Peer review (swap worksheets)

Reviewing someone else’s reasoning is the fastest way to see the gaps in your own. Assess the evidence quality, not whether you agree with the conclusion.


Module page: /modules/module03/ · Slides: /modules/slides/module03/ · Facilitator guide