R/makeHG19Promoters.R

Defines functions makeHG19Promoters

Documented in makeHG19Promoters

#' Generate promoter annotation of hg19 RefSeq genes
#'
#' @param up An integer value defining the number of nucleotides towards the 5' end relative to
#'     the transcription start site.
#' @param down An integer value defining the number of nucleotides towards the 3' end relative to
#'     the transcription start site.
#' @return A GRanges object containing promoter annotation.
#' @examples
#' makeHG19Promoters(up = 2000, down = 2000)
#'
makeHG19Promoters <- function(up=2000, down=2000) {
  genes <- invisible(geneAnnoHG19)
  pro <- GenomicRanges::promoters(genes, upstream=up, downstream=down)
  return(pro)
}
HengPan2007/MethSig documentation built on Aug. 1, 2020, 4:52 a.m.