neuprint_get_neuron_names: Get the name of a neuron

View source: R/name.R

neuprint_get_neuron_namesR Documentation

Get the name of a neuron

Description

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

Usage

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


neuprint_get_neuron_names(c(818983130, 1796818119))


natverse/neuprintr documentation built on Sept. 15, 2023, 6:59 a.m.