SplitSeurat | R Documentation |
Split a seurat object, dividing into new objects based on the value of a field
SplitSeurat(
seuratObj,
splitField,
minCellsToKeep = 0.02,
naOtherLabel = "Other",
excludedClasses = NULL,
appendLowFreqToOther = TRUE,
alwaysRetainOtherClass = FALSE
)
seuratObj |
The seurat object |
splitField |
The name of the field on which to split the object |
minCellsToKeep |
If any of the resulting seurat objects have less than this many cells, they will be discarded. If this value is less than 1, it will be interpreted as a fraction of the total input cells. |
naOtherLabel |
This string will be used to label any cells marked NA. |
excludedClasses |
Any cells with these labels will be lumped into the NA/Other bin. |
appendLowFreqToOther |
If true, any cells with NAs for the splitField, or terms with fewer than minCellsToKeep, will be merged into a single seurat object |
alwaysRetainOtherClass |
If true, even if the number of cells is less than minCellsToKeep, this class with be retained. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.