Skip to content
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
825751d
add nb
jhprinz Jul 11, 2016
aae55c5
nb update
jhprinz Jul 11, 2016
064e72f
Merge branch 'sepcvengine' into discreteengine
jhprinz Jul 12, 2016
4d20be5
nb update
jhprinz Jul 12, 2016
cc99198
Merge branch 'sepcvengine' into discreteengine
jhprinz Jul 12, 2016
49f8c63
Merge branch 'sepcvengine' into discreteengine
jhprinz Jul 21, 2016
16b56e6
add length logic
jhprinz Jul 22, 2016
930790d
add length logic
jhprinz Jul 22, 2016
838f82b
add length logic
jhprinz Jul 22, 2016
59f559e
add length logic
jhprinz Jul 22, 2016
5d6dec3
merge branch 'sepcvengine' into discreteengine
jhprinz Jul 28, 2016
e6af3bf
Merge branch 'sepcvengine' into discreteengine
jhprinz Aug 1, 2016
84bbe0f
Merge branch 'sepcvengine' into discreteengine
jhprinz Aug 1, 2016
017f932
update operators
jhprinz Aug 2, 2016
34599f2
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 2, 2016
3e380f5
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 3, 2016
94a67c3
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 3, 2016
6fe99f8
update
jhprinz Aug 3, 2016
e995b43
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 4, 2016
ab0a950
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 8, 2016
2f15faf
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 8, 2016
4d5a8e8
update nb
jhprinz Aug 9, 2016
285242a
update nb
jhprinz Aug 9, 2016
ce33c08
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 13, 2016
ae319ad
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 21, 2016
a68715e
Merge branch 'ala' into discreteengine
jhprinz Aug 21, 2016
c43722d
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 22, 2016
e44f5df
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Aug 23, 2016
cec58e6
add python versions
jhprinz Sep 21, 2016
d5587ad
add python versions
jhprinz Sep 22, 2016
f246394
update
jhprinz Sep 22, 2016
fc14caf
update
jhprinz Sep 22, 2016
83cbe0c
updates
jhprinz Sep 22, 2016
fefac6f
updates
jhprinz Sep 26, 2016
5c8aa98
updates
jhprinz Sep 27, 2016
f1dedef
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Sep 27, 2016
52ad894
fix
jhprinz Sep 27, 2016
13eeed0
little updates
jhprinz Sep 29, 2016
349ce98
filepath
jhprinz Sep 29, 2016
af2d572
little update
jhprinz Sep 29, 2016
67ffd1d
little update2
jhprinz Sep 29, 2016
178a7e2
add tcv
jhprinz Sep 29, 2016
4069ef2
Merge branch 'master' of github.com:choderalab/openpathsampling into hal
jhprinz Sep 30, 2016
9c39a3a
update
jhprinz Sep 30, 2016
fae515b
update
jhprinz Sep 30, 2016
107afc4
update
jhprinz Sep 30, 2016
678dcc1
unload context
jhprinz Sep 30, 2016
275ce7d
Merge branch 'master' of github.com:choderalab/openpathsampling into hal
jhprinz Oct 5, 2016
926a720
updates
jhprinz Oct 5, 2016
e3d73d6
updates
jhprinz Oct 5, 2016
440c4ba
updates
jhprinz Oct 5, 2016
8636b62
use GPU core
jhprinz Oct 5, 2016
c90746e
Merge remote-tracking branch 'openpathsampling/master' into hal
jhprinz Oct 18, 2016
e50a831
example update and unicode fix
jhprinz Oct 19, 2016
da1e1dd
Merge branch 'master' of github.com:choderalab/openpathsampling into hal
jhprinz Nov 7, 2016
81b213a
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Nov 10, 2016
a7b7627
Merge branch 'master' of github.com:choderalab/openpathsampling into hal
jhprinz Nov 21, 2016
05ef379
update strip snapshots
jhprinz Nov 21, 2016
b6b088b
update strip snapshots
jhprinz Nov 21, 2016
006af0a
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 21, 2016
cdef428
update
jhprinz Nov 22, 2016
86f8b9e
update
jhprinz Nov 22, 2016
cb85ad3
update
jhprinz Nov 22, 2016
b5301dc
update
jhprinz Nov 22, 2016
937b739
fix tests
jhprinz Nov 23, 2016
337a273
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Nov 23, 2016
8af2aa0
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 23, 2016
89dfce2
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 23, 2016
9f3894f
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 23, 2016
61f1846
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 23, 2016
1a49c37
fix iter
jhprinz Nov 24, 2016
6003cd1
fix iter
jhprinz Nov 25, 2016
722228c
add file to recreate a setup with new initial paths
jhprinz Nov 25, 2016
1122ba6
add file to recreate a setup with new initial paths
jhprinz Nov 25, 2016
851f3d2
fix
jhprinz Nov 28, 2016
75b728d
remove print
jhprinz Nov 28, 2016
feb87c2
Merge branch 'onlyuuid' into haluuid
jhprinz Nov 28, 2016
76d36cb
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Dec 8, 2016
5b4beb3
allow multiple CV caches
jhprinz Dec 8, 2016
b4437cf
allow multiple CV caches
jhprinz Dec 8, 2016
ee63e90
fix glitch in transition
jhprinz Dec 8, 2016
f57db03
fix periodic distance function
jhprinz Dec 9, 2016
b51754a
fix periodic distance function
jhprinz Dec 9, 2016
f2b4a41
fix CUDA
jhprinz Dec 9, 2016
2169861
fix CUDA
jhprinz Dec 9, 2016
248883d
fix multi file
jhprinz Dec 9, 2016
be7d064
little cleanup
jhprinz Dec 9, 2016
099f584
Merge branch 'master' of github.com:choderalab/openpathsampling into …
jhprinz Dec 12, 2016
6ef291b
Merge branch 'onlyuuid' into haluuid
jhprinz Dec 12, 2016
e0862cd
Merge branch 'onlyuuid' into haluuid
jhprinz Dec 14, 2016
6ffd105
little updates
jhprinz Dec 14, 2016
11a98c5
fix ala example
jhprinz Dec 15, 2016
1a1a4e1
fix split
jhprinz Dec 15, 2016
da8ad63
joint script
jhprinz Dec 16, 2016
4776d05
update
jhprinz Dec 16, 2016
43bf55b
fix
jhprinz Dec 16, 2016
2706acc
smaller cutoff for WHAM
jhprinz Jan 3, 2017
a43e3da
Merge branch 'haluuid' into discreteengine
jhprinz Jan 10, 2017
b368d1d
little fixes
jhprinz Jan 14, 2017
8dacf21
Merge branch 'fixpmload' into discreteengine
jhprinz Mar 13, 2017
7da7d1d
Merge branch 'python3-jhp' into discreteengine
jhprinz Aug 13, 2017
bfbc703
updated NB
jhprinz Aug 14, 2017
17bd8ac
Merge branch 'master' into discreteengine
jhprinz Aug 14, 2017
609c838
fix travis.yml
jhprinz Aug 15, 2017
e67f705
Merge branch 'py3-fixes-1' into discreteengine
jhprinz Aug 15, 2017
7e2b343
nb changes
jhprinz Aug 16, 2017
00a8944
Merge branch 'master' into discreteengine
jhprinz Jun 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devtools/conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package:
name: openpathsampling-dev
version: "0.9.1"
version: "0.9.2"

