Methods

Schemes for applying edits to a neuron

Below, we detail the different schemes used for replaying edits onto a neuron.

Historical

The simplest scheme is to simply apply the edits on the neuron in the same order in which those edits happened in reality. We denote this the historical ordering of edits.

Algorithm:


Input: a state of a neuron/segmentation

  1. From all edits in the history of a given neuron, select the earliest which has not been applied
  2. Apply the edit
  3. Compute the new connected component for this neuron from the nucleus
  4. Compute metrics
  5. Record the number of operations applied (always 1 for this scheme)
  6. Recurse (go back to 1.)

Clean-and-merge

Often, proofreaders will follow what we’ll refer to as a “clean-and-merge” strategy. The idea is that one finds a segment which appears to be part of the current neuron, cleans up that segment by splitting off false-mergers, and then finally connects this (clean) segment back to the neuron.

Clean means that all split edits have been applied to the segment

Below, we describe how we implement our idealized version of this strategy when applying edits on a neuron. There are two subtle variants of this idea which differ in the order in which merges are applied to the neuron; see 2a. and 2b. in the algorithm below. We denote these strategies clean-and-merge (historical) and clean-and-merge (random).

Algorithm:


Input: a clean state of a neuron/segmentation

  1. Find all merge edits which are available
  2. Choose one of these available merges to apply
    1. Choose the merge which is earliest in history (historical strategy)
    2. Choose at among these at random (random strategy)
  3. Find the segment which would be added if this merge is applied
  4. For that segment, apply all available split edits
  5. Apply the merge to connect this new segment to the current connected component
  6. Compute the new connected component for this neuron from the nucleus
  7. Compute metrics
  8. Record the number of operations, equal to count of all operations needed for the clean (4.) and the merge (5.)
  9. Recurse (go back to 1.)
Available means an edit which connects to the current connected component

Note

I actually implement this as a merge-and-clean process since the recursion is a bit easier to implement; but I reorder the metrics/counts of edits appropriately to match the above process.

Metrics to evaluate

Here, we describe the metrics that we evaluate for each neuron-state .

A neuron-state is just a version of a particular neuron with a particular set of edits applied to it, according to one of the schemes described in the schemes section

Proportion of inputs/outputs onto classes

Assume we have \(K\)-classes of neuron (e.g. morphological types). This metric associates each neuron-state with a \(K\)-length vector, \(x\), where \(x_k\) is the proportion of that neuron-state’s output synapses which target a neuron in class \(k\).

This metric could also be flipped in the definition above to consider the inputs to a cell.

Note

For the categorization of target neurons, I am using aibs_metamodel_mtypes_v661_v2.

Connectivity probability by distance

Imagine space is discretized into bins of an arbitrary size/shape, for instace, concentric cylinders centered on the soma of a neuron. This metric captures the probability that cell \(i\) targets a downstream neuron whose soma lives within a given bin, \(l\).

Tables used

  • allen_column_mtypes_v2: used to indicate the morphological types for the neurons of interest that I am examining in this work.
  • aibs_metamodel_mtypes_v661_v2: used to indicate the morphological types for the rest of the neurons in the dataset.
  • nucleus_detection_v0: used to indicate the location of the nucleus for all neurons in the dataset. This also anchors each neuron to a target ID indicating the identity of the neuron by its soma, since the segmentation is dynamic.