Description Usage Arguments Value Examples
Calculate coverage per strand
1 | .calc_stranded_coverage(reads_dt, query_gr, window_size = 1)
|
reads_dt |
data.table containing read spans. mandatory columns are which_label, strand, start, end |
query_gr |
GRanges of regions of interest |
window_size |
resolution used to represent coverage. window_size of 10 retrieves coverage every 10 bp. |
data.table containing stranded read coverage
1 2 3 4 5 | bam_file = system.file("extdata", "MCF10A_CTCF.random5.bam", package = "peakrefine")
np = system.file("extdata", "MCF10A_CTCF.random5.narrowPeak", package = "peakrefine")
qgr = rtracklayer::import(np, format = "narrowPeak")
bam_dt = peakrefine:::.fetch_bam_stranded(bam_file, qgr)
cov_dt = peakrefine:::.calc_stranded_coverage(bam_dt, qgr)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.