Skip to content

Commit

Permalink
Attempt to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mvfki committed Oct 31, 2023
1 parent 9e2db23 commit a950117
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/subsetObject.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@ retrieveCellFeature <- function(
#if (all(sapply(value, function(x) dim(x)[1] == 0)))
# stop("No feature could be retrieved. ",
# "Please check feature names or slot")
subsetData <- lapply(subsetData, t)
subsetData <- Reduce(rbind, subsetData)
subsetData <- as.data.frame(as.matrix(subsetData))
# subsetData <- lapply(subsetData, t)
# subsetData <- Reduce(rbind, subsetData)
subsetData <- mergeSparseAll(subsetData, mode = "union")
subsetData <- as.data.frame(as.matrix(t(subsetData)))
value <- subsetData[colnames(object)[cellIdx], , drop = FALSE]
} else if (slot == "H") {
value <- Reduce(cbind, getMatrix(object, "H"))
Expand Down

0 comments on commit a950117

Please sign in to comment.