Skip to content

Commit

Permalink
update material
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed May 22, 2024
1 parent 2406fd8 commit ca02989
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions vignettes/Session_2_Tidy_spatial_analyses.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ spatial_data_filtered |>
Let's take a step further and group the correlations according to samples, to see whether different samples show different correlations.

```{r, fig.width=7, fig.height=8}
spatial_data_filtered |>
ggplot(aes(subsets_mito_percent, sum_gene)) +
geom_point(aes(color = spatialLIBD), size=0.2) +
Expand All @@ -792,7 +791,6 @@ spatial_data_filtered |>
facet_wrap(~spatialLIBD) +
scale_y_log10() +
theme_bw()
```

As you can appreciate, the relationship between the number of genes, probed Purcell and their mitochondrial prescription abundance it's quite consistent.
Expand Down Expand Up @@ -829,6 +827,11 @@ Amyloid plaques are extracellular deposits primarily composed of aggregated amyl
Amyloid plaques can be found in the brains of mice, particularly in transgenic mouse models that are engineered to develop Alzheimer's disease-like pathology.
Although amyloid plaques themselves are extracellular, the presence and formation of these plaques are associated with specific gene expression changes in the surrounding and involved cells. These gene markers are indicative of the processes that contribute to amyloid plaque formation, as well as the cellular response to these plaques ([Ranman et al., 2021](https://molecularneurodegeneration.biomedcentral.com/articles/10.1186/s13024-021-00465-0).)

- join_features()
- mutate()
- ggspavis::plotSpots()
:::

```{r}
marker_genes_of_amyloid_plaques = c("APP", "PSEN1", "PSEN2", "CLU", "APOE", "CD68", "ITGAM", "AIF1")
Expand Down
4 changes: 4 additions & 0 deletions vignettes/Session_3_imaging_assays.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ tx_spe_file = tempfile()
utils::download.file("https://zenodo.org/records/11213166/files/tx_spe.rda?download=1", destfile = tx_spe_file)
# load("~/Downloads/tx_spe.rda")
load(tx_spe_file)
```

A trivial edit to work with `ggspavis.`

```{r}
tx_spe = tx_spe |> mutate(in_tissue = TRUE)
```

Expand Down
5 changes: 2 additions & 3 deletions vignettes/Solutions.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ differential_analysis |>
:::

```{r, eval=FALSE}
rownames(spatial_data) = rowData(spatial_data)$gene_name
rownames(spatial_data_filtered) = rowData(spatial_data_filtered)$gene_name
marker_genes_of_amyloid_plaques = c("APP", "PSEN1", "PSEN2", "CLU", "APOE", "CD68", "ITGAM", "AIF1")
spatial_data |>
spatial_data_filtered |>
# Join the features
join_features(marker_genes_of_amyloid_plaques, shape = "wide") |>
Expand All @@ -254,7 +254,6 @@ spatial_data |>
) +
facet_wrap(~sample_id)
```


Expand Down

0 comments on commit ca02989

Please sign in to comment.