msmbuilder.clustering.concatenate_prep_trajectories

msmbuilder.clustering.concatenate_prep_trajectories(prep_trajectories, metric)[source]

Concatenate a list of prepared trajectories and create a single prepared_trajectory.

This is non-trivial because the RMSD and LPRMSD prepared trajectories are not np.ndarrays ...

Parameters:

prep_trajectories : list

list of prepared trajectories

metric : msmbuilder.metrics.AbstractDistance metric subclass instance

metric used to prepare the trajectories. Needed for RMSD and LPRMSD since concatenation requires recreating the prepared trajectory

Returns:

ptraj : prepared_trajectory

prepared trajectory instance, like that returned from metric.prepare_trajectory

Versions