#' 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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.