OrderCellClusters: Automatic ordering of cell clusters based on cluster...

View source: R/OrderCellClusters.R

OrderCellClustersR Documentation

Automatic ordering of cell clusters based on cluster composition

Description

This function orders cell clusters by a column in the seurat metadata. i.e. sort seurat clusters by their developmental stage, with clusters shared between stages ordered in between those stages

Usage

OrderCellClusters(seurat_object, col_to_sort, sort_by)

Arguments

seurat_object

Seurat object

col_to_sort

seurat_object@meta.data column to be re-arranged (i.e. clusters). Only rearrange cluster if at least 10% of cells in cluster are from a different identity

sort_by

array containing factor levels passed to col_to_sort (i.e. developmental stage)

Value

array of cluster IDs automatically ordered based on their composition


alexthiery/scHelper documentation built on Aug. 26, 2023, 3:42 p.m.