R/catmaid_skeleton.R
catmaid_get_compact_skeleton.Rd
Return the raw data for a CATMAID neuronal skeleton
catmaid_get_compact_skeleton(
skid,
pid = 1L,
conn = NULL,
connectors = TRUE,
tags = TRUE,
raw = FALSE,
...
)
single skeleton id
project id (default 1)
the catmaid_connection
object
Whether to fetch connector information
Whether to fetch tag information
Whether to return completely unprocessed data (when TRUE
)
or to convert the nodes and connectors lists into processed data.frames
(when FALSE
, the default)
Additional arguments passed to the catmaid_fetch
function.
An R list object with three elements
nodes A data frame containing XYZ location, node identifiers etc for each point in the neuron.
connectors A data frame containing the position and tree node identifiers for the synaptic partners.
tags A list containing one vector for each named tag; the vectors
contain node ids that are also present in the nodes
element.
Note that by default this fetches both skeleton and connector (synapse) information.
read.neuron.catmaid
to read as neuroanatomy toolbox
neuron that can be plotted directly. catmaid_fetch
.
if (FALSE) {
## ensure that you have done something like
# conn=catmaid_login()
# at least once this session to connect to the server
skel=catmaid_get_compact_skeleton(10418394)
# no connector (i.e. synapse) information
skel=catmaid_get_compact_skeleton(10418394, connectors = FALSE)
}