Skip to content

Commit

Permalink
documentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
tkpiskorz committed Jun 6, 2024
1 parent b418791 commit 4a16369
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 1 addition & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@
html_theme = 'sphinx_rtd_theme'
#html_static_path = ['_static']
html_logo = "logo_rect.png"
html_theme_options = {
'logo_only': False
}
html_theme_options = {'logo_only': False}
html_favicon = 'icon.ico'

# -- Options for EPUB output
Expand Down
23 changes: 13 additions & 10 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Examples

The examples here are

Example 1
Example 1: Quick start
------------

Simple paramterization of the cage with 2 metals. As an imput we provide coordination file in PBD format and non-bonded
Expand All @@ -15,11 +15,12 @@ force-field paramters in *.top format (GROMACS). Morover LJ paramters of the Ru
.. code-block:: python
from metallicious import supramolecular_structure
cage = supramolecular_structure('ru_pd.pdb', metal_charges={'Ru': 2, 'Pd':2 }, topol='ru_pd.top', vdw_type='uff')
cage = supramolecular_structure('ru_pd.pdb', metal_charges={'Ru': 2, 'Pd':2 },
topol='ru_pd.top', vdw_type='uff')
cage.parametrize(out_coord='out.pdb', out_topol='out.top')
Example 2
Example 2: automated organic force-field
------------

In case of lack of the topology simple parametrization using AmberTools with GAFF force-field is done of the linker.
Expand Down Expand Up @@ -62,7 +63,8 @@ The template for this metal site is not available in metallicious. Therfore runn
.. code-block:: python
from metallicious import supramolecular_structure
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc')
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 },
vdw_type='merz-opc')
cage.parametrize(out_coord='out.pdb', out_topol='out.top', prepare_initial_topology=True)
raises an error "Topology file not specified, please provide topology, or use prepare_initial_topology=True".
Expand All @@ -81,7 +83,8 @@ dependencies (see installation guide) are needed (`autode <https://github.com/du
.. code-block:: python
from metallicious import supramolecular_structure
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc')
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 },
vdw_type='merz-opc')
cage.parametrize(out_coord='out.pdb', out_topol='out.top', prepare_initial_topology=True)
Bare in mind that parametrization of template is time-consuming. It will perform DFT optimalisation using ORCA/autodE. By default autodE uses 4 cores but this can be modified:
Expand All @@ -91,13 +94,15 @@ Bare in mind that parametrization of template is time-consuming. It will perform
from metallicious import supramolecular_structure
import autode as ade
ade.Config.n_cores = 8
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc')
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 },
vdw_type='merz-opc')
cage.parametrize(out_coord='out.pdb', out_topol='out.top', prepare_initial_topology=True)
By default parametrization is done on D3BJ-PBE0/def2-SVP (keywords = ['PBE0', 'D3BJ', 'def2-SVP', 'tightOPT', 'freq']).
This can be changed by specifing keywords in class supramolecular structure class:

.. code-block:: python
from metallicious import supramolecular_structure
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc', keywords= ['B3LYP', '6-31G*', 'tightOPT', 'freq'])
cage.parametrize(out_coord='out.pdb', out_topol='out.top', prepare_initial_topology=True)
Expand All @@ -111,9 +116,7 @@ Truncation scheme are very simple
.. code-block:: python
from metallicious import supramolecular_structure
# This will not work becasue there is no exact template for this site:
# cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc')
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 }, vdw_type='merz-opc', truncation_scheme='dihedral')
cage = supramolecular_structure('cage.pdb', topol='topol.top', metal_charges={'Pd':2 },
vdw_type='merz-opc', truncation_scheme='dihedral')
cage.parametrize(out_coord='out.pdb', out_topol='out.top')
3 changes: 1 addition & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ Contents

.. toctree::

index
installation
usage
examples
tutorial
tutorialS
api

0 comments on commit 4a16369

Please sign in to comment.