prune_by_tag: Prune neuron by splitting it at CATMAID tags

View source: R/prune.R

prune_by_tagR Documentation

Prune neuron by splitting it at CATMAID tags

Description

Prune neuron by splitting it at CATMAID tags

Usage

prune_by_tag(x, ...)

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

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

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


alexanderbates/catnat documentation built on Sept. 5, 2023, 4:51 a.m.