Find neurons with soma inside 3D selection box (usually drawn in rgl window)
find.soma(
sel3dfun = select3d(),
indices = names(db),
db = getOption("nat.default.neuronlist"),
invert = FALSE,
rval = c("names", "neuronlist", "data.frame")
)
Character vector of names of selected neurons
A select3d
style function to indicate if points
are within region
Names of neurons to search (defaults to all neurons in list)
neuronlist
to search. Can also be a character vector naming
the neuronlist. Defaults to options('nat.default.neuronlist')
.
Whether to return neurons outside the selection box (default
FALSE
)
What to return (character vector, default='names')
Can work on neuronlist
s containing neuron
objects
or neuronlist
s whose attached data.frame contains soma
positions specified in columns called X,Y,Z .
select3d, subset.neuronlist, find.neuron