braincell.filter module

braincell.filter module#

braincell.filter provides the selection algebra used to say where on a cell a mechanism is installed. Regions select extended sets of cable (paint targets); locsets select ordered, duplicate-preserving point rows (place targets). Locsets concatenate through + and provide stable set operations through |, &, and -. See Regions & Locsets for the conceptual guide.

Regions#

RegionExpr

Base class for lazy region selectors.

AllRegion

EmptyRegion

SubtreeRegion

BranchRangeFilter

BranchInFilter

BranchSlice

RadiusRangeRegion

EuclideanDistanceRegion

TreeDistanceRegion

RegionAnchors

RegionMask

Materialized region selection as (branch, prox, dist) intervals.

RegionSetOp

Composite selector produced by set algebra on region expressions.

Locsets#

LocsetExpr

RootLocation

Terminals

ForkPoints

Select topology junctions incident to at least three branches.

BranchPoints

UniformSamples

StepSamples

RandomSamples

AtLocation

LocsetMask

Resolved ordered locations in read-only columnar storage.

LocsetConcatOp

Deferred duplicate-preserving concatenation of locset expressions.

LocsetSetOp

LocsetUniqueOp

Deferred stable deduplication of a locset expression.

Helpers#

Caching#

SelectionCache

Scratch space threaded through a whole selection expression tree.