source:
# git_url: ../../.git
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
# built documents.
#
# The short X.Y version.
version = '0.9.1'
version = '0.9.2'
# The full version, including alpha/beta/rc tags.
release = '0.9.1'
release = '0.9.2'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
8 changes: 5 additions & 3 deletions docs/examples/miscellaneous/committors.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
.. basic_committor::

Basic Committor/Shooting Point Analysis
=======================================

This notebook shows some basics on how to use the committor simulation and
how to use the shooting point analysis.

.. note:: A more details example of a committor analyis is coming soon.
how to use the shooting point analysis. A more detailed example, showing how
to perform a committor analysis on alanine dipeptide based on the results of
a TPS simulation, is included in :ref:`this example <ad_committor>`.

-----

Expand Down
46 changes: 46 additions & 0 deletions docs/examples/miscellaneous/committors_alanine_dipeptide.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
.. ad_committor::

Committor Simulation and Analysis for Alanine Dipeptide
=======================================================

This sequence of notebooks provides an example of how to calculate the
committor for a real biomolecular system (alanine dipeptide).

The first notebook deals with selecting the snapshots to use as starting
points for the committor. In this particular case, we didn't care about the
statistics of those points, so we select them directly from ``storage``.
This is because these points were being harvested as part of an approach to
estimate the committor at any given point. If you need the statistics of
those points within the TPS ensemble, e.g., for the transition state
ensemble, then you should select your points differently (by looping over
``storage.steps`` and taking the ``active`` sample set).

