Skip to content

Commit 50e95a0

Browse files
authored
Fix lignetwork docs (#356)
* docs: fix lignetwork not showing in API docs * chore: other small docs adjustments
1 parent 909cc9e commit 50e95a0

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Installation
22
------------
33

4-
The recommanded way to install ProLIF is to use `conda`_.
4+
The recommended way to install ProLIF is to use `conda`_.
55

66
These first steps are optional and will create a separate environment for ProLIF::
77

docs/source/modules/plotting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ Plotting
77

88
.. automodule:: prolif.plotting.complex3d
99

10-
.. automodule:: prolif.plotting.network
10+
.. automodule:: prolif.plotting.network.lignetwork

prolif/io/cif.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
This module provides a wrapper around `gemmi` for reading
55
Crystallographic Information File (CIF) format.
66
7-
.. versionchanged:: 2.2.0
8-
Replaced the custom CIF parser with a thin wrapper around ``gemmi``.
7+
.. versionadded:: 2.2.0
98
"""
109

1110
from pathlib import Path

prolif/molecule.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,15 @@ def from_mda(
146146
mol = prolif.Molecule.from_mda(protein)
147147
mol
148148
149+
Since MDAnalysis v2.10.0, it is possible to directly control how bond orders and
150+
charges are inferred from the topology using the ``inferrer`` parameter::
151+
152+
>>> from MDAnalysis.converters.RDKitInferring import TemplateInferrer
153+
>>> from rdkit import Chem
154+
>>> ligand_template = Chem.MolFromSmiles("NC(c2nc(=Cc1ccc([O-])cc1)c(=O)n2CC=O)C(C)O")
155+
>>> ligand_inferrer = TemplateInferrer(ligand_template)
156+
>>> mol = prolif.Molecule.from_mda(u, "resname LIG", inferrer=ligand_inferrer)
157+
149158
.. versionchanged:: 2.1.0
150159
Added `use_segid`.
151160
"""

0 commit comments

Comments
 (0)