Description Usage Arguments Details Value Examples
Bins each region in a GRanges
object into bins of specified bin_size
1 | bin_granges(gr, bin_size = 1e+05)
|
gr |
GRanges; The |
bin_size |
integer; x > 0; The length of region in each bin |
Bins a single region in GRanges
format into multiple regions with a specified bin_size
. If length(gr) %% bin_size != 0
, then the last GRange will have a length < bin_size
. This is used instead of tile when you need consistently sized bins with the last bin being smaller
GRangesList
containing all the binned GRanges
1 2 | regions <- GenomicRanges::GRanges(seqnames = "chr1", ranges = IRanges(1,10000))
bin_granges(regions,bin_size=1000)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.