From 7e0c844aadda4d3ca75ebe2d52af1fe7d083252a Mon Sep 17 00:00:00 2001 From: <> Date: Wed, 17 Apr 2024 14:08:40 +0000 Subject: [PATCH] Deployed 73c9799 with MkDocs version: 1.5.3 --- .nojekyll | 0 404.html | 641 ++ TRRDFs/index.html | 1902 +++++ assets/_mkdocstrings.css | 114 + assets/images/favicon.png | Bin 0 -> 1870 bytes assets/javascripts/bundle.3220b9d7.min.js | 29 + assets/javascripts/bundle.3220b9d7.min.js.map | 7 + assets/javascripts/lunr/min/lunr.ar.min.js | 1 + assets/javascripts/lunr/min/lunr.da.min.js | 18 + assets/javascripts/lunr/min/lunr.de.min.js | 18 + assets/javascripts/lunr/min/lunr.du.min.js | 18 + assets/javascripts/lunr/min/lunr.el.min.js | 1 + assets/javascripts/lunr/min/lunr.es.min.js | 18 + assets/javascripts/lunr/min/lunr.fi.min.js | 18 + assets/javascripts/lunr/min/lunr.fr.min.js | 18 + assets/javascripts/lunr/min/lunr.he.min.js | 1 + assets/javascripts/lunr/min/lunr.hi.min.js | 1 + assets/javascripts/lunr/min/lunr.hu.min.js | 18 + assets/javascripts/lunr/min/lunr.hy.min.js | 1 + assets/javascripts/lunr/min/lunr.it.min.js | 18 + assets/javascripts/lunr/min/lunr.ja.min.js | 1 + assets/javascripts/lunr/min/lunr.jp.min.js | 1 + assets/javascripts/lunr/min/lunr.kn.min.js | 1 + assets/javascripts/lunr/min/lunr.ko.min.js | 1 + assets/javascripts/lunr/min/lunr.multi.min.js | 1 + assets/javascripts/lunr/min/lunr.nl.min.js | 18 + assets/javascripts/lunr/min/lunr.no.min.js | 18 + assets/javascripts/lunr/min/lunr.pt.min.js | 18 + assets/javascripts/lunr/min/lunr.ro.min.js | 18 + assets/javascripts/lunr/min/lunr.ru.min.js | 18 + assets/javascripts/lunr/min/lunr.sa.min.js | 1 + .../lunr/min/lunr.stemmer.support.min.js | 1 + assets/javascripts/lunr/min/lunr.sv.min.js | 18 + assets/javascripts/lunr/min/lunr.ta.min.js | 1 + assets/javascripts/lunr/min/lunr.te.min.js | 1 + assets/javascripts/lunr/min/lunr.th.min.js | 1 + assets/javascripts/lunr/min/lunr.tr.min.js | 18 + assets/javascripts/lunr/min/lunr.vi.min.js | 1 + assets/javascripts/lunr/min/lunr.zh.min.js | 1 + assets/javascripts/lunr/tinyseg.js | 206 + assets/javascripts/lunr/wordcut.js | 6708 +++++++++++++++++ .../workers/search.b8dbb3d2.min.js | 42 + .../workers/search.b8dbb3d2.min.js.map | 7 + assets/stylesheets/main.66ac8b77.min.css | 1 + assets/stylesheets/main.66ac8b77.min.css.map | 1 + assets/stylesheets/palette.06af60db.min.css | 1 + .../stylesheets/palette.06af60db.min.css.map | 1 + citation/index.html | 719 ++ examples/index.html | 710 ++ helpers/index.html | 1380 ++++ index.html | 1057 +++ javascripts/mathjax.js | 24 + objects.inv | 5 + readme.org | 176 + references/index.html | 717 ++ search/search_index.json | 1 + sitemap.xml | 3 + sitemap.xml.gz | Bin 0 -> 127 bytes trrdf.svg | 3 + vanhove/index.html | 1448 ++++ 60 files changed, 16190 insertions(+) create mode 100644 .nojekyll create mode 100644 404.html create mode 100644 TRRDFs/index.html create mode 100644 assets/_mkdocstrings.css create mode 100644 assets/images/favicon.png create mode 100644 assets/javascripts/bundle.3220b9d7.min.js create mode 100644 assets/javascripts/bundle.3220b9d7.min.js.map create mode 100644 assets/javascripts/lunr/min/lunr.ar.min.js create mode 100644 assets/javascripts/lunr/min/lunr.da.min.js create mode 100644 assets/javascripts/lunr/min/lunr.de.min.js create mode 100644 assets/javascripts/lunr/min/lunr.du.min.js create mode 100644 assets/javascripts/lunr/min/lunr.el.min.js create mode 100644 assets/javascripts/lunr/min/lunr.es.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.fr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.he.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hu.min.js create mode 100644 assets/javascripts/lunr/min/lunr.hy.min.js create mode 100644 assets/javascripts/lunr/min/lunr.it.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ja.min.js create mode 100644 assets/javascripts/lunr/min/lunr.jp.min.js create mode 100644 assets/javascripts/lunr/min/lunr.kn.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ko.min.js create mode 100644 assets/javascripts/lunr/min/lunr.multi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.nl.min.js create mode 100644 assets/javascripts/lunr/min/lunr.no.min.js create mode 100644 assets/javascripts/lunr/min/lunr.pt.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ro.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ru.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sa.min.js create mode 100644 assets/javascripts/lunr/min/lunr.stemmer.support.min.js create mode 100644 assets/javascripts/lunr/min/lunr.sv.min.js create mode 100644 assets/javascripts/lunr/min/lunr.ta.min.js create mode 100644 assets/javascripts/lunr/min/lunr.te.min.js create mode 100644 assets/javascripts/lunr/min/lunr.th.min.js create mode 100644 assets/javascripts/lunr/min/lunr.tr.min.js create mode 100644 assets/javascripts/lunr/min/lunr.vi.min.js create mode 100644 assets/javascripts/lunr/min/lunr.zh.min.js create mode 100644 assets/javascripts/lunr/tinyseg.js create mode 100644 assets/javascripts/lunr/wordcut.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js create mode 100644 assets/javascripts/workers/search.b8dbb3d2.min.js.map create mode 100644 assets/stylesheets/main.66ac8b77.min.css create mode 100644 assets/stylesheets/main.66ac8b77.min.css.map create mode 100644 assets/stylesheets/palette.06af60db.min.css create mode 100644 assets/stylesheets/palette.06af60db.min.css.map create mode 100644 citation/index.html create mode 100644 examples/index.html create mode 100644 helpers/index.html create mode 100644 index.html create mode 100644 javascripts/mathjax.js create mode 100644 objects.inv create mode 100644 readme.org create mode 100644 references/index.html create mode 100644 search/search_index.json create mode 100644 sitemap.xml create mode 100644 sitemap.xml.gz create mode 100644 trrdf.svg create mode 100644 vanhove/index.html diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/404.html b/404.html new file mode 100644 index 0000000..53f5d96 --- /dev/null +++ b/404.html @@ -0,0 +1,641 @@ + + + +
+ + + + + + + + + + + + + + +Provides functions to calculate the radial distribution function (RDF) between +two groups of particles for specified windows along a trajectory g(r,t). +Groups can also consist of single particles.
+ + + +trrdf(
+ traj,
+ g1,
+ g2,
+ top=None,
+ pbc="ortho",
+ n_windows=100,
+ window_size=200,
+ skip=1,
+ stride=10,
+ r_range=(0.0, 2.0),
+ nbins=400,
+)
+
Calculate g(r,t) for two groups given in a trajectory. g(r) is +calculated for each frame in the trajectory, then averaged over +specified windows of time, returning g(r,t) (where t represents +the window time along the trajectory).
+ + + +PARAMETER | +DESCRIPTION | +
---|---|
traj |
+
+
+
+ String pointing to the location of a trajectory that MDTraj is +able to load +
+
+ TYPE:
+ |
+
g1 |
+
+
+
+ List of numpy arrays of atom indices representing the group to +calculate G(r,t) for +
+
+ TYPE:
+ |
+
g2 |
+
+
+
+ List of numpy arrays of atom indices representing the group to +calculate G(r,t) with +
+
+ TYPE:
+ |
+
top |
+
+
+
+ Topology object. Needed if trajectory given as a path to lazy-load. +
+
+ TYPE:
+ |
+
pbc |
+
+
+
+ String representing the periodic boundary conditions of the +simulation cell. Currently, only 'ortho' for orthogonal simulation cells +is implemented. +
+
+ TYPE:
+ |
+
n_windows |
+
+
+
+ Number of windows in which to split the trajectory (if a whole +trajectory is supplied). +
+
+ TYPE:
+ |
+
window_size |
+
+
+
+ Number of frames in each window. +
+
+ TYPE:
+ |
+
skip |
+
+
+
+ Number of frames to skip at the beginning if giving a path as +trajectory. +
+
+ TYPE:
+ |
+
stride |
+
+
+
+ Number of frames in the original trajectory to skip between each +calculation. E.g. stride = 10 means calculate distances only every +10th frame. +
+
+ TYPE:
+ |
+
r_range |
+
+
+
+ Tuple over which r in g(r,t) is defined. +
+
+ TYPE:
+ |
+
nbins |
+
+
+
+ Number of bins (points in r to consider) in g(r,t) +
+
+ TYPE:
+ |
+
RETURNS | +DESCRIPTION | +
---|---|
+ r
+ |
+
+
+
+ bin centers of g(r,t) +
+
+ TYPE:
+ |
+
+ g_rt
+ |
+
+
+
+ averaged function values of g(r,t) for each time from t=0 considered +
+
+ TYPE:
+ |
+
Examples:
+First, import both MDTraj
and SPEADI
together.
Then, point to a particle simulation topology and trajectory (e.g. a Molecular Dynamics Simulation using Gromacs
).
Next, load the topology file using MDTraj
and start defining reference and target groups.
>>> top = md.load_topology(topology)
+>>> na = top.select('name NA')
+>>> cl = top.select('name CL')
+>>> protein_by_atom = [top.select(f'index {ix}') for
+>>> ix in top.select('protein and not type H')]
+
Finally, run the Time-Resolved Radial Distribution Function (TRRDF) by calling trrdf()
.
>>> r, g_rt = sp.trrdf(trajectory, protein_by_atom, [na, cl], top=top,
+>>> n_windows=1000, window_size=500, skip=0,
+>>> pbc='general', stride=1, nbins=400)
+
The outputs are
+the centre points of the radial bins r
the \(g(r,t)\) function with shape \(N\)(reference groups)\(\times N\)(target groups)\(\times N\)(windows)\(\times N\)(radial bins)
+speadi/time_resolved_rdf/trrdf.py
11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +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 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 |
|
Provides functions to calculate the integral of theradial distribution +function (RDF) between two groups of particles for specified windows +along a trajectory n(r,t). Groups can also consist of single particles.
+ + + +int_trrdf(
+ traj,
+ g1,
+ g2,
+ top=None,
+ pbc="ortho",
+ n_windows=100,
+ window_size=200,
+ skip=1,
+ stride=10,
+ r_range=(0.0, 2.0),
+ nbins=400,
+)
+
Calculate n(r,t) for two groups given in a trajectory. n(r) is +calculated for each frame in the trajectory, then averaged over +specified windows of time, returning n(r,t) (where t represents +the window time along the trajectory).
+ + + +PARAMETER | +DESCRIPTION | +
---|---|
traj |
+
+
+
+ String pointing to the location of a trajectory that MDTraj is +able to load +
+
+ TYPE:
+ |
+
g1 |
+
+
+
+ List of numpy arrays of atom indices representing the group to +calculate G(r,t) for +
+
+ TYPE:
+ |
+
g2 |
+
+
+
+ List of numpy arrays of atom indices representing the group to +calculate G(r,t) with +
+
+ TYPE:
+ |
+
top |
+
+
+
+ Topology object. Needed if trajectory given as a path to lazy-load. +
+
+ TYPE:
+ |
+
pbc |
+
+
+
+ String representing the periodic boundary conditions of the +simulation cell. Currently, only 'ortho' for orthogonal simulation cells +is implemented. +
+
+ TYPE:
+ |
+
n_windows |
+
+
+
+ Number of windows in which to split the trajectory (if a whole +trajectory is supplied). +
+
+ TYPE:
+ |
+
window_size |
+
+
+
+ Number of frames in each window. +
+
+ TYPE:
+ |
+
skip |
+
+
+
+ Number of frames to skip at the beginning if giving a path as +trajectory. +
+
+ TYPE:
+ |
+
stride |
+
+
+
+ Number of frames in the original trajectory to skip between each +calculation. E.g. stride = 10 means calculate distances only every +10th frame. +
+
+ TYPE:
+ |
+
r_range |
+
+
+
+ Tuple over which r in n(r,t) is defined. +
+
+ TYPE:
+ |
+
nbins |
+
+
+
+ Number of bins (points in r to consider) in n(r,t) +
+
+ TYPE:
+ |
+
RETURNS | +DESCRIPTION | +
---|---|
+ r
+ |
+
+
+
+ bin centers of n(r,t) +
+
+ TYPE:
+ |
+
+ n_rt
+ |
+
+
+
+ averaged function values of n(r,t) for each time from t=0 considered +
+
+ TYPE:
+ |
+
Examples:
+First, import both MDTraj
and SPEADI
together.
Then, point to a particle simulation topology and trajectory (e.g. a Molecular Dynamics Simulation using Gromacs
).
Next, load the topology file using MDTraj
and start defining reference and target groups.
>>> top = md.load_topology(topology)
+>>> na = top.select('name NA')
+>>> cl = top.select('name CL')
+>>> protein_by_atom = [top.select(f'index {ix}') for
+>>> ix in top.select('protein and not type H')]
+
Finally, run the Time-Resolved Radial Distribution Function (TRRDF) by calling trrdf()
.
>>> r, n_rt = sp.int_trrdf(trajectory, protein_by_atom, [na, cl], top=top,
+>>> n_windows=1000, window_size=500, skip=0,
+>>> pbc='general', stride=1, nbins=400)
+
The outputs are
+the centre points of the radial bins r
the \(n(r,t)\) function with shape \(N\)(reference groups)\(\times N\)(target groups)\(\times N\)(windows)\(\times N\)(radial bins)
+speadi/int_trrdf/int_trrdf.py
11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +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 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 |
|