Hi
I'm quite confused what's the workflow after I get the output from singleR output. I have 3 groups scRNAseq data(4 control, 8 treatment1, 8 treatment2), and my goal is to give cell type annotation for each group. And now, I just learned how to perform QC, normalization, dimension reduction, and singleR for one dataset. To give the cell type for each group, should I integrate datasets within each group separately, and then using singleR? specifically, how to assign the cell type to each cluster on my tSNE plot for each group?
I really appreciate any comment, thank you.
I believe, you have a seurat object with 3 groups with barcodes. If this is the case, it's straight forward, get singleR predictions on each cell and add this to seurat object's meta.data.
Here is an example,
HCA <- HumanPrimaryCellAtlasData() # human cell atlas dataset (ref for singleR prediction)
sobj_counts <- as.SingleCellExperiment(sobj) # sobj is seurat object
sobj_counts <- logNormCounts(sobj_counts)
hca.predict <- SingleR(sobj_counts, ref = HCA, labels = HCA$label.main)
Add predicted data as metadata to the seurat object
sobj[["HCA"]] <- hca.predict$labels
dimplot
DimPlot(sobj, group.by = c("HCA","sample_types), reduction = "tsne/umap",label =T/F)
moreover, you can split by = "sample types to view the predictions
I hope this helps!
Best, SG