Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 02_integration/norm_integration.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ seurat_harmony <- readRDS("seurat_harmony.rds")
#| eval: !expr "!exists('seurat_harmony')"
#| warning: false
#| message: false
# IntegrateLayers creates a PCA-like layer (so do not re-run PCA below before running UMAP)
## Here seurat will integrate on the level of sample id. If you want to integrate on other aspects the SCT normalization will need to be done with all of the data together.
# seurat_sctnorm[["RNA"]] <- split(seurat_sctnorm[["RNA"]], f = seurat_sctnorm$orig.ident)
seurat_harmony <- IntegrateLayers(
Expand All @@ -591,7 +592,6 @@ seurat_harmony <- IntegrateLayers(
new.reduction = "harmony",
assay = "SCT", verbose = FALSE
)
seurat_harmony <- RunPCA(seurat_harmony)
seurat_harmony <- RunUMAP(seurat_harmony,
reduction = "harmony",
dims = 1:40,
Expand Down