Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ensembldb
Type: Package
Title: Utilities to create and use Ensembl-based annotation databases
Version: 2.37.1
Version: 2.37.2
Authors@R: c(person(given = "Johannes", family = "Rainer",
email = "johannes.rainer@eurac.edu",
role = c("aut", "cre"),
Expand Down
14 changes: 8 additions & 6 deletions R/functions-create-EnsDb.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
## retrieve Ensembl data
## save all files to local folder.
## returns the path where files have been saved to.
fetchTablesFromEnsembl <- function(version, ensemblapi, user="anonymous",
host="ensembldb.ensembl.org", pass="",
port=5306, species="human"){
if(missing(version))
fetchTablesFromEnsembl <- function(version, ensemblapi, user = "anonymous",
host = "ensembldb.ensembl.org", pass = "",
port = 5306, species = "human"){
if (missing(version))
stop("The version of the Ensembl database has to be provided!")
## setting the stage for perl:
fn <- system.file("perl", "get_gene_transcript_exon_tables.pl",
Expand All @@ -45,8 +45,10 @@ fetchTablesFromEnsembl <- function(version, ensemblapi, user="anonymous",
## replacing white spaces with _
species <- gsub(species, pattern=" ", replacement="_")

cmd <- paste0("perl ", fn, " -s ", species," -e ", version,
" -U ", user, " -H ", host, " -p ", port, " -P ", pass)
cmd <- paste0("perl ", fn, " -s ", shQuote(species),
" -e ", shQuote(version), " -U ", shQuote(user),
" -H ", shQuote(host), " -p ", shQuote(port),
" -P ", shQuote(pass))
if(!missing(ensemblapi)){
Sys.setenv(ENS=ensemblapi)
}
Expand Down
5 changes: 5 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes in version 2.37.2

- Fix first security issues reported by the Bioconductor Security Audit:
- `fetchTablesFromEnsembl()`: fix potential command injection issue.

Changes in version 2.33.3

- Add `genome<-` method to support manually setting the genome build version.
Expand Down
Loading