View source: R/get_binned_coverage.R
get_binned_coverage | R Documentation |
refactored out of scan_spiked_bam
get_binned_coverage(bins, covg)
bins |
the GRanges with bins |
covg |
the coverage result (an RleList) |
a GRanges of summarized coverage
get_spiked_coverage
scan_spiked_bam
sb <- system.file("extdata", "example.spike.bam", package="spiky", mustWork=TRUE) data(spike,package="spiky") si <- seqinfo_from_header(sb) genome(si) <- "spike" mgr <- get_merged_gr(si,spike=spike) fl <- scanBamFlag(isDuplicate=FALSE, isPaired=TRUE, isProperPair=TRUE) bp <- ScanBamParam(flag=fl) bamMapqFilter(bp) <- 20 covg <- get_spiked_coverage(sb, bp=bp, gr=mgr) get_binned_coverage(bins=GRanges(), covg=covg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.