Skip to content

Commit 655cbb8

Browse files
authored
Merge pull request #164 from marscher/nb56_review
[nb05] motivate pcca usage, destinct hmm
2 parents e60d0f4 + 4b24871 commit 655cbb8

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

notebooks/05-pcca-tpt.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88
"\n",
99
"<a rel=\"license\" href=\"http://creativecommons.org/licenses/by/4.0/\"><img alt=\"Creative Commons Licence\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by/4.0/88x31.png\" title='This work is licensed under a Creative Commons Attribution 4.0 International License.' align=\"right\"/></a>\n",
1010
"\n",
11-
"In this notebook, we will cover how to use PCCA++ to extract a coarse representation of the MSM. We will further investigate how to use TPT to follow the pathways of the processes.\n",
11+
"In this notebook, we will cover how to use PCCA++ to extract a coarse representation of the MSM. We will further investigate how to use transition path theory (TPT) to follow the pathways of the processes.\n",
12+
"When we want to analyze pathways, models with fewer states are more often desirable, since these are easier to understand. PCCA allows us to assign the microstates directly to metastable macrostates and TPT uses this group assignment to compute fluxes and pathways. \n",
13+
"\n",
14+
"\n",
15+
"Another method to get a model with viewer states are hidden Markov state models (HMM), introduced in notebook 07 [➜ 📓](07-hidden-markov-state-models.ipynb). In contrast to computing memberships of microstates to meta stable sets as in PCCA, in HMMs we directly obtain a model with viewer states.\n",
16+
"\n",
17+
"\n",
1218
"Here you can find literature on the used methods:\n",
1319
"\n",
1420
"- <a id=\"ref-1\" href=\"#cite-pcca_plus_plus\">roeblitz-weber-14</a>\n",
@@ -45,7 +51,7 @@
4551
"metadata": {},
4652
"source": [
4753
"## Case 1: preprocessed, two-dimensional data (toy model)\n",
48-
"We start by loading the data and the previously analyzed MSM from disk:"
54+
"We start by loading the data and the previously analyzed MSM (estimated in notebook 04 [➜ 📓](04-msm-analysis.ipynb)) from disk:"
4955
]
5056
},
5157
{
@@ -67,7 +73,7 @@
6773
"cell_type": "markdown",
6874
"metadata": {},
6975
"source": [
70-
"We currently have an MSM with 50 discrete states which was validated for two metastable states in the previous notebook. Internally, the metastable states have been computed using the Perron Cluster Cluster Analysis (PCCA++) method <a id=\"ref-4\" href=\"#cite-pcca_plus_plus\">roeblitz-14</a>. Let's analyze this in more detail here. We can explicitly compute it by calling `msm.pcca()`:"
76+
"We currently have an MSM with 50 discrete states which was validated for two metastable states in the previous notebook. Internally, the metastable states have been computed using the Perron Cluster Cluster Analysis (PCCA++) method <a id=\"ref-4\" href=\"#cite-pcca_plus_plus\">roeblitz-14</a>. Let's analyze this in more detail here. We can explicitly compute it by calling `msm.pcca()`."
7177
]
7278
},
7379
{
@@ -259,6 +265,7 @@
259265
"bayesian_msm = pyemma.load('nb4.pyemma', model_name='ala2_bayesian_msm')\n",
260266
"cluster = pyemma.load('nb4.pyemma', model_name='ala2_cluster')\n",
261267
"\n",
268+
"# not to be used in MSM estimation (artificical transitions between individual trajectories)!\n",
262269
"dtrajs_concatenated = np.concatenate(cluster.dtrajs)"
263270
]
264271
},
@@ -314,7 +321,9 @@
314321
"source": [
315322
"PCCA++ nicely separates the high-density regions and we find that each of the basins was assigned a metastable set. This indicates that our projection indeed describes the slow dynamics.\n",
316323
"\n",
317-
"We concatenate all three discrete trajectories and obtain a single trajectory of metastable states which we use to visualize the metastable state memberships of all datapoints. We further compute the state with the highest membership to a PCCA metastable state to plot a state label there:"
324+
"We concatenate all three discrete trajectories and obtain a single trajectory of metastable states which we use to visualize the metastable state memberships of all datapoints. We further compute the state with the highest membership to a PCCA metastable state to plot a state label there.\n",
325+
"\n",
326+
"⚠️ Note that the concatenated discrete trajectories (dtrajs) are not meant to be used for MSM estimation (artificial transitions), but only for visualization and indexing purposes ⚠️"
318327
]
319328
},
320329
{
@@ -938,7 +947,7 @@
938947
"name": "python",
939948
"nbconvert_exporter": "python",
940949
"pygments_lexer": "ipython3",
941-
"version": "3.6.5"
950+
"version": "3.6.6"
942951
},
943952
"toc": {
944953
"base_numbering": 1,

notebooks/06-expectations-and-observables.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@
5353
"cell_type": "markdown",
5454
"metadata": {},
5555
"source": [
56-
"## Case 1: preprocessed, two-dimensional data (toy model)"
56+
"## Case 1: preprocessed, two-dimensional data (toy model)\n",
57+
"\n",
58+
"Again we estimate the MSM for the two-dimensional toy model to perform further analysis on."
5759
]
5860
},
5961
{
@@ -898,7 +900,7 @@
898900
"name": "python",
899901
"nbconvert_exporter": "python",
900902
"pygments_lexer": "ipython3",
901-
"version": "3.6.5"
903+
"version": "3.6.6"
902904
},
903905
"toc": {
904906
"base_numbering": 1,

0 commit comments

Comments
 (0)