File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ to_Seurat <- function(...) {
492492 }
493493
494494 if (! grepl(SeuratObject :: .KeyPattern(), key )) {
495- new_key <- suppressWarnings( Seurat :: Key(key ) )
495+ new_key <- SeuratObject :: Key(key , quiet = TRUE )
496496 cli_warn(paste(
497497 " Key {.val {key}} does not match the expected pattern," ,
498498 " it has been replaced with {.val {new_key}}"
@@ -534,7 +534,7 @@ to_Seurat <- function(...) {
534534 if (is.atomic(reduction_mapping )) {
535535 reduction_mapping <- purrr :: map(reduction_mapping , function (.obsm ) {
536536 c(
537- key = suppressWarnings( SeuratObject :: Key(.obsm ) ),
537+ key = SeuratObject :: Key(.obsm , quiet = TRUE ),
538538 embeddings = .obsm
539539 )
540540 })
@@ -617,7 +617,7 @@ to_Seurat <- function(...) {
617617
618618 mapping <- c(
619619 # Make sure we have valid keys here to avoid warnings later
620- key = suppressWarnings( SeuratObject :: Key(.obsm ) ),
620+ key = SeuratObject :: Key(.obsm , quiet = TRUE ),
621621 embeddings = .obsm
622622 )
623623 if (.obsm == " X_pca" && " PCs" %in% names(adata $ varm )) {
You can’t perform that action at this time.
0 commit comments