Skip to content

Commit d845a83

Browse files
authored
Merge pull request #3 from lightdock/0.1.1
Merge 0.1.1 -> master
2 parents 358aad8 + 83ee121 commit d845a83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+17226
-3
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
22
name = "lightdock"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["Brian Jimenez Garcia <br.jimenezgarcia@gmail.com>"]
55
edition = "2018"
66

77
[dependencies]
88
rand = "0.7.3"
99
serde = { version = "1.0.106", features = ["derive"] }
1010
serde_json = "1.0.51"
11-
lib3dmol = "0.3.2"
11+
lib3dmol = "0.4.0"
1212
lazy_static = "1.4.0"
1313
npy = "0.4.0"

example/ab_icode/init/initial_positions_0.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_1.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_10.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_11.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_12.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_13.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_14.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_15.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_16.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_17.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_18.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_19.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_2.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_3.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_4.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_5.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_6.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_7.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_8.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/init/initial_positions_9.dat

Lines changed: 200 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
ATOM 0 H XXX 1 -4.818 20.973 28.462
2+
ATOM 1 H XXX 1 -8.636 19.145 28.816
3+
ATOM 2 H XXX 1 -12.291 26.572 21.145
4+
ATOM 3 H XXX 1 -9.856 24.030 25.359
5+
ATOM 4 H XXX 1 -28.041 31.392 -6.931
6+
ATOM 5 H XXX 1 -38.609 10.605 -0.494
7+
ATOM 6 H XXX 1 -7.074 15.310 29.478
8+
ATOM 7 H XXX 1 -37.561 18.092 -9.162
9+
ATOM 8 H XXX 1 -38.438 16.290 -5.221
10+
ATOM 9 H XXX 1 -36.801 19.717 -12.638
11+
ATOM 10 H XXX 1 -2.200 25.440 23.557
12+
ATOM 11 H XXX 1 -4.406 24.425 25.443
13+
ATOM 12 H XXX 1 -35.989 28.746 -2.675
14+
ATOM 13 H XXX 1 -13.685 22.824 25.558
15+
ATOM 14 H XXX 1 -5.061 11.453 29.826
16+
ATOM 15 H XXX 1 -14.541 17.574 27.910
17+
ATOM 16 H XXX 1 -36.625 14.132 -12.218
18+
ATOM 17 H XXX 1 -40.818 19.662 -0.851
19+
ATOM 18 H XXX 1 -33.517 27.201 -7.769
20+
ATOM 19 H XXX 1 -38.070 23.004 -5.622

example/ab_icode/lig_nm.npy

63.4 KB
Binary file not shown.

example/ab_icode/ligand.pdb

Lines changed: 275 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/lightdock_lig.nm.npy

63.4 KB
Binary file not shown.

example/ab_icode/lightdock_ligand.pdb

Lines changed: 270 additions & 0 deletions
Large diffs are not rendered by default.
398 Bytes
Binary file not shown.

example/ab_icode/lightdock_rec.nm.npy

780 KB
Binary file not shown.

example/ab_icode/lightdock_receptor.pdb

Lines changed: 3326 additions & 0 deletions
Large diffs are not rendered by default.
3.37 KB
Binary file not shown.

example/ab_icode/rec_nm.npy

780 KB
Binary file not shown.

example/ab_icode/receptor.pdb

Lines changed: 3484 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/restraints.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
R H.ASP.52A
2+
R H.LEU.82C

example/ab_icode/setup.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"anm_lig": 10,
3+
"anm_rec": 10,
4+
"anm_seed": 324324,
5+
"flip": false,
6+
"glowworms": 200,
7+
"ligand_pdb": "ligand.pdb",
8+
"ligand_restraints": {
9+
"active": [],
10+
"blocked": [],
11+
"passive": []
12+
},
13+
"membrane": false,
14+
"noh": true,
15+
"now": true,
16+
"noxt": true,
17+
"receptor_pdb": "receptor.pdb",
18+
"receptor_restraints": {
19+
"active": [
20+
"H.ASP.52A",
21+
"H.LEU.82C"
22+
],
23+
"blocked": [],
24+
"passive": []
25+
},
26+
"restraints": "restraints.list",
27+
"starting_points_seed": 324324,
28+
"surface_density": 50.0,
29+
"swarm_radius": 10.0,
30+
"swarms": 20,
31+
"transmembrane": false,
32+
"use_anm": true,
33+
"verbose_parser": false,
34+
"write_starting_positions": false
35+
}

example/ab_icode/swarm_0/gso_1.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_10.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_100.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_20.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_30.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_40.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_50.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_60.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_70.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_80.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/gso_90.out

Lines changed: 201 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/lig_nm.npy

63.4 KB
Binary file not shown.

example/ab_icode/swarm_0/lightdock_ligand.pdb

Lines changed: 270 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/lightdock_receptor.pdb

Lines changed: 3326 additions & 0 deletions
Large diffs are not rendered by default.

example/ab_icode/swarm_0/rec_nm.npy

780 KB
Binary file not shown.

src/bin/lightdock-rust.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ struct SetupFile {
3333
starting_points_seed: u32,
3434
verbose_parser: bool,
3535
noxt: bool,
36+
now: bool,
3637
restraints: Option<String>,
3738
use_anm: bool,
3839
glowworms: u32,

src/scoring.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ impl DockingModel {
150150
let mut atom_index: u64 = 0;
151151
for chain in structure.chains.iter() {
152152
for residue in chain.lst_res.iter() {
153-
let res_id = format!("{}.{}.{}", chain.name, residue.name.trim(), residue.res_num);
153+
let mut res_id = format!("{}.{}.{}", chain.name, residue.name.trim(), residue.res_num);
154+
if let Some(c) = residue.res_icode {
155+
res_id.push(c);
156+
}
154157

155158
for atom in residue.lst_atom.iter() {
156159
// Membrane beads MMB.BJ

0 commit comments

Comments
 (0)