read.ngraph.swc(f, weights = FALSE, directed = TRUE, ...)
path to file
Logical value indicating whether edge weights defined by the
3D distance between points should be added to graph (default
or a numeric vector of weights.
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
accept SWC files with cycles.
These functions would normally be called from
read.neuron(s) rather than used directly. The
only benefit of using
read.neuron.swc is to avoid a very small
overhead in identifying the SWC file type. Note that only
read.neurons can read many files in one command to construct
According to http://www.neuronland.org/NLMorphologyConverter/MorphologyFormats/SWC/Spec.html SWC file format has a radius not a diameter specification