From 4a042f05c91baecbdbaba56b0ac61824f983b90d Mon Sep 17 00:00:00 2001 From: lcolladotor Date: Fri, 26 Jul 2024 17:54:54 -0400 Subject: [PATCH] Find a combination of plot changes that get the tarball to 4.9 mb (vs the previous 5.2 mb) --- vignettes/visiumStitched.Rmd | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/vignettes/visiumStitched.Rmd b/vignettes/visiumStitched.Rmd index 90afa96..12d31bf 100644 --- a/vignettes/visiumStitched.Rmd +++ b/vignettes/visiumStitched.Rmd @@ -404,7 +404,10 @@ wm_genes_ens <- rownames(spe_norm)[ ## Plot combination of normalized counts for some white-matter genes vis_gene( spe_norm, - geneid = wm_genes_ens, assayname = "logcounts", is_stitched = TRUE + geneid = wm_genes_ens, + assayname = "logcounts", + is_stitched = TRUE, + spatial = FALSE ) ``` @@ -412,9 +415,13 @@ Recall the unnormalized version of this plot, which is not nearly as clean: ```{r "unnorm_plot", fig.height = 4} ## Plot raw counts, which are noisier +## Same plot we made before, but this time with no histology images vis_gene( spe, - geneid = wm_genes, assayname = "counts", is_stitched = TRUE + geneid = wm_genes, + assayname = "counts", + is_stitched = TRUE, + spatial = FALSE ) ``` @@ -459,7 +466,12 @@ vars <- colnames(colData(spe_norm)) vars[grep("precast", vars)] ## PRECAST k = 4 clusters with default cluster colors -vis_clus(spe_norm, clustervar = "precast_k4", is_stitched = TRUE) +vis_clus( + spe_norm, + clustervar = "precast_k4", + is_stitched = TRUE, + spatial = FALSE +) ``` The biological interpretation of these spatial clusters would need further work, using methods such as: