tasks.annotation¶
Annotation tasks.
Module Contents¶
Classes¶
Collect curated dataset to work with on this phase. |
|
Assign mtypes to morphologies. |
|
Compute hard limits. |
|
Plot the hard limits. |
|
Detect apical point. |
|
Plot apical point. |
|
Detect the cut leaves. |
|
Plot the cut leaves. |
Attributes¶
- tasks.annotation.logger¶
- class tasks.annotation.CollectCurated(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,data_validation_framework.task.ElementValidationTaskCollect curated dataset to work with on this phase.
- class tasks.annotation.MType(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,data_validation_framework.task.ElementValidationTaskAssign mtypes to morphologies.
Currently, we only check if the mtype corresponds to the provided list of regex. If the list of regex is empty, we let all the morphologies pass (equivalent to skip).
If they do not, we invalidate the morphologies.
- mtype_regex¶
- class tasks.annotation.HardLimit(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,data_validation_framework.task.ElementValidationTaskCompute hard limits.
Hard limits are markers used to place morphologies in a circuit. They can be automatically computed as min and max extent of axon and dendrites.
Todo
There can be more such markers, manually placed with
nse-tools/placement-annotatorinternal tool.- dendrite_hard_limit¶
Name of the dendrite hard limit annotation
- Type:
- Default value:
L1_hard_limit
- class tasks.annotation.PlotHardLimit(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,SkippableMixin(),data_validation_framework.task.ElementValidationTaskPlot the hard limits.
Plot hard limits as lines on morphologies with plotly.
- class tasks.annotation.ApicalPoint(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,SkippableMixin(),data_validation_framework.task.ElementValidationTaskDetect apical point.
For morphologies with apical dendrites we estimate the location of the apical point with the automatic tool
morph_tool.apical_point.apical_point_position().
- class tasks.annotation.PlotApicalPoint(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,SkippableMixin(),data_validation_framework.task.ElementValidationTaskPlot apical point.
Plot apical point as a single scatter point on a morphology with plotly.
- class tasks.annotation.CutLeaves(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,data_validation_framework.task.ElementValidationTaskDetect the cut leaves.
Cut leaves are considered to represent boundaries of slices of in-vitro reconstructions. See
neuror.cut_plane.cut_leaves()for more details on the algorithm and its parameters.
- class tasks.annotation.PlotCutLeaves(*args, **kwargs)¶
Bases:
morphology_workflows.utils.StrIndexMixin,SkippableMixin(),data_validation_framework.task.ElementValidationTaskPlot the cut leaves.
We plot the cut-leaves as scatter markers, as the terminal points on dendrites intersecting the cut plane.