-
Notifications
You must be signed in to change notification settings - Fork 1
/
human_integration.R
18 lines (17 loc) · 958 Bytes
/
human_integration.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
ProcessInt <- function(data.integrated){
+ data.integrated <- ScaleData(data.integrated, verbose = FALSE)
+ data.integrated <- RunPCA(data.integrated, npcs = 30, verbose = FALSE)
+ data.integrated <- FindNeighbors(data.integrated, dims = 1:20)
+ data.integrated <- FindClusters(data.integrated, resolution = 0.5)
+ data.integrated <- RunUMAP(data.integrated, reduction = "pca", dims = 1:20)
+ data.integrated <- RunTSNE(data.integrated, dims.use = 1:10 )
+ }
adult$annotation <- [email protected]
FD59$annotation <- [email protected]
FD82$annotation <- [email protected]
FD125$annotation <- [email protected]
integration_list <- list(adult, FD59, FD82, FD125)
features <- SelectIntegrationFeatures(object.list = integration_list)
data.anchors <- FindIntegrationAnchors(object.list = integration_list, anchor.features = features)
data.combined <- IntegrateData(anchorset = data.anchors)
human.combined <- ProcessInt(data.combined)