binGenome {h5vc} | R Documentation |
Function for generating a GRanges
representation of a binning of the genome given in the reference
object.
binGenome(reference, binsize = 1e+06, chroms = seqnames(reference))
reference |
A |
binsize |
Size of bins along the genome. |
chroms |
Which chromosomes to use, defaults to all chromosome described as |
This function creates a GRanges
object that represents bins of size binsize
along the genome represented by the reference
object.
A GRanges
object that represents bins of size binsize
along the genome represented by the reference
object, includes special handling of chromosomes shorter than binsize
and the last bin of each chromosome.
Paul Theodor Pyl
library(BSgenome.Hsapiens.NCBI.GRCh38) bins <- binGenome(Hsapiens, binsize = 100e6, chroms = c("1","2","3","X","MT")) bins