Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sampleModes docs fix #1318

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions prody/dynamics/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ def sampleModes(modes, atoms=None, n_confs=1000, rmsd=1.0):

:math:`R_0` is the active coordinate set of *atoms*.
:math:`[r_1^k r_2^k ... r_m^k]` are normally distributed random numbers
generated for conformation :math:`k` using :func:`numpy.random.randn`.
generated for conformation :math:`k` using :func:`~numpy.random.randn`.

RMSD of the new conformation from :math:`R_0` can be calculated as

.. math::

RMSD^k = \\sqrt{ {\\left( s \\sum_{i=1}^{m} r_i^k \\lambda^{-0.5}_i u_i \\right)}^{2} / N } = \\frac{s}{ \\sqrt{N}} \\sqrt{ \\sum_{i=1}^{m} (r_i^k)^2 \\lambda^{-1}_i }
RMSD^k = \\sqrt{ {\\left( s \\sum_{i=1}^{m} r_i^k \\lambda^{-0.5}_i u_i \\right) }^{2} / N } = \\frac{s}{ \\sqrt{N}} \\sqrt{ \\sum_{i=1}^{m} (r_i^k)^2 \\lambda^{-1}_i }


Average :math:`RMSD` of the generated conformations from the initial conformation is:
Expand Down