Skip to content

Commit c82c789

Browse files
committed
Fix bug on the "clusters (interactive)" tab of run_app() for stitched data.
I used this code to debug things: ```R library("HDF5Array") spe <- loadHDF5SummarizedExperiment('/Users/leocollado/Dropbox/Code/_libdcode/visiumStitched_brain/code/05_shiny/spe') vars <- colnames(colData(spe)) run_app( spe, sce_layer = NULL, modeling_results = NULL, sig_genes = NULL, title = "visiumStitched_brain", spe_discrete_vars = c( "ManualAnnotation", vars[grep("^precast_k[248]$", vars)], "scran_quick_cluster" ), spe_continuous_vars = c( "sum_umi", "sum_gene", "expr_chrM", "expr_chrM_ratio" ), default_cluster = "precast_k2", docs_path = "/Users/leocollado/Dropbox/Code/_libdcode/visiumStitched_brain/code/05_shiny/www", is_stitched = TRUE ) ```
1 parent ace59fa commit c82c789

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/app_server.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,7 @@ app_server <- function(input, output, session) {
682682

683683
## Add the reduced dims
684684
if (reduced_name != "") {
685-
red_dims <-
686-
reducedDim(spe, reduced_name)[spe$sample_id == sampleid, ]
685+
red_dims <- reducedDim(spe_sub, reduced_name)
687686
colnames(red_dims) <-
688687
paste(reduced_name, "dim", seq_len(ncol(red_dims)))
689688
d <- cbind(d, red_dims)

0 commit comments

Comments
 (0)