Re-assigns the identity classes according to the average expression of a particular feature (i.e, gene expression, or PC score) Very useful after clustering, to re-order cells, for example, based on PC scores
ReorderIdent(object, feature = "PC1", rev = FALSE, aggregate.fxn = mean,
reorder.numeric = FALSE, ...)
Seurat object
Feature to reorder on. Default is PC1
Reverse ordering (default is FALSE)
Function to evaluate each identity class based on (default is mean)
Rename all identity classes to be increasing numbers starting from 1 (default is FALSE)
additional arguemnts (i.e. use.imputed=TRUE)
A seurat object where the identity have been re-oredered based on the average.