R/downloadAnnotations.R

Defines functions downloadAnnotations

Documented in downloadAnnotations

#' Download transcriptome annotatin from Ensemblin a format that customProDB can use
#' This Uses the import function from CustomProDB in combination with BioMart and can take a few hours.
#' @param annotation_path Path to a folder where Annotation files should be stored.
#' @import customProDB
#' @import biomaRt
#' @export


downloadAnnotations <- function(annotation_path, archive =FALSE, host ="dec2016.archive.ensembl.org"){
  # If you want to reproduce the results set archive to true, otherwhise it will download the current ensembl version
  ensembl <- biomaRt::useMart("ENSEMBL_MART_ENSEMBL", dataset="hsapiens_gene_ensembl",
                     host=host, path="/biomart/martservice",
                     archive=archive)


  customProDB::PrepareAnnotationEnsembl(mart=ensembl, annotation_path=annotation_path,
                           splice_matrix=TRUE, dbsnp=NULL,
                           transcript_ids=NULL, COSMIC=FALSE)

}
mffrank/RNAseqToCustomFASTA documentation built on May 22, 2019, 7:55 p.m.