Make fixed-width bins based on given bin size.
getBins(chrom.lengths = hg19_chrlength, binsize = 1e+06, chromosomes = NULL)
Arguments
- chrom.lengths
A named character vector with chromosome lengths. Names correspond to chromosomes.
- binsize
Size of bins in basepairs
- chromosomes
A subset of chromosomes for which the bins are generated.
Value
A data frame with chr start and end positions