Learn R Programming

FourCSeq (version 1.6.2)

smoothCounts: Smooth the counts of neighboring fragments

Description

Counts are smoothed using the number of fragments provided by binWidth. binWidth has to be an odd number so that an equal number of fragments to each side of the current fragment are used for smoothing.

Usage

smoothCounts(object, assay = "counts", binWidth = 5)

Arguments

object
A FourC object.
assay
Assay name that will be smoothed.
binWidth
Integer vector of odd numbers.

Value

Returns an updated FourC object with smoothed counts for each binWidth as new assays.

See Also

FourC

Examples

Run this code
data(fc, package="FourCSeq")

fc <- smoothCounts(fc)
fc

Run the code above in your browser using DataLab