Skip to content
Snippets Groups Projects
Commit 2104e5cd authored by Jeffrey Pullin's avatar Jeffrey Pullin
Browse files

Adjust initial cell2location data analysis

parent 9c94f3f4
No related branches found
No related tags found
No related merge requests found
Pipeline #9403 passed
......@@ -10,16 +10,26 @@ knitr::opts_chunk$set(echo = TRUE)
```{r libraries}
library(zellkonverter)
library(SingleCellExperiment)
library(SeuratDisk)
```
```{r load-data}
path <- here::here(
all_cells_path <- here::here(
"data",
"all_cells_20200625.h5ad"
)
all_cells_data <- readH5AD(all_cells_path)
all_cells_data$total_counts
astro_path <- here::here(
"data",
"downloaded_data",
"mouse_brain_snRNA_with_UMAP_astrocytes_cellxgene.h5ad"
)
astro_data <- readH5AD(path)
astro_data <- readH5AD(astro_path)
astro_data
......@@ -42,6 +52,6 @@ plotUMAP(astro_data, colour_by = "annotation_1")
anno <- as.character(colData(astro_data)[["annotation_1"]])
# Remove the "Astro_" prefix.
anno <- substr(anno, 7, nchar(anno))
```
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment