addSlingShotTrajectories | R Documentation |
This function will fit a supervised trajectory in a lower dimensional space that can then be used for downstream analyses.
addSlingShotTrajectories(
ArchRProj = NULL,
name = "SlingShot",
useGroups = NULL,
principalGroup = NULL,
groupBy = NULL,
embedding = NULL,
reducedDims = NULL,
force = FALSE,
seed = 1
)
ArchRProj |
An |
name |
A string indicating the name of the fitted trajectory to be added in |
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 |
reducedDims |
A string indicating the name of the |
force |
A boolean value indicating whether to force the trajactory indicated by |
seed |
A number to be used as the seed for random number generation for trajectory creation. |
# Get Test ArchR Project
proj <- getTestProject()
#Add SlingShot Trajectory
proj <- addSlingShotTrajectories(
ArchRProj = proj,
name = "Trajectory_SlingShot",
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.