-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupp_figure_4.Rmd
44 lines (24 loc) · 1.09 KB
/
supp_figure_4.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
```{r}
library(Seurat)
library(ggplot2)
library(patchwork)
library(ggpubr)
```
```{r}
sample <- readRDS('/Volumes/klavine/Active/Junedh/COVID_PBMC/azimuth/mapped/merged_azimuth_mapped.rds')
```
```{r}
DimPlot(sample, group.by = "predicted.celltype.l1", label = TRUE, label.size = 3 ,repel = TRUE, reduction = "ref.umap") + NoLegend()
DimPlot(sample, group.by = "predicted.celltype.l2", label = TRUE, label.size = 3 ,repel = TRUE, reduction = "ref.umap") + NoLegend()
DimPlot(sample, group.by = "condition", label = FALSE, label.size = 3 ,repel = TRUE, reduction = "ref.umap")
DimPlot(sample, group.by = "diseaseStatus", label = FALSE, label.size = 3 ,repel = TRUE, reduction = "ref.umap")
DimPlot(sample, group.by = "sampleID", label = FALSE, label.size = 3 ,repel = TRUE, reduction = "ref.umap")
```
```{r}
Idents(sample) <- "predicted.celltype.l2"
levels(sample)
```
```{r}
DefaultAssay(sample) <- "prediction.score.celltype.l2"
FeaturePlot(sample, features = levels(sample), reduction = "ref.umap", cols = c("lightgrey", "darkred"), ncol = 4) & theme(plot.title = element_text(size = 10))
```