You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Idents(sSubCluster2) <-"Mutation"sSubCluster2HC<- subset(sSubCluster2, idents="HC")
Idents(sSubCluster2HC) <-"CellType"sSubCluster2HC_100Cells<-sSubCluster2HCdata.input<-sSubCluster2HC_100Cells[["RNA"]]$datalabels<- Idents(sSubCluster2HC_100Cells)
# create a dataframe of the cell labelsmeta<-data.frame(labels=labels, row.names= names(labels))
Subset Data LRRK2
Idents(sSubCluster2) <-"Mutation"sSubCluster2LRRK2<- subset(sSubCluster2, idents="LRRK2")
Idents(sSubCluster2LRRK2) <-"CellType"sSubCluster2LRRK2_100Cells<-sSubCluster2LRRK2data.input<-sSubCluster2LRRK2_100Cells[["RNA"]]$datalabels_1<- Idents(sSubCluster2LRRK2_100Cells)
meta<-data.frame(labels=labels_1, row.names= names(labels_1)) # create a dataframe of the cell labels
# Ensure consistent ordering of cell typescell_types<- levels(Idents(sSubCluster2LRRK2_100Cells))
# Align HC cell type levels to LRRK2
Idents(sSubCluster2HC_100Cells) <-factor(Idents(sSubCluster2HC_100Cells), levels=cell_types)
# Verify the ordering
print(levels(Idents(sSubCluster2HC_100Cells)))
## [1] "Create a CellChat object from a Seurat object"
## The `meta.data` slot in the Seurat object is used as cell meta information
## Set cell identities for the new CellChat object
## The cell groups used for CellChat analysis are iPPC_1, iNL2, iOPC, iCEP, iNL1, iRGC, iPPC_0, iODC, iINPC, iPPC_2
CellChatDB<-CellChatDB.human# use CellChatDB.mouse if running on mouse data
showDatabaseCategory(CellChatDB)
Subset and Preprocess Data HC
CellChatDB.use<- subsetDB(CellChatDB)
cellchat@DB<-CellChatDB.usecellchat<- subsetData(cellchat) # This step is necessary even if using the whole databasefuture::plan("sequential")
cellchat<- identifyOverExpressedGenes(cellchat)
cellchat<- identifyOverExpressedInteractions(cellchat)
## The number of highly variable ligand-receptor pairs used for signaling inference is 1765
## triMean is used for calculating the average gene expression per cell group.
## [1] ">>> Run CellChat on sc/snRNA-seq data <<< [2024-08-08 17:58:07.43524]"
## [1] ">>> CellChat inference is done. Parameter values are stored in `object@options$parameter` <<< [2024-08-08 18:04:50.33199]"
## [1] "Create a CellChat object from a Seurat object"
## The `meta.data` slot in the Seurat object is used as cell meta information
## Set cell identities for the new CellChat object
## The cell groups used for CellChat analysis are iPPC_1, iNL2, iOPC, iCEP, iNL1, iRGC, iPPC_0, iODC, iINPC, iPPC_2
CellChatDB<-CellChatDB.human# use CellChatDB.mouse if running on mouse data
showDatabaseCategory(CellChatDB)
Subset and Preprocess Data LRRK2
CellChatDB.use<- subsetDB(CellChatDB)
cellchat@DB<-CellChatDB.usecellchat<- subsetData(cellchat) # This step is necessary even if using the whole databasefuture::plan("sequential")
cellchat<- identifyOverExpressedGenes(cellchat)
cellchat<- identifyOverExpressedInteractions(cellchat)
## The number of highly variable ligand-receptor pairs used for signaling inference is 1650
## triMean is used for calculating the average gene expression per cell group.
## [1] ">>> Run CellChat on sc/snRNA-seq data <<< [2024-08-08 18:04:58.394811]"
## [1] ">>> CellChat inference is done. Parameter values are stored in `object@options$parameter` <<< [2024-08-08 18:10:36.001226]"
## There is no significant communication of MIF
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.
## Scale for y is already present.
## Adding another scale for y, which will replace the existing scale.