Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,40 +2,51 @@
|
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
- chemistry
|
|
|
|
| 5 |
---
|
| 6 |
-
Here is the dataset used in paper `Scalable Machine Learning Force Fields for Macromolecular Systems Through Long-Range Aware Message Passing` [[link](URL地址)].
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
```python
|
| 10 |
import lmdb
|
| 11 |
import pickle
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
'atomic_numbers'] # The list of atomic numbers, shape [N,]
|
| 29 |
-
```
|
| 30 |
-
For Di-Molecule dataset, there are additional properties:
|
| 31 |
-
```python
|
| 32 |
-
[...
|
| 33 |
-
'mol_a', # The pubchem id of the molecule A
|
| 34 |
-
'mol_b', # The pubchem id of the molecule B
|
| 35 |
-
'distance', # The horizontal distance between the right-most atom of A and the left-most atom of B, unit in Angstrom
|
| 36 |
-
...]
|
| 37 |
```
|
| 38 |
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
-
|
|
|
|
| 2 |
license: mit
|
| 3 |
tags:
|
| 4 |
- chemistry
|
| 5 |
+
- biology
|
| 6 |
---
|
|
|
|
| 7 |
|
| 8 |
+
|
| 9 |
+
This repository contains the dataset used in the paper: **"Scalable Machine Learning Force Fields for Macromolecular Systems Through Long-Range Aware Message Passing"** [[link](https://www.google.com/search?q=URL_ADDRESS)].
|
| 10 |
+
|
| 11 |
+
The data is stored in **LMDB** format. Using the `md_traj` data as an example, you can load the data as follows:
|
| 12 |
+
|
| 13 |
```python
|
| 14 |
import lmdb
|
| 15 |
import pickle
|
| 16 |
+
|
| 17 |
+
# Open the LMDB environment
|
| 18 |
+
env = lmdb.open("md_traj/train/NaCl/data_0.lmdb", readonly=True, lock=False, subdir=False)
|
| 19 |
+
|
| 20 |
+
with env.begin() as txn:
|
| 21 |
+
length = txn.stat()['entries']
|
| 22 |
+
data_list = []
|
| 23 |
+
for idx in range(length):
|
| 24 |
+
byte_data = txn.get(f"{idx}".encode())
|
| 25 |
+
if byte_data:
|
| 26 |
+
data_list.append(pickle.loads(byte_data))
|
| 27 |
+
|
| 28 |
+
# See the keys stored in data
|
| 29 |
+
if data_list:
|
| 30 |
+
print(data_list[0].keys())
|
| 31 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
```
|
| 33 |
|
| 34 |
+
### Data Structure
|
| 35 |
+
|
| 36 |
+
The loaded objects contain the following keys:
|
| 37 |
+
|
| 38 |
+
* `forces`: Atomic forces with shape \[N,3\], in kcal/mol/Angstrom.
|
| 39 |
+
* `cluster_ids`: IDs for each atom within the prebuilt clusters.
|
| 40 |
+
* `order`: The frame index in the MD simulation.
|
| 41 |
+
* `pos`: Atomic positions with shape \[N,3\], in units of Angstrom
|
| 42 |
+
* `cluster_centers`: Geometric centers of the prebuilt clusters.
|
| 43 |
+
* `energy`: Total molecular energy in kcal/mol/Angstrom.
|
| 44 |
+
* `atomic_numbers`: List of atomic numbers with shape \[N\].
|
| 45 |
+
|
| 46 |
+
For the **Di-Molecule** dataset, the following additional properties are included:
|
| 47 |
+
|
| 48 |
+
* `mol_a`: The PubChem ID of molecule A.
|
| 49 |
+
* `mol_b`: The PubChem ID of molecule B.
|
| 50 |
+
* `distance`: The horizontal distance between the right-most atom of A and the left-most atom of B, in units of Angstrom.
|
| 51 |
|
| 52 |
+
For further details, please refer to the [original paper](https://www.google.com/search?q=URL_ADDRESS) and the official repository: [IQuestLab/E2Former](https://github.com/IQuestLab/E2Former).
|