catmaid_rename_neuron: Rename (presently) a single neuron or other entity (e.g....

View source: R/catmaid_metadata.R

catmaid_rename_neuronR Documentation

Rename (presently) a single neuron or other entity (e.g. annotation)

Description

Rename (presently) a single neuron or other entity (e.g. annotation)

Usage

catmaid_rename_neuron(
  skids = NULL,
  entityids = NULL,
  names,
  pid = 1,
  conn = NULL,
  ...
)

Arguments

skids

One or more numeric skeleton ids or a character vector defining a query (see catmaid_skids or examples for the syntax).

entityids

Generic entity ids

names

New names

pid

Project id (default 1)

conn

A catmaid_connection objection returned by catmaid_login. If NULL (the default) a new connection object will be generated using the values of the catmaid.* package options as described in the help for catmaid_login.

...

Additional arguments passed to the catmaid_fetch function

Details

Each neuron consists of both a generic entity and an associated skeleton (skid). If you supply the skid the function will internally look up the corresponding neuron entity id. Note that you actually wished to change the name of the skeleton you could pass the skid into the entityids argument.

Value

logical value indicating success or failure with attributes indicating the previous name.

Examples

## Not run: 
# Warning this will change data!
n=get_neuron_name(27296)
catmaid_rename_neuron(skids=27296, names=n)

## End(Not run)

jefferis/rcatmaid documentation built on Aug. 16, 2022, 8:52 p.m.