jialrsz commited on
Commit
31b5157
·
verified ·
1 Parent(s): cd170c1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +40 -29
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
- The data is stored in lmdb formate. Taking `md_traj` data as an example, you can load the data as following:
 
 
 
 
9
  ```python
10
  import lmdb
11
  import pickle
12
- env = lmdb.open("md_traj/train/NaCl/data_0.lmdb", subdir=False)
13
- txn = env.begin()
14
- length = txn.stat()['entries']
15
- data_list = []
16
- for idx in range(length):
17
- data.append(pickle.loads(txn.get(f"idx".encode())))
18
- print(data_list[0].keys())
19
- ```
20
- You will get:
21
- ```python
22
- ['forces', # Forces in kcal/mol/Angstrom
23
- 'cluster_ids', # The id for each atoms in prebuilt clusters
24
- 'order', # The frame id in MD simulation
25
- 'pos', # The positons for each atoms, shape [N, 3], unit in Angstrom
26
- 'cluster_centers', # The center of prebuilt clusters
27
- 'energy', # The total energy of the molecule in kcal/mol
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
- More details can be found in the original paper.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
 
41
- Code Link: [IQuestLab/E2Former](https://github.com/IQuestLab/E2Former).
 
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).