If a bodyid has a name associated with it, fetch that name, otherwise, return NA

neuprint_get_neuron_names(
  bodyids,
  dataset = NULL,
  all_segments = TRUE,
  conn = NULL,
  ...
)

Arguments

bodyids

the body IDs for neurons/segments (bodies) you wish to query. This can be in any form understood by neuprint_ids.

dataset

optional, a dataset you want to query. If NULL, the default specified by your R environ file is used or, failing that the current connection, is used. See neuprint_login for details.

all_segments

if TRUE, all bodies are considered, if FALSE, only 'Neurons', i.e. bodies with a status roughly traced status.

conn

optional, a neuprintr connection object, which also specifies the neuPrint server. If NULL, the defaults set in your .Rprofile or .Renviron are used. See neuprint_login for details.

...

methods passed to neuprint_login

Value

a vector of names, named with the input bodyids

Examples

# \donttest{
neuprint_get_neuron_names(c(818983130, 1796818119))
#>   818983130  1796818119 
#> "DA2_lPN_R" "DA2_lPN_R" 
# }