Description Usage Arguments Value Author(s) See Also Examples
View source: R/deltaWCalculator.R
This function will calculate deltaWs from a GRanges-class
object with read fragments.
1 | 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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.