correct_root: Interactively re-root neurons (usually to their soma)

View source: R/interactive.R

correct_rootR Documentation

Interactively re-root neurons (usually to their soma)

Description

Cycle through and manually re-root neurons using an rgl window. This will typically be used for manual identification of the soma of a neuron.

Usage

correct_root(someneuronlist, brain = NULL)

Arguments

someneuronlist

a neuron/neuronlist object

brain

for context, plot some other objects (e.g. a brain from the nat.templatebrains package such as FCWB, or any object that may be plotted using plot3d)

Value

a matrix of 3D points

Examples

## Not run: 
## NB these neurons actually have their somata chopped off
correctedsomas = correct_root(Cell07PNs[1:3])
plot3d(correctedsomas, soma=TRUE)

## End(Not run)

jefferis/nat documentation built on Feb. 22, 2024, 12:45 p.m.