Skip to content

Commit dff868b

Browse files
authored
Update seurat_loom_subset_velocity.md
1 parent 7e48225 commit dff868b

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

scRNAseq/scRNAseq_analysis_tutorial/lessons/seurat_loom_subset_velocity.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -79,35 +79,4 @@ Convert("all_samples.h5Seurat", dest = "h5ad")
7979

8080
```
8181

82-
#################
83-
84-
1. Split Seurat file into separate groups if velocity analysis is split by group
85-
86-
```r
87-
# Split Seurat object
88-
obj.list <- SplitObject(seurat,
89-
split.by = "sample_simple")
90-
```
91-
92-
2. Save as separate objects
93-
94-
```r
95-
# Extract separate objects and save associated cell IDs
96-
ctrl <- obj.list[["ctrl"]]
97-
ctrl_cell_ids <- colnames(ctrl)
98-
cre_cell_ids_base <- cre_cell_ids %>% str_split(pattern = "-", simplify = TRUE) %>% .[ , 1]
99-
100-
101-
DimPlot(object = ctrl,
102-
reduction = "umap",
103-
label = TRUE) + NoLegend()
104-
105-
ko <- obj.list[["ko"]]
106-
ko_cell_ids <- colnames(ko)
107-
108-
DimPlot(object = ko,
109-
reduction = "umap",
110-
label = TRUE) + NoLegend()
111-
```
112-
11382

0 commit comments

Comments
 (0)