read.neuron.swc | R Documentation |
read.neuron.swc
reads an SWC file on disk into a fully
parsed neuron
representation.
read.ngraph.swc
reads an SWC file on disk into the more
generic (and forgiving) ngraph
representation which provides
a bridge to the igraph
library.
read.neuron.swc(f, ...)
read.ngraph.swc(f, weights = FALSE, directed = TRUE, ...)
f |
path to file |
... |
Additional arguments. |
weights |
Logical value indicating whether edge weights defined by the
3D distance between points should be added to graph (default |
directed |
Whether the resultant graph should be directed (default TRUE) |
These functions will accept SWC neurons with multiple trees and
arbitrary point index order. However only read.ngraph.swc
will
accept SWC files with cycles.
These functions would normally be called from read.neuron(s)
rather
than used directly.
According to http://www.neuronland.org/NLMorphologyConverter/MorphologyFormats/SWC/Spec.html SWC file format has a radius not a diameter specification
is.swc
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.