Skip to content

Commit

Permalink
Find a combination of plot changes that get the tarball to 4.9 mb (vs…
Browse files Browse the repository at this point in the history
… the previous 5.2 mb)
  • Loading branch information
lcolladotor committed Jul 26, 2024
1 parent c2d824d commit 4a042f0
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions vignettes/visiumStitched.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -404,17 +404,24 @@ 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
)
```

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
)
```

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4a042f0

Please sign in to comment.