dviraran / SingleR

SingleR: Single-cell RNA-seq cell types Recognition (legacy version)
GNU General Public License v3.0
260 stars 95 forks source link

Annotate Seurat object of several patients #157

Open LeaLe88 opened 7 months ago

LeaLe88 commented 7 months ago

Good afternoon,

I would like to annotate the cells in my Seurat object. It was simple when I had one patient in my Seurat object with:

pbmc_counts_1 <- GetAssayData(kid.filtered, slot = 'counts.Patient_1')

pred <- SingleR(test = pbmc_counts_1,
        ref = ref,
        labels = ref$label.main)

However, how do I do it with several patients? I would also like to annotate based on the counts of patients 2, 3,etc.: Seurat Please post issues in https://github.com/LTLA/SingleR

Thank you very much for any input!