The second notebook runs the committor simulation. The third notebook
prepares the analysis data in a way that was needed for this particular
project, where each "shot" of the committor was treated as a separate
"experiment." While this approach is not normally needed, if you already
have data that can easily be put into this format, the fourth notebook shows
how it can be used to construct a :class:`.ShootingPointAnalysis` object.
That notebook also proceeds to demonstrate the kinds of analysis that object
can perform.

-----

.. notebook:: examples/misc/alanine_dipeptide_committor/1_select_snapshots.ipynb
:skip_exceptions:

-----

.. notebook:: examples/misc/alanine_dipeptide_committor/2_committor_simulation.ipynb
:skip_exceptions:

-----

.. notebook:: examples/misc/alanine_dipeptide_committor/3_committor_analysis.ipynb
:skip_exceptions:

-----

.. notebook:: examples/misc/alanine_dipeptide_committor/4_analysis_help.ipynb
:skip_exceptions:

3 changes: 3 additions & 0 deletions examples/misc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ aspects of OpenPathSampling.
* [`committors.ipynb`](http://github.com/openpathsampling/openpathsampling/blob/master/examples/misc/committors.ipynb)
How to use OPS for committor analysis, and to analyze the shooting points
from a path sampling simulation.
* [`alanine_dipeptide_committor`](http://github.com/openpathsampling/openpathsampling/blob/master/examples/misc/alanine_dipeptide_committor/)
A sequence of several files to perform a committor simulation and analyze
it for a real system.
* [`custom_strategy_repex_shoot_repex.ipynb`](http://github.com/openpathsampling/openpathsampling/blob/master/examples/misc/custom_strategy_repex_shoot_repex.ipynb)
How to make a custom move strategy and custom mover, and then compare
measures of replica travel between two different move schemes.
Expand Down
201 changes: 201 additions & 0 deletions examples/misc/alanine_dipeptide_committor/1_select_snapshots.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Select Snapshots\n",
"\n",
"This notebook will take an old (and large) TPS simulation file, select some snapshots to use as input data.\n",
"\n",
"Note: this first version is quick and dirty. There might be some points to consider to select better snapshots. But this is just intended to get initial data to our colleagues."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"import openpathsampling as paths\n",
"import random"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 20.7 s, sys: 6.48 s, total: 27.2 s\n",
"Wall time: 2min 10s\n"
]
}
],
"source": [
"%%time\n",
"storage = paths.Storage(\"alanine_dipeptide_tps.nc\", \"r\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"17.95GB\n"
]
}
],
"source": [
"print storage.file_size_str"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"946650\n"
]
}
],
"source": [
"n_snapshots = len(storage.snapshots)\n",
"print n_snapshots"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"stateA = storage.volumes['C_7eq']\n",
"stateB = storage.volumes['alpha_R']"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we do the main calculation: every snapshot must not be in a state, and we never re-use a snapshot. (In other words, randomly chosen without replacement.)\n",
"\n",
"In addition, OPS snapshots are always listed in pairs, with velocities reversed. (The data is only stored once, but both can be accessed directly from the snapshot storage.) Because of this, we'll make sure we only take the even-numbered snapshots."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 16.4 s, sys: 452 ms, total: 16.8 s\n",
"Wall time: 1min 1s\n"
]
}
],
"source": [
"%%time\n",
"snapshots = []\n",
"while len(snapshots) < 1000:\n",
" random_choice = random.randint(0, (n_snapshots/2)-1)\n",
" snap = storage.snapshots[random_choice*2]\n",
" if not stateA(snap) and not stateB(snap) and snap not in snapshots:\n",
" snapshots.append(snap)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"new_store = paths.Storage(\"snapshots.nc\", \"w\")"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"new_store.save(snapshots);"
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"# save the old engine because we'll re-use its topology later\n",
"new_store.save(storage.engines[0]);"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"new_store.sync()\n",
"new_store.close()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
Loading