genomeBlocks {Repitools} | R Documentation |
Creates a compact GRanges
representation of bins across specified
chromosomes of a given genome.
## S4 method for signature 'numeric' genomeBlocks(genome, chrs = names(genome), width = NULL, spacing = width) ## S4 method for signature 'BSgenome' genomeBlocks(genome, chrs = seqnames(genome), width = NULL, spacing = width)
genome |
Either a |
chrs |
A |
width |
The width in base pairs of each bin. |
spacing |
The space between the centres of each adjacent bin. By default,
is equal to the |
Returns a GRanges
object, compatible with direct usage in
annotationBlocksCounts
Aaron Statham
chr.lengths <- c(800, 200, 200) names(chr.lengths) <- c("chr1", "chr2", "chr3") genomeBlocks(chr.lengths, width = 200)