Skip to content

Commit eb423d8

Browse files
authored
Merge pull request #49 from calpolyccg/docs-updates
Docs updates
2 parents 2d684e1 + 151b1d8 commit eb423d8

15 files changed

+125
-64
lines changed

README.md

+26-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,36 @@ SAPT Calculations for MDAnalysis
1010

1111
An MDAnalysis-kit for calculating SAPT of molecular dynamics trajectories in psi4. [Click here for a demo!](https://mybinder.org/v2/gh/calpolyccg/MDSAPT_demo/master?labpath=MD-SAPT_demo.ipynb)
1212

13+
### Installation
14+
15+
Installing with Conda on Python version 3.9 to 3.11 using the command:
16+
17+
``` bash
18+
conda install -c conda-forge mdsapt
19+
```
20+
21+
MD-SAPT can also be installed from source:
22+
23+
``` bash
24+
git clone https://github.com/calpolyccg/MDSAPT.git
25+
pip install ./MDSAPT
26+
```
27+
28+
A development environment can also be created using nix:
29+
30+
``` bash
31+
git clone https://github.com/calpolyccg/MDSAPT.git
32+
33+
cd MDSAPT
34+
35+
nix develop
36+
```
37+
1338
### Copyright
1439

1540
Copyright (c) 2021-2024, Alia Lescoulie
1641

17-
#### Acknowledgements
42+
#### Acknowledgments
1843

1944
This work was supported by the Bill and Linda Frost Fund at Cal Poly San Luis Obispo.
2045

docs/api.rst

-5
This file was deleted.

docs/conf.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,16 @@
2020
# -- Project information -----------------------------------------------------
2121

2222
project = 'MD-SAPT'
23-
copyright = ("2021, Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald. Cal Poly Computational Chemistry Group. Project structure based on the "
23+
copyright = ("2021-2024, Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald. Cal Poly Computational Chemistry Group. Project structure based on the "
2424
"Computational Molecular Science Python Cookiecutter version 1.6")
2525
author = 'Alia Lescoulie'
2626

27-
# The short X.Y version
28-
version = '1.1'
29-
# The full version, including alpha/beta/rc tags
30-
release = '1.1.0'
3127

28+
# The version under title on sidebar
29+
version = "2.0"
30+
31+
# The full version, including alpha/beta/rc tags
32+
release = "2.0.4"
3233

3334
# -- General configuration ---------------------------------------------------
3435

@@ -71,7 +72,7 @@
7172
#
7273
# This is also used if you do content translation via gettext catalogs.
7374
# Usually you set "language" from the command line for these cases.
74-
language = None
75+
language = "en"
7576

7677
# List of patterns, relative to source directory, that match files and
7778
# directories to ignore when looking for source files.

docs/getting_started.rst

-4
This file was deleted.

docs/index.rst

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MD-SAPT Documentation
2-
=========================================================
2+
=====================
33

44
**MD-SAPT** is a Python package and `MDAnalysis <https://www.mdanalysis.org>`_ Kit for preforming
55
Symmetry Adapted Perturbation Theory (SAPT) calculations on molecular dynamics (MD) simulation
@@ -14,13 +14,12 @@ For the poster we presented at ACS Spring 2022, `click here <./_static/mdsapt_po
1414

1515

1616
.. toctree::
17-
:maxdepth: 4
18-
:numbered:
17+
:maxdepth: 2
1918
:hidden:
2019

2120
install
2221
quick
22+
config
2323
sapt
24-
optimizer
25-
reader
26-
viewer
24+
repair
25+

docs/install.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Installation
22
============
33

4-
MD-SAPT can be installed from the psi4 Conda repo like so:
4+
MD-SAPT can be installed using Conda with the following:
55

66
.. code-block:: bash
77
@@ -16,7 +16,8 @@ Alternatively, it can be installed by cloning the GitHub repository.
1616
1717
To ensure it's been installed correctly, run `mdsapt` or `python3 -m mdsapt`.
1818

19-
.. code-block::
19+
.. code-block:: bash
20+
2021
Warning: importing 'simtk.openmm' is deprecated. Import 'openmm' instead.
2122
2022-03-30 09:32:50,071 mdsapt INFO MDSAPT 1.2.0 starting
2223
2022-03-30 09:32:50,071 mdsapt INFO Copyright (c) 2021 Alia Lescoulie, Astrid Yu, and Ashley Ringer McDonald

docs/quick.rst

+7-1
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,29 @@ The following steps describe how to set up the input YAML file.
2727

2828
4. Specify the pairs of residues from the numbers in step 3
2929

30-
5. Specify trajectory, optimization, and SAPT settings
30+
5. Specify trajectory, optimization, `SAPT method <https://psicode.org/psi4manual/master/sapt.html#sapt-level>`_, `basis set <https://psicode.org/psi4manual/master/basissets_byelement.html#apdx-basiselement>`_ , and Psi4 settings (see `psi4 documentation <https://psicode.org/psi4manual/master/index.html>`_ for more information)
31+
3132

3233
Here is an example of a filled-out YAML file:
3334

3435
.. code-block:: yaml
36+
3537
psi4:
3638
method: "sapt0"
3739
basis: "jun-cc-pvdz"
3840
settings:
3941
reference: "rhf"
4042
save_output: true
43+
4144
simulation:
4245
ph: 7.0
4346
charge_guesser: "standard"
4447
# charge_guesser: 'rdkit' # to use rdkit. Make sure it is installed first.
48+
4549
system_limits:
4650
ncpus: 32
4751
memory: "80GB"
52+
4853
analysis:
4954
### This section is for running TrajectorySAPT. To run other types of analyses, see below.
5055
type: "trajectory"
@@ -81,6 +86,7 @@ This mode is suited for:
8186
With the input done MD-SAPT is ready to be run. Simply execute
8287

8388
.. code-block:: bash
89+
8490
mdsapt run [filename] [output]
8591
8692
and it will run SAPT on your trajectory using the parameters specified in your input file.

docs/repair.rst

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. automodule:: mdsapt.repair
2+

docs/sapt.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.. automodule:: mdsapt.sapt
1+
.. automodule:: mdsapt.sapt

docs/viewer.rst

-1
This file was deleted.

mdsapt/config.py

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
:mod:`mdsapt.config` -- Reads input file and saves configuration
33
================================================================
44
5+
6+
.. autoclass:: Config
7+
:members:
8+
:inherited-members:
9+
10+
.. autoclass:: DockingAnalysisConfig
11+
:members:
12+
:inherited-members:
13+
514
"""
615

716
# There's lots of implicit class methods because pydantic decorators are stupid.

mdsapt/data/docking_template.yaml

+39-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,42 @@
1-
topology_directory: ''
2-
selection_resid_num:
3-
-
4-
int_pairs:
5-
# Place pair names defined above in list in a list
6-
- []
7-
system_settings:
8-
ncpus:
9-
memory:
10-
time:
11-
opt_settings:
12-
pH: 7.0
13-
sapt_settings:
14-
method: 'sapt'
1+
psi4:
2+
# The sapt theory level eg: SAPT0, SAPT2, SAPT2+, SAPT2+3
3+
# See https://psicode.org/psi4manual/master/sapt.html#sapt-level for more information
4+
method: 'sapt0'
5+
# Basis set for Psi4 SAPT calculation
6+
# See https://psicode.org/psi4manual/master/basissets_byelement.html#apdx-basiselement for complete list
157
basis: 'jun-cc-pvdz'
8+
# set to true to save Psi4 output files
9+
save_output: true
10+
# Additional Psi4 settings see https://psicode.org for more psi4 specific documentation
1611
settings:
12+
# The reference wave function type eg: RHF, ROHF, UHF, CUHF, RKS, UKS
13+
# See https://psicode.org/psi4manual/master/autodir_options_c/scf__reference.html for more information
1714
reference: 'rhf'
18-
save_psi4_output: true
15+
16+
simulation:
17+
ph: 7.0
18+
# pH of simulated system, it informs how protons are replaced when ballencing spin state before Psi4 calculations
19+
charge_guesser: 'standard'
20+
# charge_guesser: 'rdkit' # to use rdkit. Make sure it is installed first.
21+
22+
system_limits:
23+
# Integer number of cpu cores to use in Psi4 calculation
24+
ncpus:
25+
# Given memory form `"{number_of_gigabytes}GB"`
26+
memory:
27+
28+
analysis:
29+
type: 'docking'
30+
# MD-SAPT analysis type (in this case docking)
31+
topology_directory: 'mek/docking'
32+
# The set of topology files for docking analysis
33+
pairs:
34+
# Place pair names defined above in list in a list
35+
- [15, 132]
36+
37+
system_limits:
38+
# Integer number of cpu cores to use in Psi4 calculation
39+
ncpus:
40+
# Given memory form `"{number_of_gigabytes}GB"`
41+
memory:
42+

mdsapt/data/trajectory_template.yaml

+24-20
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
11
psi4:
2-
method: 'sapt'
2+
# The sapt theory level eg: SAPT0, SAPT2, SAPT2+, SAPT2+3
3+
# See https://psicode.org/psi4manual/master/sapt.html#sapt-level for more information
4+
method: 'sapt0'
5+
# Basis set for Psi4 SAPT calculation
6+
# See https://psicode.org/psi4manual/master/basissets_byelement.html#apdx-basiselement for complete list
37
basis: 'jun-cc-pvdz'
8+
# set to true to save Psi4 output files
49
save_output: true
10+
# Additional Psi4 settings see https://psicode.org for more psi4 specific documentation
511
settings:
12+
# The reference wave function type eg: RHF, ROHF, UHF, CUHF, RKS, UKS
13+
# See https://psicode.org/psi4manual/master/autodir_options_c/scf__reference.html for more information
614
reference: 'rhf'
15+
716
simulation:
817
ph: 7.0
18+
# pH of simulated system, it informs how protons are replaced when ballencing spin state before Psi4 calculations
919
charge_guesser: 'standard'
1020
# charge_guesser: 'rdkit' # to use rdkit. Make sure it is installed first.
21+
1122
system_limits:
23+
# Integer number of cpu cores to use in Psi4 calculation
1224
ncpus:
25+
# Given memory form `"{number_of_gigabytes}GB"`
1326
memory:
27+
1428
analysis:
15-
### This section is for running TrajectorySAPT. To run other types of analyses, see below.
29+
# This section is for running TrajectorySAPT. To run other types of analyses, see below.
1630
type: 'trajectory'
1731

1832
topology: 'your/file/path.pdb'
@@ -25,29 +39,19 @@ analysis:
2539
trajectories:
2640
- 'your/trajectory/path.dcd'
2741
pairs:
42+
# List the pairs of residues to calculate interaction energy between based on residue ids in topology file
2843
- [132, 152]
2944
- [34, 152]
3045
frames:
46+
# Starting frame
3147
start: 10
48+
49+
# Stop frame
3250
stop: 30
33-
#step: 2
3451

52+
# frames per calculation step
53+
step: 1
54+
55+
# Name of outputed csv file
3556
output: 'output.csv'
3657

37-
# ### For running DockingSAPT
38-
# type: 'docking'
39-
# mode: 'protein-ligand'
40-
# topologies:
41-
# - 'one/topology.pdb'
42-
# - 'another/topology.pdb'
43-
# - 'a/glob/of/topologies/*.pdb'
44-
# - 'a/directory/full/of/topologies'
45-
# - path: 'one/specific/topology/with/weird/charges.pdb'
46-
# charge_overrides:
47-
# 145: -4
48-
#
49-
# pairs:
50-
# - [132, 152]
51-
# - [34, 152]
52-
#
53-
# output: 'output.csv'

mdsapt/repair.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
r"""
2-
:mod:`mdsapt.optimizer` -- Prepare residues for SAPT calculations
2+
:mod:`mdsapt.repair` -- Prepare residues for SAPT calculations
33
=================================================================
44
55
Prepares residues for SAPT calculations by adding protons and replacing missing atoms

mdsapt/sapt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Sets up and runs `SAPT <https://psicode.org/psi4manual/master/sapt.html>`_
66
calculations between the residues selected in the input file.
77
8-
.. autofunction:: build_psi4_imput_str
8+
.. autofunction:: build_psi4_input_str
99
1010
.. autofunction:: calc_sapt
1111

0 commit comments

Comments
 (0)