Skip to content

Commit

Permalink
update session 2
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed May 21, 2024
1 parent 54065f7 commit 3d85297
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vignettes/Session_2_Tidy_spatial_analyses.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ BiocManager::install(c("lmweber/ggspavis",
"stemangiola/tidySingleCellExperiment",
"william-hutchison/tidySpatialExperiment",
"stemangiola/tidybulk",
"stemangiola/tidygate",
"stemangiola/CuratedAtlasQueryR"),
"stemangiola/tidygate"),
update = FALSE)
```
Expand All @@ -69,13 +68,13 @@ Let's load the libraries needed for this session
```{r, message = FALSE}
library(SpatialExperiment)
# Tidyverse
# Tidyverse library(tidyverse)
library(ggplot2)
library(plotly)
library(dplyr)
library(tidyr)
library(purrr)
library(glue)
library(glue) # sprintf
library(stringr)
# Plotting
Expand Down Expand Up @@ -109,6 +108,7 @@ reducedDims(spatial_data) = NULL
# Make cell ID unique
colnames(spatial_data) = paste0(colnames(spatial_data), colData(spatial_data)$sample_id)
rownames(spatialCoords(spatial_data)) = colnames(spatial_data) # Bug?
# Display the object
spatial_data
Expand All @@ -129,7 +129,7 @@ spatial_data

#### Data interface, display

If we want to revert to the standard SpatialExperiment view we can do that.
If we want to revert to the standard `SpatialExperiment` view we can do that.

```{r}
options("restore_SpatialExperiment_show" = TRUE)
Expand Down

0 comments on commit 3d85297

Please sign in to comment.