Skip to contents

Get tiled bins

Usage

get_tiled_bins(
  bs_genome = NULL,
  tilewidth = 5e+05,
  select_chrs = NULL,
  respect_chr_arms = TRUE
)

Arguments

bs_genome

A BSgenome object

tilewidth

Bin size

select_chrs

Vector of chromosomes to include

respect_chr_arms

logical If TRUE, bins will be created with respect to chromosome arms (ie. not crossing arm boundries)

Value

A GRanges object of bins

Examples

if (FALSE) { # \dontrun{
bins <- get_tiled_bins(BSgenome.Hsapiens.UCSC.hg38::BSgenome.Hsapiens.UCSC.hg38, tilewidth = 500000)
} # }