Manually add a Label annotation, indicative of cable type, to a neuron's arbour and synapses.

add_Label(
  x,
  PointNo = NULL,
  Label = 2,
  erase = FALSE,
  lock = NULL,
  internal.assignments = FALSE,
  ...
)

Arguments

x

a nat::neuronlist or nat::neuron object. It is assumed that this neuron has been read in by neuprintr::neuprint_read_neurons or possibly catmaid::read.neurons.catmaid.

PointNo

the points in the neuron for which the Label will be added.If NULL all points are used.

Label

the Label to be added. See flow_centrality.

erase

if TRUE, all instance of Label not in PointNo are set to 0.

lock

a numeric vector of cable types that will not be updated by add_Label.

internal.assignments

logical. If TRUE, hidden function hemibrainr::internal.assignments is run, to assign a neurons dendrite/axon start points, primary branch point, linker start points, etc. in line with the changes produced by this function.

...

Additional arguments passed to methods or eventually to nat::nlapply

Value

a neuron or neuronlist

See also