Prune neuron by splitting it at CATMAID tags

prune_by_tag(x, ...)

# S3 method for neuron
prune_by_tag(x, tag = "SCHLEGEL_LH",
  remove.upstream = TRUE, ...)

# S3 method for catmaidneuron
prune_by_tag(x, tag = "SCHLEGEL_LH",
  remove.upstream = TRUE, ...)

# S3 method for neuronlist
prune_by_tag(x, tag = "SCHLEGEL_LH",
  remove.upstream = TRUE, ...)

Arguments

x

a neuron or neuronlist object

...

Additional arguments, passed to nlapply or eventually to prune_vertices

tag

a tag that has been assigned in CATMAID

remove.upstream

Logical when TRUE points downstream of the tag(s) are removed, if true, points upstream are removed

Details

Split a neuron based on tags assigned in CATMAID. Remove points either downstream (from the root, must be soma to work properly) of the tagged points(s) or upstream.