Skip to content

Commit c2b6af3

Browse files
authored
Update norm_integration.rmd
1 parent 26738b4 commit c2b6af3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inst/templates/singlecell/02_integration/norm_integration.rmd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ seurat_sctnorm <- SCTransform(seurat_lognorm,
323323
vst.flavor = "v2",
324324
# vars.to.regress = c("mitoRatio")
325325
variable.features.n = 3000)
326+
seurat_sctnorm <- RunPCA(seurat_sctnorm)
327+
seurat_sctnorm <- RunUMAP(seurat_sctnorm, 1:40)
328+
326329
saveRDS(seurat_sctnorm, file="seurat_sctnorm.rds")
327330
```
328331

@@ -334,7 +337,6 @@ We qualitatively reviewed the "structure" in our normalized data projection . We
334337

335338
```{r, fig.width=10}
336339
DefaultAssay(seurat_sctnorm) <- "SCT"
337-
seurat_sctnorm <- RunPCA(seurat_sctnorm)
338340
UMAPPlot(seurat_sctnorm, group.by = "orig.ident") + ggtitle("UMAP")
339341
```
340342

0 commit comments

Comments
 (0)