getMonocleTrajectories | R Documentation |
This function will use monocle3 to find trajectories and then returns a monocle CDS object that can be used as
input for addMonocleTrajectory
.
getMonocleTrajectories(
ArchRProj = NULL,
name = "Trajectory",
useGroups = NULL,
principalGroup = NULL,
groupBy = NULL,
embedding = NULL,
clusterParams = list(),
graphParams = list(),
seed = 1
)
ArchRProj |
An |
name |
A string indicating the name of the fitted trajectory. |
useGroups |
A character vector that is used to select a subset of groups by name from the designated |
principalGroup |
The principal group which represents the group that will be the starting point for all trajectories. |
groupBy |
A string indicating the column name from |
embedding |
A string indicating the name of the |
clusterParams |
A list of parameters to be added when clustering cells for monocle3 with |
graphParams |
A list of parameters to be added when learning graphs for monocle3 with |
seed |
A number to be used as the seed for random number generation for trajectory creation. |
# Get Test ArchR Project
proj <- getTestProject()
#Create Monocole Trajectory
cds <- getMonocleTrajectories(
ArchRProj = proj,
useGroups = c("C1", "C2", "C3"),
principalGroup = "C1",
groupBy = "Clusters",
embedding = "UMAP"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.