combineFragEnds: Combine the counts of both fragment ends.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/functions.R

Description

combineFragEnds combines the counts of both fragment ends. A multiplication factor can be used for fragments that only have counts for one valid fragment end.

Usage

1
combineFragEnds(object, multFactor = 1, filter = FALSE)

Arguments

object

A FourC object.

multFactor

Multiplication factor that can be used to multiply the counts of fragments which only have one valid end. Default is 1. filter is automatically set to TRUE if multFactor is different from 1.

filter

If filter is TRUE, only reads from valid fragment ends are summed up for each fragment. This means if only one fragment end is valid only counts from this end are considered. If filter is FALSE, counts from both fragment ends are summed up without any filtering.

Value

Returns an updated FourC object with a new assay counts containing the combined count data of both fragment ends for all viewpoints.

Author(s)

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

See Also

FourC, countFragmentOverlaps

Examples

1
2
3
4
5
                       
data(fc, package="FourCSeq")

fc <- combineFragEnds(fc)
fc

FourCSeq documentation built on Nov. 8, 2020, 7:08 p.m.