neuprint_ROI_hierarchy | R Documentation |
Get the region of interest (ROI) hierarchy in a dataset
neuprint_ROI_hierarchy(
root = NULL,
rval = c("edgelist", "graph"),
dataset = NULL,
conn = NULL,
...
)
root |
Character vector specifying a root node that defines a subgraph
of the ROI hierarchy. The default ( |
rval |
Whether to return an edge list |
dataset |
optional, a dataset you want to query. If |
conn |
optional, a neuprintr connection object, which also specifies the
neuPrint server. If NULL, the defaults set in your
|
... |
additional arguments passed to |
neuprint_ROIs
, neuprint_get_roiInfo
g = neuprint_ROI_hierarchy(rval='graph')
igraph::plot.igraph(g, layout=igraph::layout_as_tree)
# just the Mushroom Body Nodes on right hand side
mbg=neuprint_ROI_hierarchy(root='MB(R)', rval='graph')
igraph::plot.igraph(mbg)
# find just the terminal nodes of the graph
mbterms=nat::endpoints(mbg)
mbterms
## Not run:
# read in all the MB meshes
mbmeshes=sapply(mbterms, neuprint_ROI_mesh, simplify = FALSE)
# 3D plot in different colours
mapply(shade3d, mbmeshes, col=rainbow(length(mbmeshes)))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.