rezakj / iCellR

Single (i) Cell R package (iCellR) is an interactive R package to work with high-throughput single cell sequencing technologies (i.e scRNA-seq, scVDJ-seq, scATAC-seq, CITE-Seq and Spatial Transcriptomics (ST)).
120 stars 19 forks source link

Labelling cells with cluster #23

Closed nicholascwho closed 4 years ago

nicholascwho commented 4 years ago

Hi @rezakj

Thanks again for this resource. I was wondering if there is any function or iCellR object parameter that can label each cell with the specific cluster?

Thank you!

rezakj commented 4 years ago

Let's say cluster 7 is "B cells" and instead of 7 you want it to show B Cells:

my.obj <- change.clust(my.obj, change.clust = 7, to.clust = "7-B_Cells")

nicholascwho commented 4 years ago

Hi @rezakj

Thank you. What about finding all the cells within each cluster? What I mean is: once i get each cluster, how can I know which of the cells from the scRNAseq data belong to which cluster? For example, if I have a cluster of B cells, I would like to know the specific cell IDs that belong to the B cell cluster.

Thanks!

rezakj commented 4 years ago
cell.cluster <- (my.obj@best.clust)
head(cell.cluster)
nicholascwho commented 4 years ago

That works! Thank you!