timescales
Set of functions for analyzing the MD trajectory.
This submodule contains methods for estimating various timescales based on a given state trajectory.
estimate_waiting_times(trajs, start, final)
¶
Estimates waiting times between stated states.
The stated states (from/to) will be treated as a basin. The function calculates all transitions from first entering the start-basin until first reaching the final-basin.
Parameters:
-
trajs
(statetraj or list or ndarray or list of ndarray
) –State trajectory/trajectories. The states should start from zero and need to be integers.
-
start
(int or list of
) –States to start counting.
-
final
(int or list of
) –States to start counting.
Returns:
-
wt
(ndarray
) –List of waiting times, given in frames.
Source code in src/msmhelper/md/timescales.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
|
estimate_paths(trajs, start, final)
¶
Estimates paths and waiting times between stated states.
The stated states (from/to) will be treated as a basin. The function calculates all transitions from first entering the start-basin until first reaching the final-basin. The results will be listed by the corresponding pathways, where loops are removed occuring first.
Parameters:
-
trajs
(statetraj or list or ndarray or list of ndarray
) –State trajectory/trajectories. The states should start from zero and need to be integers.
-
start
(int or list of
) –States to start counting.
-
final
(int or list of
) –States to start counting.
Returns:
-
paths
(dict
) –Dictionary containing the the paths as keys and and an array holding the times of all paths as value.
Source code in src/msmhelper/md/timescales.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
|