SeuratWrappers provides two-way conversion between Seurat objects and Monocle 3Documentation Index
Fetch the complete documentation index at: https://mintlify.com/satijalab/seurat-wrappers/llms.txt
Use this file to discover all available pages before exploring further.
cell_data_set objects.
as.cell_data_set()
Converts a Seurat object to a Monocle 3cell_data_set for trajectory analysis.
Syntax
Parameters
A Seurat object to convert.
Assay to use. Defaults to the active default assay.
Names of dimensional reductions to transfer. Defaults to all reductions associated with
assay plus global reductions.Name of the reduction to use as the primary clustering reduction in Monocle 3. Defaults to the default DimReduc (UMAP > tSNE > PCA).
Name of the nearest-neighbor graph to transfer for clustering. Defaults to
<assay>_snn.Metadata column to use for cell identities. If
NULL, uses the active Seurat identities.What gets transferred
| Seurat | Monocle 3 | Notes |
|---|---|---|
Embeddings | reducedDims | Names uppercased (e.g., umap → UMAP) |
| Feature loadings | reduce_dim_aux$gene_loadings | Last reduction only |
Stdev | reduce_dim_aux$prop_var_expl | Last reduction only |
| Seurat clusters | clusters slot | With nearest-neighbor graph |
monocle3_clusters / monocle3_partitions metadata | clusters slot | If present, used directly |
as.Seurat.cell_data_set()
Converts a Monocle 3cell_data_set back to a Seurat object.
Syntax
Parameters
A Monocle 3
cell_data_set object.Name of the assay in the
cell_data_set to use as counts.Name for the assay in the resulting Seurat object.
Name of the reduction to transfer gene loadings into. Defaults to the first reduction containing
"pca" (case-insensitive). Pass NA to suppress loadings transfer.Name of the Monocle clustering method to use for Seurat identities. Defaults to
DefaultDimReduc(object).What gets transferred back
| Monocle 3 | Seurat | Notes |
|---|---|---|
reduce_dim_aux$gene_loadings | Loadings of loadings reduction | |
| Monocle clusters | Active identity + monocle3_clusters metadata | |
| Monocle partitions | monocle3_partitions metadata | |
| Monocle pseudotime | monocle3_pseudotime metadata | |
| Nearest-neighbor graph | <assay>_monocle3_graph | Converted to Seurat Graph |