selectTrajectory {CellTrails} | R Documentation |
Retains a single component of a trajectory graph.
selectTrajectory(sce, component)
sce |
A |
component |
Number of component to be selected |
The construction of a trajectory graph may result in a forest
having multiple tree components, which may represent individual
trajectories or isolated nodes. This method should be used to extract a
single component from the graph. A component is
identified by its (integer) number.
Diagnostic messages
An error is thrown if the states have not been connected yet;
function connectStates
needs to be called first. An
error is thrown if an unknown component (number) is selected.
An updated SingleCellExperiment
object
Daniel C. Ellwanger
connectStates
findStates
states
# Example data data(exSCE) # Select trajectory exSCE <- selectTrajectory(exSCE, component=1)