View source: R/get_spiked_coverage.R
| get_spiked_coverage | R Documentation |
FIXME: this is wicked slow, ask Herve if a faster version exists
get_spiked_coverage(bf, bp, gr)
bf |
the BamFile object |
bp |
the ScanBamParam object |
gr |
the GRanges with sorted seqlevels |
Refactored from scan_spiked_bam, this is a very simple wrapper
a list of Rles
scan_spiked_bam
coverage
sb <- system.file("extdata", "example.spike.bam", package="spiky",
mustWork=TRUE)
si <- seqinfo_from_header(sb)
genome(si) <- "spike"
data(spike, package="spiky")
mgr <- get_merged_gr(si, spike=spike) # note canonicalized spikes
fl <- scanBamFlag(isDuplicate=FALSE, isPaired=TRUE, isProperPair=TRUE)
bp <- ScanBamParam(flag=fl)
bamMapqFilter(bp) <- 20
get_spiked_coverage(sb, bp=bp, gr=mgr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.