Skip to content

Commit 05bdf29

Browse files
authored
convert rle to vector before checks
as suggested in #1994
1 parent 890223c commit 05bdf29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/AllClasses.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,8 @@ subsetArchRProject <- function(
802802
if(!missing(j)){
803803
message("Subsetting columns not supported this way to remove columns set them to NULL.\nEx. ArchRProj$Clusters <- NULL\nContinuing just with cell subsetting.")
804804
}
805-
805+
806+
i <- as.vector(i)
806807
if (is.logical(i)) {
807808
if (length(i) != nrow(cD)) {
808809
stop("Incorrect number of logical values provided to subset cells")

0 commit comments

Comments
 (0)