addTrajectory.Rd
This function will fit a supervised trajectory in a lower dimensional space that can then be used for downstream analyses.
addTrajectory(
ArchRProj = NULL,
name = "Trajectory",
trajectory = NULL,
groupBy = "Clusters",
reducedDims = "IterativeLSI",
embedding = NULL,
preFilterQuantile = 0.9,
postFilterQuantile = 0.9,
useAll = FALSE,
dof = 250,
spar = 1,
force = FALSE,
seed = 1,
logFile = createLogFile("addTrajectory")
)
An ArchRProject
object.
A string indicating the name of the fitted trajectory to be added in cellColData
.
The order of cell groups to be used for constraining the initial supervised fitting procedure. For example, to get a trajectory from Cluster1 to Cluster2 to Cluster3, input should be c("Cluster1", "Cluster2", "Cluster3"). Cells will then be used from these 3 groups to constrain an initial fit in the group order.
A string indicating the column name from cellColData
that contains the cell group definitions used in
trajectory
to constrain the initial supervised fitting procedure.
A string indicating the name of the reducedDims
object from the ArchRProject
that should be used for distance computation.
A string indicating the name of the embedding
object from the ArchRProject
that should be used for distance computation.
Prior to the initial supervised trajectory fitting, cells whose euclidean distance from the cell-grouping center is above the provided quantile will be excluded.
After initial supervised trajectory fitting, cells whose euclidean distance from the cell-grouping center is above the provided quantile will be excluded.
A boolean describing whether to use cells outside of trajectory groups for post-fitting procedure.
The number of degrees of freedom to be used in the spline fit. See stats::smooth.spline()
for more information.
The sparsity to be used in the spline fit. See stats::smooth.spline()
for more information.
A boolean value indicating whether to force the trajactory indicated by name
to be overwritten if it already exists in the given ArchRProject
.
A number to be used as the seed for random number generation for trajectory creation.
The path to a file to be used for logging ArchR output.