Return tree node table for a given neuron
catmaid_get_treenode_table(skid, pid = 1, conn = NULL, raw = FALSE, ...)
skid | Numeric skeleton id |
---|---|
pid | project id (default 1) |
conn | the |
raw | Whether to return completely unprocessed data (when |
... | Additional arguments passed to the |
A data.frame with columns
id
parent_id
confidence
x
y
z
r
user_id
last_modified
reviewer_id (character vector with comma separated reviewer ids)
In addition two data.frames will be included as attributes: reviews
,
tags
.
catmaid_get_compact_skeleton
,
read.neuron.catmaid
and catmaid_get_user_list
to translate user ids into names.
# NOT RUN { # get tree node table for neuron 10418394 tnt=catmaid_get_treenode_table(10418394) # show all leaf nodes subset(tnt, type=="L") # table of node types table(tnt$type) # look at tags data str(attr(tnt, 'tags')) # merge with main node table to get xyz position tags=merge(attr(tnt, 'tags'), tnt, by='id') # label up a 3d neuron plot n=read.neuron.catmaid(10418394) plot3d(n, WithNodes=F) text3d(xyzmatrix(tags), texts = tags$tag, cex=.7) # }