From eefd6b43c34459eb1d53e1573942026f8dbdcce2 Mon Sep 17 00:00:00 2001 From: hermespara Date: Wed, 25 Sep 2024 16:04:46 +0200 Subject: [PATCH] RunPHATE: adapt t to integer --- R/Seurat-function.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/Seurat-function.R b/R/Seurat-function.R index c47691b5..a1181114 100644 --- a/R/Seurat-function.R +++ b/R/Seurat-function.R @@ -1363,7 +1363,7 @@ RunPHATE.default <- function(object, assay = NULL, knn = as.integer(knn), decay = as.integer(decay), n_landmark = as.integer(n_landmark), - t = t, + t = ifelse(t == "auto", as.character(t), as.integer(t)), gamma = as.numeric(gamma), n_pca = as.integer(n_pca), knn_dist = as.character(knn_dist),