Skip to content

Commit

Permalink
fix for DietSeurat when counts is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwbutler committed Jul 12, 2020
1 parent aeec8a4 commit 5fa406f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/objects.R
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ DietSeurat <- function(
}
} else {
if (counts) {
if (!is.null(x = features)) {
if (!is.null(x = features) && !IsMatrixEmpty(x = GetAssayData(object = object[[assay]], slot = "counts"))) {
slot(object = object[[assay]], name = 'counts') <- slot(object = object[[assay]], name = 'counts')[features.assay, ]
}
} else {
Expand Down

0 comments on commit 5fa406f

Please sign in to comment.