neuron
makes a neuron object from appropriate
variables.is.neuron
will check if an object looks like a
neuron.
as.neuron
will convert a suitable object to a neuron
as.neuron.data.frame
expects a block of SWC format
data
as.neuron.ngraph
converts a graph (typically an
ngraph
object) to a neuron
as.neuron.default
will add class "neuron" to a
neuron-like object.
neuron(d, NumPoints = nrow(d), StartPoint, BranchPoints = integer(),
EndPoints, SegList, SubTrees = NULL, InputFileName = NULL,
NeuronName = NULL, ..., MD5 = TRUE)is.neuron(x, Strict = FALSE)
as.neuron(x, ...)
## S3 method for class 'data.frame':
as.neuron(x, ...)
## S3 method for class 'ngraph':
as.neuron(x, vertexData = NULL, origin = NULL,
Verbose = FALSE, ...)
## S3 method for class 'default':
as.neuron(x, ...)
StartPoint,BranchPoints,EndPoints are indices matching the
rows of the vertices in d
not arbitrary
point numbers typically encoded in d$PointNo
.
Columns will be ordered c('PointNo','Label','X','Y','Z','W','Parent')
Uses a depth first search on the tree to reorder using the given origin.
neuronlist
Other neuron: as.ngraph
,
as.ngraph.data.frame
,
as.ngraph.neuron
, ngraph