Skip to content

Commit

Permalink
bug fix: GRCh38 in annotateRanges
Browse files Browse the repository at this point in the history
  • Loading branch information
ischeller committed Aug 14, 2020
1 parent 5db7597 commit eb45f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions R/annotationOfRanges.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ annotateRanges <- function(fds, feature="hgnc_symbol", featureName=feature,
# check input
stopifnot(is(fds, "FraserDataSet"))
if(length(fds) == 0) return(fds)

# useEnsembl only understands GRCh=37 or GRCh=NULL (uses 38 then)
if(GRCh == 38){
GRCh <- NULL
}

if(is.null(ensembl)){
tryCatch({
Expand Down

0 comments on commit eb45f63

Please sign in to comment.