Skip to content

Commit

Permalink
Merge pull request #725 from OpenFreeEnergy/doc_drive_2
Browse files Browse the repository at this point in the history
Doc drive 2
  • Loading branch information
richardjgowers authored Feb 16, 2024
2 parents 60a5eca + 1562674 commit 7b3c2fe
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 101 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@

autodoc_mock_imports = [
"matplotlib",
"openmmtools",
"mdtraj",
"openmmforcefields",
"openmmtools",
"pymbar",
]

# Extensions for the myst parser
Expand Down
2 changes: 1 addition & 1 deletion docs/cookbook/creating_atom_mappings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Creating Atom Mappings

Once your :ref:`data has been loaded<Loading Molecules>`
we can now proceed to defining how Components in these Systems correspond.
``Mapping`` objects are used to defined how ``Component`` objects from different :class:`ChemicalSystems` are related.
``Mapping`` objects are used to defined how ``Component`` objects from different :class:`.ChemicalSystem` objects are related.
This guide will show how this concept applies to the case of a pair of ligands we wish to transform between.

Generating Mappings
Expand Down
80 changes: 80 additions & 0 deletions docs/reference/api/atom_mappers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
.. _Atom Mappers:

Atom Mappings
=============

Tools for mapping atoms in one molecule to those in another. Used to generate efficient ligand networks.

.. module:: openfe.setup.atom_mapping

.. rubric:: Abstract Base Class

.. autosummary::
:nosignatures:
:toctree: generated/

LigandAtomMapper

.. rubric:: Implementations

.. autosummary::
:nosignatures:
:toctree: generated/

LomapAtomMapper
PersesAtomMapper

.. rubric:: Data Types

.. autosummary::
:nosignatures:
:toctree: generated/

LigandAtomMapping

.. _Atom Map Scorers:

Atom Map Scorers
----------------

Scoring functions for a mapping between ligands. These are used as objective functions for :any:`Ligand Network Planners`.


Lomap Scorers
~~~~~~~~~~~~~

Scorers implemented by the `LOMAP <https://github.com/OpenFreeEnergy/Lomap>`_ package.

.. apparently we need the atom_mapping because internally autofunction is
trying ``import openfe.setup.lomap_scorers``, which doesn't work (whereas
``from openfe.setup import lomap_scorers`` does)
.. module:: openfe.setup.atom_mapping.lomap_scorers

.. autosummary::
:nosignatures:
:toctree: generated/

default_lomap_score
ecr_score
mcsr_score
mncar_score
atomic_number_score
hybridization_score
sulfonamides_score
heterocycles_score
transmuting_methyl_into_ring_score
transmuting_ring_sizes_score


Perses Scorers
~~~~~~~~~~~~~~

Scorers implemented by the `Perses <https://github.com/choderalab/perses>`_ package.

.. module:: openfe.setup.atom_mapping.perses_scorers

.. autosummary::
:nosignatures:
:toctree: generated/

default_perses_scorer
13 changes: 0 additions & 13 deletions docs/reference/api/data.rst

This file was deleted.

3 changes: 2 additions & 1 deletion docs/reference/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ OpenFE API Reference
.. toctree::
:maxdepth: 2

data
systems_and_components
atom_mappers
ligand_network
alchemical_network_planning
defining_and_executing_simulations
openmm_rfe
openmm_solvation_afe
openmm_md
80 changes: 0 additions & 80 deletions docs/reference/api/ligand_network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,83 +52,3 @@ Functions to load a :class:`.LigandNetwork` from equivalent classes in other pac
load_orion_network
load_fepplus_network

.. _Atom Mappers:

Atom Mappings
-------------

Tools for mapping atoms in one molecule to those in another. Used to generate efficient ligand networks.

.. module:: openfe.setup.atom_mapping

.. rubric:: Abstract Base Class

.. autosummary::
:nosignatures:
:toctree: generated/

LigandAtomMapper

.. rubric:: Implementations

.. autosummary::
:nosignatures:
:toctree: generated/

LomapAtomMapper
PersesAtomMapper

.. rubric:: Data Types

.. autosummary::
:nosignatures:
:toctree: generated/

LigandAtomMapping

.. _Atom Map Scorers:

Atom Map Scorers
----------------

Scoring functions for a mapping between ligands. These are used as objective functions for :any:`Ligand Network Planners`.


Lomap Scorers
~~~~~~~~~~~~~

Scorers implemented by the `LOMAP <https://github.com/OpenFreeEnergy/Lomap>`_ package.

.. apparently we need the atom_mapping because internally autofunction is
trying ``import openfe.setup.lomap_scorers``, which doesn't work (whereas
``from openfe.setup import lomap_scorers`` does)
.. module:: openfe.setup.atom_mapping.lomap_scorers

.. autosummary::
:nosignatures:
:toctree: generated/

default_lomap_score
ecr_score
mcsr_score
mncar_score
atomic_number_score
hybridization_score
sulfonamides_score
heterocycles_score
transmuting_methyl_into_ring_score
transmuting_ring_sizes_score


Perses Scorers
~~~~~~~~~~~~~~

Scorers implemented by the `Perses <https://github.com/choderalab/perses>`_ package.

.. module:: openfe.setup.atom_mapping.perses_scorers

.. autosummary::
:nosignatures:
:toctree: generated/

default_perses_scorer
21 changes: 21 additions & 0 deletions docs/reference/api/openmm_md.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
OpenMM Molecular Dynamics Protocol
==================================

This Protocol implements a standard MD execution for a solvated protein system.

Protocol Settings
-----------------

.. module:: openfe.protocols.openmm_md

.. autopydantic_model:: PlainMDProtocolSettings
:model-show-json: False
:model-show-field-summary: False
:model-show-config-member: False
:model-show-config-summary: False
:model-show-validator-members: False
:model-show-validator-summary: False
:field-list-validators: False
:inherited-members: SettingsBaseModel
:exclude-members: get_defaults
:member-order: bysource
9 changes: 4 additions & 5 deletions docs/reference/api/systems_and_components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ We describe a chemical system as being made up of one or more "components," e.g.
:nosignatures:
:toctree: generated/

Component
SmallMoleculeComponent
ProteinComponent
SolventComponent
ChemicalSystem
SmallMoleculeComponent
ProteinComponent
SolventComponent
ChemicalSystem


Chemical System Generators
Expand Down

0 comments on commit 7b3c2fe

Please sign in to comment.