Use this function to order regioins prior to calling peak_matrix()
or tile_matrix()
.
Arguments
- ranges
Genomic regions given as GRanges, data.frame, or list. See
help("genomic-ranges-like")
for details on format and coordinate systems. Required attributes:chr
,start
,end
: genomic position
- chr_levels
Ordering of chromosome names
- sort_by_end
If TRUE (defualt), sort by (chr, end, start). Else sort by (chr, start, end)