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
Hi, I'm trying to run CellChat on one Seurat object with 2 conditions, with rat as the subject. I am using the database that was created for rat specifically for this package from this paper: at this github link.
then I read in my seurat object and did the following:
data.input <- seurat_object[["SCT"]]$data
labels <- Idents(seurat_object)
meta <- data.frame(labels = labels, row.names = names(labels)) # create a dataframe of the cell labels
colnames([email protected])[colnames([email protected]) == "sample"] <- "samples"
[1] "Create a CellChat object from a Seurat object"
The meta.data slot in the Seurat object is used as cell meta information
Warning in createCellChat(object = seurat_object, group.by = "ident", assay = "SCT") :
The 'meta$samples' is not a factor. We now force it as a factor!
Set cell identities for the new CellChat object
The cell groups used for CellChat analysis are Oligodendrocytes, Excitatory Neurons, Inhibitory Neurons, Oligodendrocyte Precursors, Microglia, Astrocytes, Endothelial
When I get here: cellChat <- subsetData(cellChat) # This step is necessary even if using the whole database
I get this error:
Issue identified!! Please check the official Gene Symbol of the following genes:
NA
Issue identified!! Please check the official Gene Symbol of the following genes:
NA
Can you provide any clarity about what SubsetData does exactly?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to run CellChat on one Seurat object with 2 conditions, with rat as the subject. I am using the database that was created for rat specifically for this package from this paper: at this github link.
I updated the database as shown below:
then I read in my seurat object and did the following:
[1] "Create a CellChat object from a Seurat object"
The
meta.data
slot in the Seurat object is used as cell meta informationWarning in createCellChat(object = seurat_object, group.by = "ident", assay = "SCT") :
The 'meta$samples' is not a factor. We now force it as a factor!
Set cell identities for the new CellChat object
The cell groups used for CellChat analysis are Oligodendrocytes, Excitatory Neurons, Inhibitory Neurons, Oligodendrocyte Precursors, Microglia, Astrocytes, Endothelial
When I get here: cellChat <- subsetData(cellChat) # This step is necessary even if using the whole database
I get this error:
Issue identified!! Please check the official Gene Symbol of the following genes:
NA
Issue identified!! Please check the official Gene Symbol of the following genes:
NA
Can you provide any clarity about what SubsetData does exactly?
The text was updated successfully, but these errors were encountered: