-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae8d528
commit 6d38b0e
Showing
21 changed files
with
8,544 additions
and
8,533 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
boxcenter: | ||
- -13.07 | ||
- 12.58 | ||
- 67.15 | ||
boxsize: | ||
- 22.5 | ||
- 23.625 | ||
- 23.25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CC(C)C[C@H](NC(=O)[C@@H](NC(=O)[C@H](C)NC(O)C1CC(C)ON1)C(C)C)C(=O)N[C@H](CC[C@H](O)OCC1CCCCC1)C[C@@H]1CCNC1O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,883 changes: 1 addition & 2,882 deletions
2,883
src/moldrug/data/receptor_pdb.py → src/moldrug/data/6lu7/protein.pdb
Large diffs are not rendered by default.
Oops, something went wrong.
2,880 changes: 1 addition & 2,879 deletions
2,880
src/moldrug/data/receptor_pdbqt.py → src/moldrug/data/6lu7/protein.pdbqt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from moldrug.data._get import get_data | ||
import json | ||
|
||
if __name__ == "__main__": | ||
|
||
print(json.dumps(get_data('6lu7'), indent=3)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import yaml | ||
from moldrug import home | ||
import os | ||
|
||
_AVAILABLE_DATA = ['6lu7', 'x0161'] | ||
|
||
|
||
class DataNotFound(Exception): | ||
pass | ||
|
||
|
||
def get_data(name: str) -> dict: | ||
"""Retrieve MolDrug data | ||
Parameters | ||
---------- | ||
name : str | ||
Name of the data directory of MolDrug | ||
Returns | ||
------- | ||
dict | ||
A dictionary with keys: | ||
* box: boxcenter, boxsize | ||
* ligand_3D: absolute path | ||
* smiles: the ligans's SMILES | ||
* protein: pdb, pdbqt | ||
Raises | ||
------ | ||
DataNotFound | ||
MolDrug does not contains the data. | ||
""" | ||
|
||
root_data = home.home(dataDir=name) | ||
|
||
if not os.path.exists(root_data) or not name: | ||
raise DataNotFound(f"MolDrug data does not have '{name}' data set. " | ||
f"Choose from: {_AVAILABLE_DATA}") | ||
|
||
with open(os.path.join(root_data, 'box.yml'), 'r') as f: | ||
box = yaml.safe_load(f) | ||
|
||
with open(os.path.join(root_data, 'ligand.smi'), 'r') as f: | ||
smiles = f.readline() | ||
|
||
data = { | ||
'box': box, | ||
'ligand_3D': os.path.join(root_data, 'ligand_3D.mol'), | ||
'smiles': smiles, | ||
'protein': { | ||
'pdb': os.path.join(root_data, 'protein.pdb'), | ||
'pdbqt': os.path.join(root_data, 'protein.pdbqt'), | ||
} | ||
} | ||
return data |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
boxcenter: | ||
- 12.11 | ||
- 1.84 | ||
- 23.56 | ||
boxsize: | ||
- 22.5 | ||
- 22.5 | ||
- 22.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
COC(=O)C=1C=CC(=CC1)S(=O)(=O)N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
x0161 | ||
RDKit 3D | ||
|
||
14 14 0 0 1 0 0 0 0 0999 V2000 | ||
13.8921 -2.4077 24.1269 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
13.4897 -0.2702 23.1446 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
12.8011 1.0351 23.3277 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
11.6117 1.1475 24.0810 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
10.9808 2.3973 24.2401 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
11.5348 3.5418 23.6347 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
12.7111 3.4432 22.8672 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
13.3408 2.1928 22.7264 C 0 0 0 0 0 0 0 0 0 0 0 0 | ||
9.4491 5.0959 22.7844 N 0 0 0 0 0 0 0 0 0 0 0 0 | ||
13.2656 -1.1348 24.1544 O 0 0 0 0 0 0 0 0 0 0 0 0 | ||
14.2110 -0.5201 22.1789 O 0 0 0 0 0 0 0 0 0 0 0 0 | ||
11.6894 6.1877 23.4320 O 0 0 0 0 0 0 0 0 0 0 0 0 | ||
10.1931 5.1760 25.2380 O 0 0 0 0 0 0 0 0 0 0 0 0 | ||
10.7644 5.1384 23.8833 S 0 0 0 0 0 0 0 0 0 0 0 0 | ||
1 10 1 0 | ||
2 3 1 0 | ||
2 10 1 0 | ||
2 11 2 0 | ||
3 4 2 0 | ||
3 8 1 0 | ||
4 5 1 0 | ||
5 6 2 0 | ||
6 7 1 0 | ||
6 14 1 0 | ||
7 8 2 0 | ||
9 14 1 0 | ||
12 14 2 0 | ||
13 14 2 0 | ||
M END |
Oops, something went wrong.