-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* partially address #73 * add df_state plotting code in in new visualisation.dF_state, based on alchemical-analysis.py * add test * Update CHANGES
- Loading branch information
1 parent
79e2a91
commit 0c6545f
Showing
7 changed files
with
344 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
docs/visualisation/alchemlyb.visualisation.plot_dF_state.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _visualisation_plot_dF_state: | ||
|
||
Plot dF states from multiple estimators | ||
======================================= | ||
|
||
The function :func:`~alchemlyb.visualisation.plot_dF_state` allows the user to | ||
plot and compare the free energy difference between states ("dF") from various | ||
kinds of :class:`~alchemlyb.estimators`. | ||
|
||
To compare the dF states of a single alchemical transformation among various | ||
:class:`~alchemlyb.estimators`, the user can pass a list of `estimators`. (e.g. | ||
`estimators` = [:class:`~alchemlyb.estimators.TI`, | ||
:class:`~alchemlyb.estimators.BAR`, :class:`~alchemlyb.estimators.MBAR`]) | ||
|
||
To compare the dF states of a multiple alchemical transformations, results from | ||
the same :class:`~alchemlyb.estimators` can be concatenated into a list, which | ||
is then bundled to to another list of different :class:`~alchemlyb.estimators`. | ||
(e.g. `estimators` = [(:class:`~alchemlyb.estimators.TI`, | ||
:class:`~alchemlyb.estimators.TI`), (:class:`~alchemlyb.estimators.BAR`, | ||
:class:`~alchemlyb.estimators.BAR`), (:class:`~alchemlyb.estimators.MBAR`, | ||
:class:`~alchemlyb.estimators.MBAR`)]) | ||
|
||
The figure could be plotted in *portrait* or *landscape* mode by setting the | ||
`orientation`. `nb` is used to control the number of dF states in one row. | ||
The user could pass a list of strings to `labels` to name the | ||
:class:`~alchemlyb.estimators` or a list of strings to `colors` to color | ||
the estimators differently. The unit in the y axis could be labelled to other | ||
units by setting `units`, which by default is kcal/mol. | ||
|
||
Please check :ref:`How to plot dF states <plot_dF_states>` for a complete | ||
example. | ||
|
||
API Reference | ||
------------- | ||
.. autofunction:: alchemlyb.visualisation.plot_dF_state |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
from .mbar_matrix import plot_mbar_overlap_matrix | ||
from .ti_dhdl import plot_ti_dhdl | ||
from .ti_dhdl import plot_ti_dhdl | ||
from .dF_state import plot_dF_state |
Oops, something went wrong.