Skip to content

Commit

Permalink
Merge pull request #1 from chenyenchung/Patch_TransferData
Browse files Browse the repository at this point in the history
Make sure refdata in TransferData() is sparse
  • Loading branch information
chenyenchung authored May 30, 2019
2 parents fff6898 + 414b022 commit fa0b01e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/integration.R
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ TransferData <- function(
if (!slot %in% c("counts", "data")) {
stop("Please specify slot as either 'counts' or 'data'.")
}
if (inherits(x = refdata, what = "matrix")) {
refdata <- as(object = refdata, Class = "dgCMatrix")
}
label.transfer <- FALSE
} else {
stop(paste0("Please provide either a vector (character or factor) for label transfer or a matrix",
Expand Down

0 comments on commit fa0b01e

Please sign in to comment.