pyqmmm.md.cluster_frame_indexer¶
This script will find all frames in the main cluster and condense them.
Module Contents¶
Functions¶
|
Opens the CPPTraj cnumvtime.dat file, |
|
|
|
Condenses the frame indices of a clustered MD run into a single string. |
- pyqmmm.md.cluster_frame_indexer.get_clusters(file)[source]¶
Opens the CPPTraj cnumvtime.dat file, which contains every frame and its assigned cluster. Creates a list containing the indices of all frames in cluster 0, which will always be the predominant cluster.
- Parameters:
file (str) – The file containing the cluster assignments for every frame.
- Returns:
cluster_list – A list of all the frame indices from cluster 0.
- Return type:
list