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

Edits to cli guide #966

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
9 changes: 5 additions & 4 deletions docs/guide/cli/cli_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ CLI basics

The ``openfe`` command consists of several subcommands. This is similar to
tools like ``gmx``, which has subcommands like ``gmx mdrun``, or ``conda``,
which has subcommands like ``conda install``. To get a list of the
subcommands and a brief description of them, use ``openfe (or
``openfe -h``), which will give:
which has subcommands like ``conda install``.

.. TODO autogemerate using sphinxcontrib-programoutput
To get a list of the subcommands and their descriptions, call ``openfe`` (or
``openfe -h``):

.. TODO autogenerate using sphinxcontrib-programoutput

.. code:: none

Expand Down
23 changes: 12 additions & 11 deletions docs/guide/cli/cli_yaml.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ Customising CLI planning with yaml settings
===========================================

The planning commands in the CLI can be made more powerful by supplying
"yaml" formatted files to customise the planning algorithms.
This settings file has a series of sections for customising the different algorithms,
as an example, the settings file which re-specifies the default behaviour would look like ::
yaml-formatted files to customise the planning algorithms.
atravitz marked this conversation as resolved.
Show resolved Hide resolved

This settings file has a series of sections for customising the different algorithms.
atravitz marked this conversation as resolved.
Show resolved Hide resolved
For example, the settings file which re-specifies the default behaviour would look like ::

network:
method: plan_minimal_spanning_tree
Expand All @@ -18,18 +19,21 @@ as an example, the settings file which re-specifies the default behaviour would

The name of the algorithm is given behind the ``method:`` key and the arguments to the
algorithm are then optionally given behind the ``settings:`` key.
Both the `network:` and `mapper:` sections are optional.
Both the ``network:`` and ``mapper:`` sections are optional.

This is then provided to the ``openfe plan-rbfe-network`` command as ::
The settings yaml file is then provided to the ``-s`` option of ``openfe plan-rbfe-network``: ::
atravitz marked this conversation as resolved.
Show resolved Hide resolved

openfe plan-rbfe-network -M molecules.sdf -P protein.pdb -s settings.yaml

Customising the atom mapper
---------------------------

There is a choice to be made as to which atom mapper is used,
currently included are the :class:`.LomapAtomMapper` and the :class:`.KartografAtomMapper`
For example to switch to using the ``Kartograf`` atom mapper, this settings yaml could be used ::
currently included are the :class:`.LomapAtomMapper` and the :class:`.KartografAtomMapper` (full details in the `Kartograf documentation`_.)

.. _Kartograf documentation: https://kartograf.readthedocs.io/en/latest/api/kartograf.mappers.html#kartograf.atom_mapper.KartografAtomMapper

For example, to switch to using the ``Kartograf`` atom mapper, this settings yaml could be used ::
atravitz marked this conversation as resolved.
Show resolved Hide resolved

mapper:
method: KartografAtomMapper
Expand All @@ -39,9 +43,6 @@ For example to switch to using the ``Kartograf`` atom mapper, this settings yaml
map_hydrogens_on_hydrogens_only: False
map_exact_ring_matches_only: True

Full details on these options can be found in the `Kartograf documentation`_.

.. _Kartograf documentation: https://kartograf.readthedocs.io/en/latest/api/kartograf.mappers.html#kartograf.atom_mapper.KartografAtomMapper

Customising the network planner
-------------------------------
Expand All @@ -51,7 +52,7 @@ There are a variety of network planning options available, including
:func:`.generate_minimal_spanning_network`, and
:func:`.generate_minimal_redundant_network`.

For example to plan a radial network using a ligand called 'CHEMBL1078774' as the central ligand, this settings yaml
For example, to plan a radial network using a ligand called 'CHEMBL1078774' as the central ligand, this settings yaml
could be given ::

network:
Expand Down
Loading