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 |
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.
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.)
# 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$") # }# NOT RUN { catmaid_set_annotations_for_skeletons(skids=c(10418394,4453485), 'myselection') catmaid_set_annotations_for_skeletons(skids="annotation:ORN PNs$", 'my pns') # }# NOT RUN { nn=c(10418394,4453485) catmaid_set_annotations_for_skeletons(skids=nn, 'mytest') catmaid_remove_annotations_for_skeletons(nn, 'mytest') # }