addMonocleTrajectory | R Documentation |
This function will add a trajectory from a monocle CDS created from getMonocleTrajectories
to an
ArchRProject.
addMonocleTrajectory(
ArchRProj = NULL,
name = "Trajectory",
useGroups = NULL,
groupBy = "Clusters",
monocleCDS = NULL,
force = FALSE
)
ArchRProj |
An |
name |
A string indicating the name of the fitted trajectory to be added in |
useGroups |
The cell groups to be used for creating trajectory analysis. |
groupBy |
A string indicating the column name from |
monocleCDS |
A monocle CDS object created from |
force |
A boolean value indicating whether to force the trajactory indicated by |
# 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 Monocole Trajectory
proj <- addMonocleTrajectory(
ArchRProj = proj,
name = "Trajectory_Monocole",
useGroups = c("C1", "C2", "C3"),
monocleCDS = cds
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.