hemibrain_tags: Set and see tags on a neuron object inc. within a neuronlist

hemibrain_settagsR Documentation

Set and see tags on a neuron object inc. within a neuronlist

Description

Set the x$tags field within a neuron object.

Usage

hemibrain_settags(x, i = 1, ...)

## S3 method for class 'neuron'
hemibrain_settags(x, i = 1, ...)

## S3 method for class 'neuronlist'
hemibrain_settags(x, ...)

hemibrain_seetags(x, ...)

## S3 method for class 'neuron'
hemibrain_seetags(x, ...)

## S3 method for class 'neuronlist'
hemibrain_seetags(x, ...)

hemibrain_carryover_tags(x, y)

metadata_add_tags(x)

Arguments

x

a nat::neuronlist or nat::neuron object.

i

the index of the arguments provides through ..., to be used as the tag, if these arguments are a vector of greater than length 1. Principally for use within method hemibrainr:::list.

...

named arguments with values, to be added to x$tags. E.e. using soma = TRUE, will add x$tags$soma, where x$tags$soma is TRUE. Tags are expected to be of length 1. If x is a neuronlist then tags may be supplied of length(x).

y

a neuron object, which is to receive tags from x, located at x$tags.

See Also

hemibrain_read_neurons

Examples


# Choose neurons
## In this case some antennal lobe local neurons
al.local.neurons = c("1702323386", "2068966051")

# Get neurons
neurons = hemibrain_read_neurons(al.local.neurons)

# Tag
neurons = hemibrain_settags(neurons, antennal.lobe = TRUE)

# See tags
hemibrain_seetags(x)


natverse/hemibrainr documentation built on Nov. 27, 2024, 9:01 p.m.