TrajectoryΒΆ

Principal-curve and principal-tree trajectory inference and pseudotime.

trajectory.get_curve

Compute a smooth linear trajectory (t) in [0, 1] via principal graph fitted onto the given manifold (adata.obsm[use_rep]); Use optional marker to rotate the (+/-) sign of the trajectory s.t.

trajectory.get_tree

Compute a tree-like trajectory via elastic principal graph fitted onto the given manifold (adata.obsm[use_rep]).

trajectory.compute_pseudotime

Compute pseudotime (t) in [0, 1] along the given principal graph fitted onto the latent space (adata.obsm[use_rep]); Use optional marker to rotate the (+/-) sign of the trajectory at which the root_marker enriches

trajectory.sort_nodes

Compute principal node ordering from root to term

trajectory.prune_tree

Remove unwanted tips by calling scf.tl.cleanup and return the node index mapping.

trajectory.get_cell_projections

Assign each cell to the closest principal graph edges