You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
# The cells we select here are those that are both available in the SCE
179
181
# object, and requested for this particular file
180
182
cells<- colnames(sce) |> intersect(df$cell_)
181
-
# We need to make the cell names globally unique, which we can guarantee
182
-
# by adding a suffix that is derived from file_id_db, which is the grouping
183
-
# variable
184
-
new_cellnames<- paste0(cells, "_", i)
183
+
184
+
if (length(cells) < nrow(df)){
185
+
cli_alert_warning("Some cells were filtered out because of extremely low counts. The number of cells in the SingleCellExperiment will be less than the number of cells you have selected from the metadata.")
186
+
df= filter(df, .data$cell_%in%cells)
187
+
}
188
+
elseif (length(cells) > nrow(df)){
189
+
cli_abort("This should never happen")
190
+
}
191
+
192
+
# Fix for https://github.com/tidyverse/dplyr/issues/6746
0 commit comments