smoothRatio: A function to smooth ratio values using cubic smoothing...

Description Usage Arguments Examples

View source: R/smoothRatio.R

Description

A function to smooth ratio values using cubic smoothing spline smoothRatio function splits values from 'ratio' column by chromosome and based the supplied 'groupMin' and 'split' parameters and then applies smooth.spline() function from R stats package. The supplied dataframe may contain multiple ratios, i.e. ratios produced using multiple replicating samples and/or multiple non-replicating samples. This must be reflected in 'name.rep' and 'name.nonRep' columns. In other words, different ratio dataframes may be merged using rbind() function before calling smoothRatio() function.

Usage

1
smoothRatio(ratioDF, groupMin = 5, splitNum = 5)

Arguments

ratioDF

A ratio dataframe or combined ratios dataframe containing 'ratio' column (dataframe).

groupMin

Minimum number of values required to make a group (integer, defaults to 5).

splitNum

Minimum number of adjacent bins with missing values to close current group (integer, defaults to 5).

Examples

1
ratioDF <- smoothRatio(W303norm)

Repliscope documentation built on July 15, 2019, 5:02 p.m.