region_to_bins.Rd
Split a contiguous genomic region on a chromosome into non-overlapping bins
region_to_bins(chromosome, start, end, bin_size = 2000)
The chromosome you are restricting to (with or without a chr prefix).
Query start coordinate of the range you are restricting to.
Query end coordinate of the range you are restricting to.
The size of the bins, default is 2000.
Data frame describing the bins various ways.
This function takes genomic coordinates with the chromosome
, start
, and end
parameters.
Lastly, the user can also specify the bin size with bin_size
. Default is 20000
chr8q_bins = region_to_bins(chromosome = "8",
start = 48100000,
end = 146364022,
bin_size = 20000)