msmbuilder.clustering.unconcatenate_trajectory

msmbuilder.clustering.unconcatenate_trajectory(trajectory, lengths)[source]

Take a single trajectory that was created by concatenating seperate trajectories and unconcenatenate it, returning the original trajectories.

You have to supply the lengths of the original trajectories.

Parameters:

trajectory : mdtraj.Trajectory

Long trajectory to be split

lengths : array_like

list of lengths to split the long trajectory into

Returns:

A list of trajectories :

Versions