Set the x$tags field within a neuron object.

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

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

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

hemibrain_seetags(x, ...)

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

# S3 method for 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

Examples

# \donttest{ # 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)
#> Reading from Google Team Drive: hemibrainr
#> Warning: 1 neurons cropped, split likely to be inaccurate for: 2068966051
#> Warning: 1 neurons have no soma tagged, split could be inaccurate for: 2068966051
#> Warning: No meta data could be retieved, returning NULL
#> Error in neurons.flow[, ] <- hemibrain_get_meta(names(neurons.flow)): incorrect number of subscripts on matrix
# Tag neurons = hemibrain_settags(neurons, antennal.lobe = TRUE)
#> Error in hemibrain_settags(neurons, antennal.lobe = TRUE): object 'neurons' not found
# See tags hemibrain_seetags(x)
#> Error in hemibrain_seetags(x): object 'x' not found
# }