Return a list of genes with the strongest contribution to a set of components
DimTopCells(object, dim.use = 1, reduction.type = "pca", num.cells = NULL,
do.balanced = FALSE)
Seurat object
Components to use
Dimensional reduction to find the highest score for
Number of cells to return
Return an equal number of cells with both + and - scores.
Returns a vector of cells
# NOT RUN {
pbmc_small
head(DimTopCells(object = pbmc_small, reduction.type = "pca"))
# Can specify which dimension and how many cells to return
DimTopCells(object = pbmc_small, reduction.type = "pca", dim.use = 2, num.cells = 5)
# }
Run the code above in your browser using DataLab