refilter_identified_regions: Refilter already identified regions

Description Usage Arguments Value Examples

View source: R/refilter-identified-regions.R

Description

Refilters the results extracted by identify_regions(). Used only in rare cases where there is some noise remaining in the result of identify_regions().

Usage

1
2
3
refilter_identified_regions(input_dat, sample_labels = NULL,
  smoothing_region = NULL, smoothing_region_thresh = NULL, Dist,
  dotsize1 = 7, dotsize2 = 7)

Arguments

input_dat:

data frame of input data with rows=samles and cols=dimensions.

sample_labels:

vector of TRUE/FALSE labels, one for each sample. If sample_labels[i]==TRUE, then sample i is in region of interest (e.g. branching region)

smoothing_region:

number of neighbours in to consider for label filtering

smoothing_region_thresh:

minimum number of thresholds with same label in the neighbourhood required for the sample to keep it's label

Dist:

matrix of sample to sample distances

dotsize1:

size of points of class1 (red), used when plotting in 3D

dotsize2:

size of points of class2 (green), used when plotting in 3D

Value

a list with elements:

Examples

1
# TODO: example coming soon...

theislab/kbranches documentation built on Feb. 27, 2020, 11:01 a.m.