welch-lab / liger

R package for integrating and analyzing multiple single-cell datasets
GNU General Public License v3.0
381 stars 78 forks source link

rename clusters to celltypes #220

Closed deevdevil88 closed 3 years ago

deevdevil88 commented 3 years ago

Hi , is there a way to rename the clusters variable to celltypes manually ? can i just rename the factor and will that work?

Thanks Devika

skpalan commented 3 years ago

Of course! The @clusters slot of a LIGER object stores a typical R factor object, you can make any modifications you prefer. Just be aware that the names of the @clusters slot should correpond to the barcodes of the input datasets stored in @raw.data and @norm.data slots.