deltaWCalculator: Calculate deltaWs

Description Usage Arguments Value Author(s) See Also Examples

View source: R/deltaWCalculator.R

Description

This function will calculate deltaWs from a GRanges-class object with read fragments.

Usage

1
deltaWCalculator(frags, reads.per.window = 100)

Arguments

frags

A GRanges-class with read fragments (see readBamFileAsGRanges).

reads.per.window

Number of reads in each dynamic window.

Value

The input frags with additional meta-data columns.

Author(s)

Aaron Taudt

See Also

readBamFileAsGRanges

Examples

1
2
3
4
5
6
7
## Get an example file
exampleFolder <- system.file("extdata", "example_bams", package="breakpointRdata")
exampleFile <- list.files(exampleFolder, full.names=TRUE)[1]
## Load the file
fragments <- readBamFileAsGRanges(exampleFile, pairedEndReads=FALSE, chromosomes='chr22')
## Calculate deltaW values
dw <- deltaWCalculator(fragments)

breakpointR documentation built on Nov. 8, 2020, 8:04 p.m.