View source: R/catmaid_selection.R
read_catmaid_selection | R Documentation |
Read a CATMAID selection file
read_catmaid_selection(f, readNeurons = FALSE, getNames = TRUE, ...)
f |
Path to the |
readNeurons |
Whether or not to read the neurons listed in the selection file |
getNames |
Whether to fetch the names of the neurons (default
|
... |
Connection parameters passed to |
A data.frame
containing the selection information or (if
readNeurons=TRUE
) a neuronlist
containing this
information in the attached metadata. The columns will be
skid The numeric skeleton id
color The colour of the selected neuron in catmaid
opacity The opacity (alpha value) of the neuron name
name Optionally the name of the neuron
write_catmaid_selection
f=system.file('catmaid-skeletons.json', package = 'catmaid') read_catmaid_selection(f, getNames=FALSE) ## Not run: # read in the neurons for the selection x=read_catmaid_selection(f, readNeurons=TRUE) # plot using the CATMAID colour specifications plot3d(x, col=color) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.