Description Usage Arguments Value Examples
.fetch_bam_stranded
1 | .fetch_bam_stranded(bam_f, query_gr, max_dupes = Inf, ...)
|
bam_f |
character. a .bam file, must have index file in same directory: .bam.bai |
query_gr |
GRanges, regions to retrieve reads for. |
max_dupes |
numeric, maximum positional duplicates allowed. See
|
... |
additional arguments passed to
|
a tidy data.table of read pileup coverage from bam_f for regions in query_gr
1 2 3 4 5 6 7 8 | bam_file = system.file("extdata",
"MCF10A_CTCF.random5.bam", package = "peakrefine")
bam_input = system.file("extdata",
"MCF10A_input.random5.bam", package = "peakrefine")
np = system.file("extdata",
"MCF10A_CTCF.random5.narrowPeak", package = "peakrefine")
query_gr = rtracklayer::import(np, format = "narrowPeak")
peakrefine:::.fetch_bam_stranded(bam_file, query_gr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.