View source: R/deltaWCalculator.R
deltaWCalculator | R Documentation |
This function will calculate deltaWs from a GRanges-class
object with read fragments.
deltaWCalculator(frags, reads.per.window = 100)
frags |
A |
reads.per.window |
Number of reads in each dynamic window. |
The input frags
with additional meta-data columns.
Aaron Taudt
readBamFileAsGRanges
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.