This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to identify cell types using addModuleScore function?

Hello, there,

I am learning single-cell RNA-seq analysis using Seurat package. I have clustered cells into 12 clusters. Next, I want to identify the cell types of these cell clusters.

I read some paper using addModuleScore function based on the known cell markers. I did not find any example.

however, I do not know how to do identify cell types based on the scores as one cell cluster has several cell type scores. For example, cell cluster one got an average of 0.5 in stem cell score and 0.6 in bronchial epithelial cell score,should the cell cluster one be considered as bronchial epithelial cell?

Need your help very much

Thank you very much

single cell rna-seq

I have a recent answer on another question that may be helpful for you.

Thank you for this answer. However, I feel very hard to follow the answer as it was not an example.

There is not a magical answer with your current method - there is no way for us to tell you the appropriate score thresholds to use for your annotations. If you want an automated approach, you can try SingleR, garnet, or any of the various other automated methods.

1 answer

If a simple example is what your need, then this may be helpful.

data("pbmc_small")
cd_features <- list(c(
  'CD79B',
  'CD79A',
  'CD19',
  'CD180',
  'CD200',
  'CD3D',
  'CD2',
  'CD3E',
  'CD7',
  'CD8A',
  'CD14',
  'CD1C',
  'CD68',
  'CD9',
  'CD247'
))
pbmc_small <- AddModuleScore(
  object = pbmc_small,
  features = cd_features,
  ctrl = 5,
  name = 'CD_Features'
)
head(x = pbmc_small[])

Could you please comment, how changing the "ctrl = 5" flag in the function can affect the module score?

I imagine using only 5 control genes from each bin would add additional variability. I'd leave it at the default of 100. The differences may be minor in the resulting scores, but using only 5 would make them more susceptible to extremes within each bin.

The example here uses 5 because the pbmc_small dataset has been stripped down to only a handful of genes so that is could be shipped with the package.

Log in to answer this question.