R/get_ensembl_transcripts.R

Defines functions get_ensembl_transcripts

Documented in get_ensembl_transcripts get_ensembl_transcripts

#' Get transcripts grouped by gene name. 
#'
#' @param   version   the ENSEMBL release version
#' @param   species   the ENSEMBL species ("Homo sapiens")
#' 
#' @return            a GRangesList of transcripts grouped by gene
#' 
#' @importFrom ensembldb transcripts
#' @importFrom ensembldb transcriptsBy
#' 
#' @export 
get_ensembl_transcripts <- function(version, species="Homo sapiens") { 

  ensdb <- fetch_ensembl(version, species=species) 
  transcriptsBy(ensdb, "gene", columns=c("symbol", "gene_biotype"))

}
trichelab/velocessor documentation built on Jan. 5, 2022, 6:27 p.m.