normDistance: Distance normalization function

Description Usage Arguments Value

View source: R/normDistance.R

Description

Takes formatted dataframe and retunrs glm.nb fitted coeffs & normalized df

Usage

1
normDistance(df, max_dist = -1, max_distnorm_value = 50, sample_ratio = -1)

Arguments

df

An input dataframe, coverage normalized.

max_dist

If > 0, Rows with larger $dist values will be dropped.

max_distnorm_value

Outliers by division with too small a number are replaced by this value.

sample_ratio

If NOT -1 && between 0.0-1.0, downsample the df rows to be used for fitting by that ratio.

Value

df Distance normalized.


kaistcbfg/covNormRpkg documentation built on June 23, 2021, 12:55 p.m.