fixZeroIndexing.seurat | R Documentation |
Adjusts Seurat object metadata to fix zero-based cluster indexing, converting it to one-based indexing. This function modifies a specified metadata column in the Seurat object to replace zero-indexed cluster names with one-based indexing.
fixZeroIndexing.seurat(ColName.metadata = "res.0.6", obj = org)
ColName.metadata |
The name of the metadata column containing zero-based cluster indices. Default: |
obj |
The Seurat object to be modified. Default: |
The Seurat object with the specified metadata column's cluster indices adjusted to one-based indexing.
## Not run:
if (interactive()) {
# Assuming `org` is a Seurat object with zero-based cluster indexing
org <- fixZeroIndexing.seurat(ColName.metadata = "res.0.6", obj = org)
# Now, `org` has its cluster indices in the 'res.0.6' metadata column adjusted to one-based indexing
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.