rootpoints {nat}R Documentation

Return the root or branch points of a neuron or graph

Description

A neuron may have multiple subtrees and therefore multiple roots

Usage

rootpoints(x, ...)

## Default S3 method:
rootpoints(x, ...)

## S3 method for class 'neuron'
rootpoints(x, subtrees = 1, ...)

## S3 method for class 'igraph'
rootpoints(x, ...)

branchpoints(x, ...)

## Default S3 method:
branchpoints(x, ...)

## S3 method for class 'neuron'
branchpoints(x, subtrees = 1, ...)

## S3 method for class 'igraph'
branchpoints(x, ...)

endpoints(x, ...)

## S3 method for class 'neuron'
endpoints(x, subtrees = 1, ...)

## S3 method for class 'igraph'
endpoints(x, ...)

## Default S3 method:
endpoints(x, ...)

Arguments

x

Neuron or other object which might have roots

...

Further arguments passed to methods

subtrees

Integer index of the fully connected subtree in x$SubTrees. Only applicable when a neuron consists of multiple unconnected subtrees.

Details

branchpoints.neuron returns a list if more than one subtree is specified

Value

Integer point number of root/branch point

See Also

Other neuron: neuron(), ngraph(), plot.neuron(), potential_synapses(), prune(), resample(), spine(), subset.neuron()


[Package nat version 1.8.24 Index]