Split a contiguous genomic region on a chromosome into non-overlapping bins

region_to_bins(chromosome, start, end, bin_size = 2000)

Arguments

chromosome

The chromosome you are restricting to (with or without a chr prefix).

start

Query start coordinate of the range you are restricting to.

end

Query end coordinate of the range you are restricting to.

bin_size

The size of the bins, default is 2000.

Value

Data frame describing the bins various ways.

Details

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

Examples

chr8q_bins = region_to_bins(chromosome = "8",
                            start = 48100000,
                            end = 146364022,
                            bin_size = 20000)