Skip to content

Commit 7184367

Browse files
committed
Documented restraints
1 parent cb8b29f commit 7184367

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

docs/README.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you execute `lightdock_setup` several options will appear:
5959
```bash
6060
usage: lightdock_setup [-h] [--seed_points STARTING_POINTS_SEED]
6161
[-ft ftdock_file] [--noxt] [-anm] [--seed_anm ANM_SEED]
62-
[-anm_rec ANM_REC] [-anm_lig ANM_LIG]
62+
[-anm_rec ANM_REC] [-anm_lig ANM_LIG] [-rst restraints]
6363
receptor_pdb_file ligand_pdb_file swarms glowworms
6464
lightdock_setup: error: too few arguments
6565

@@ -85,6 +85,7 @@ Below there is a description of the rest of accepted paramenters of `lightdock_s
8585
- **--seed_anm** *ANM_SEED*: An integer can be specified as the seed used in the random number generator of ANM normal modes extents.
8686
- **--anm_rec** *ANM_REC*: The number of non-trivial normal modes calculated for the recepetor in the ANM mode.
8787
- **--anm_lig** *ANM_LIG*: The number of non-trivial normal modes calculated for the ligand in the ANM mode.
88+
- **-rst** *restraints_file*: If `restraints_file` is provided, distance restraints on the receptor surface will be calculated to provided residues. See `2.2. Restraints` section for more information.
8889

8990
### 2.1. Results of the setup
9091

@@ -101,7 +102,22 @@ After the execution of `lightdock_setup` script, several files and directories w
101102
- `*.xyz.npy`: Two files with this extension, one for the receptor and one for the ligand, which contains information about the minimum ellipsoid containing each of the structures in NumPy format.
102103
- `lightdock_rec.nm.npy`and `lightdock_lig.nm.npy`: If ANM is enabled, two files are created containing the normal modes information calculated by the ProDy library.
103104

104-
### 2.2. Tips and tricks
105+
### 2.2. Distance restraints (Experimental)
106+
107+
In version `0.5.1`, distance restraints on the receptor surface have been implemented. This new feature works in the following way:
108+
109+
From a `restraints_file` file containing the following information:
110+
111+
```
112+
R A.SER.150
113+
R A.TYR.151
114+
```
115+
116+
Where `R` means for `Receptor` (at the moment only residue restraints on the receptor are accepted) and then the rest of the line is a residue identifier in the format `Chain.Residue_Name.Residue_Number` in the original PDB file numeration.
117+
118+
For each of these residues, only the closest swarms are considered during `lightdock_setup`. At the moment, only the **10 closest swarms** for each residue are considered. If some of the swarms overlap, then only one copy of that swarm is used.
119+
120+
### 2.3. Tips and tricks
105121

106122
- As a general rule of thumb, the receptor structure is the bigger molecule and the ligand the smaller. With bigger and smaller, the metric used is the longest diameter of the minimum ellipsoid containing the molecule. A script called `lgd_calculate_diameter.py` can be found in `$LIGHTDOCK_HOME/bin/support` path in order to calculate an approximation of that metric.
107123

lightdock/prep/simulation.py

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def get_restraints(structure, restraints):
244244
for restraint in restraints:
245245
chain_id, residue_name, residue_number = restraint.split('.')
246246
residue = structure.get_residue(chain_id, residue_name, residue_number)
247-
residue
248247
if not residue:
249248
raise LightDockError("Restraint %s not found in structure" % restraint)
250249
else:

lightdock/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Framework version"""
22

3-
CURRENT_VERSION = "0.5.0"
3+
CURRENT_VERSION = "0.5.1"

0 commit comments

Comments
 (0)