smoothHitPerCent {FourCSeq} | R Documentation

## Smooth the hits of neighboring fragments

### Description

Counts are transformed to a hit if they exceed the given threshold. Hits are then 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

    smoothHitPerCent(object, binWidth = 101, thresh = 1)

### Arguments

`object` | A `FourC` object.
`binWidth` | Integer vector of odd numbers.
`thresh` | Single integer defining the threshold for calling a fragment a hit.

### Value

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

### Author(s)

Felix A. Klein, felix.klein@embl.de

### See Also

`FourC`

### Examples

    data(fc, package="FourCSeq")

    fc <- smoothHitPerCent(fc)
    fc

[Package FourCSeq version 1.20.0 Index]