From 2ffab5894fcfa5cd0a04affa07758948728acc50 Mon Sep 17 00:00:00 2001 From: "Weixu(Ken) Wang" Date: Sat, 29 Jan 2022 20:06:18 +0800 Subject: [PATCH] Add files via upload --- R/sce2array.R | 1 + 1 file changed, 1 insertion(+) diff --git a/R/sce2array.R b/R/sce2array.R index d54cc83..df505e2 100644 --- a/R/sce2array.R +++ b/R/sce2array.R @@ -56,6 +56,7 @@ sce2array <- function(object, model_name = NULL,norm_output = TRUE){ for(ct in names(table(CellLabel))){ array[,,ct] = Exp[,CellLabel %in% ct] } + array = array[,,colnames(object@ref)] array }