Skip to content

Commit

Permalink
Update R/objects.R
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Hoffman <[email protected]>
  • Loading branch information
andrewwbutler and mojaveazure authored Sep 11, 2020
1 parent 5bd99f6 commit 09dc5fe
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 @@ -7349,7 +7349,7 @@ subset.Seurat <- function(x, subset, cells = NULL, features = NULL, idents = NUL
if (all(cells %in% Cells(x = x)) && length(x = cells) == length(x = Cells(x = x)) && is.null(x = features)) {
return(x)
}
if (!all(all.cells %in% cells)) {
if (!all(colnames(x = x) %in% cells)) {
slot(object = x, name = 'graphs') <- list()
slot(object = x, name = 'neighbors') <- list()
}
Expand Down

0 comments on commit 09dc5fe

Please sign in to comment.