View source: R/catmaid_annotations.R
catmaid_get_annotations_for_skeletons | R Documentation |
Pretty obviously: catmaid_get_annotations_for_skeletons
gets annotations from one or more neurons.
Pretty obviously: catmaid_set_annotations_for_skeletons
sets annotations for one or more neurons. Although adding annotations is
non-destructive, please use carefully since this will be making
changes on the server!
catmaid_get_annotations_for_skeletons(skids, pid = 1, conn = NULL, ...) catmaid_set_annotations_for_skeletons( skids, annotations, pid = 1, conn = NULL, ... ) catmaid_remove_annotations_for_skeletons( skids, annotations, force = FALSE, pid = 1, conn = NULL, ... )
skids |
One or more numeric skeleton ids or a character vector defining
a query (see |
pid |
Project id (default 1) |
conn |
A |
... |
Additional arguments passed to the |
annotations |
Character vector of one or more named annotations to add to the specified neurons. |
force |
Whether to force the catmaid server to remove multiple
annotations (default |
Note that annotations will be created on the catmaid server if they do not already exist (and will not be re-created if they do already exist.)
For catmaid_get_annotations_for_skeletons
a data.frame
containing the following columns
skid The skeleton id
annotation The annotation string
id The annotation id
uid The user id for the annotation
For catmaid_set_annotations_for_skeletons
a list containing
information about the annotations that have just been added.
For catmaid_remove_annotations_for_skeletons
a list containing
information about the annotations that have just been removed.
catmaid_query_by_annotation
,
catmaid_get_meta_annotations
catmaid_fetch
,
catmaid_skids
## Not run: catmaid_get_annotations_for_skeletons(skids=c(10418394,4453485)) catmaid_get_annotations_for_skeletons("name:ORN (left|right)") catmaid_get_annotations_for_skeletons("annotation:ORN PNs$") ## End(Not run) ## Not run: catmaid_set_annotations_for_skeletons(skids=c(10418394,4453485), 'myselection') catmaid_set_annotations_for_skeletons(skids="annotation:ORN PNs$", 'my pns') ## End(Not run) ## Not run: nn=c(10418394,4453485) catmaid_set_annotations_for_skeletons(skids=nn, 'mytest') catmaid_remove_annotations_for_skeletons(nn, 'mytest') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.