Auto3D 2.3.0__tar.gz → 2.3.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. {auto3d-2.3.0/src/Auto3D.egg-info → auto3d-2.3.1}/PKG-INFO +2 -5
  2. {auto3d-2.3.0 → auto3d-2.3.1}/README.md +1 -4
  3. {auto3d-2.3.0 → auto3d-2.3.1}/setup.cfg +1 -1
  4. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/__pycache__/geometry.cpython-39.pyc +0 -0
  5. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/__pycache__/thermo.cpython-39.pyc +0 -0
  6. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/thermo.py +15 -9
  7. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/SPE.cpython-39.pyc +0 -0
  8. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/auto3D.cpython-39.pyc +0 -0
  9. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/ranking.cpython-39.pyc +0 -0
  10. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/tautomer.cpython-39.pyc +0 -0
  11. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/utils.cpython-39.pyc +0 -0
  12. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/__pycache__/batchopt.cpython-39.pyc +0 -0
  13. {auto3d-2.3.0 → auto3d-2.3.1/src/Auto3D.egg-info}/PKG-INFO +2 -5
  14. {auto3d-2.3.0 → auto3d-2.3.1}/LICENSE +0 -0
  15. {auto3d-2.3.0 → auto3d-2.3.1}/MANIFEST.in +0 -0
  16. {auto3d-2.3.0 → auto3d-2.3.1}/pyproject.toml +0 -0
  17. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/.gitignore +0 -0
  18. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/__init__.py +0 -0
  19. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/__pycache__/__init__.cpython-39.pyc +0 -0
  20. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ASE/geometry.py +0 -0
  21. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/SPE.py +0 -0
  22. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__init__.py +0 -0
  23. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/__init__.cpython-39.pyc +0 -0
  24. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/auto3Dcli.cpython-39.pyc +0 -0
  25. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/isomer_engine.cpython-39.pyc +0 -0
  26. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/__pycache__/utils_file.cpython-39.pyc +0 -0
  27. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/auto3D.py +0 -0
  28. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/auto3Dcli.py +0 -0
  29. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/ANI2xt_no_rep.py +0 -0
  30. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/ANI2xt_rep.py +0 -0
  31. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/__init__.py +0 -0
  32. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/__pycache__/ANI2xt_no_rep.cpython-39.pyc +0 -0
  33. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/__pycache__/__init__.cpython-39.pyc +0 -0
  34. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/batch_opt/batchopt.py +0 -0
  35. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/isomer_engine.py +0 -0
  36. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/models/__init__.py +0 -0
  37. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/models/aimnet2_wb97m-d3_0.jpt +0 -0
  38. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/models/aimnet2_wb97m_ens_f.jpt +0 -0
  39. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/models/ani2xt_no_repulsion.pt +0 -0
  40. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/ranking.py +0 -0
  41. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/tautomer.py +0 -0
  42. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/utils.py +0 -0
  43. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D/utils_file.py +0 -0
  44. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D.egg-info/SOURCES.txt +0 -0
  45. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D.egg-info/dependency_links.txt +0 -0
  46. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D.egg-info/entry_points.txt +0 -0
  47. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D.egg-info/requires.txt +0 -0
  48. {auto3d-2.3.0 → auto3d-2.3.1}/src/Auto3D.egg-info/top_level.txt +0 -0
  49. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_SPE.py +0 -0
  50. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_auto3D.py +0 -0
  51. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_isomer_engine.py +0 -0
  52. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_tauto.py +0 -0
  53. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_thermo.py +0 -0
  54. {auto3d-2.3.0 → auto3d-2.3.1}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Auto3D
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Generating Low-energy 3D Conformers from SMILES/SDF
5
5
  Home-page: https://github.com/isayevlab/Auto3D_pkg
6
6
  Author: 'Zhen Liu, Tetiana Zubatiuk, Adrian Roitberg, Olexandr Isayev'
@@ -23,10 +23,7 @@ Requires-Dist: pyyaml
23
23
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/Auto3D)
24
24
  ![PyPI - License](https://img.shields.io/pypi/l/Auto3D)
25
25
 
26
- <img width="1109" alt="image" src="https://user-images.githubusercontent.com/60156077/180329514-c72d7b92-91a8-431b-9339-1445d5cacd20.png">
27
-
28
-
29
-
26
+ ![auto3d-white](https://github.com/user-attachments/assets/3184d31b-fb21-42d5-a1e0-611ccbf66ad2)
30
27
 
31
28
  **Auto3D** is a Python package for generating low-energy conformers from SMILES/SDF. Over the development process, we also added the APIs for computing single point energies, optimizing geometries, find stable tautomers. Auto3D can be imported as a Python library, or be excuted from the terminal.
32
29
 
@@ -4,10 +4,7 @@
4
4
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/Auto3D)
5
5
  ![PyPI - License](https://img.shields.io/pypi/l/Auto3D)
6
6
 
7
- <img width="1109" alt="image" src="https://user-images.githubusercontent.com/60156077/180329514-c72d7b92-91a8-431b-9339-1445d5cacd20.png">
8
-
9
-
10
-
7
+ ![auto3d-white](https://github.com/user-attachments/assets/3184d31b-fb21-42d5-a1e0-611ccbf66ad2)
11
8
 
12
9
  **Auto3D** is a Python package for generating low-energy conformers from SMILES/SDF. Over the development process, we also added the APIs for computing single point energies, optimizing geometries, find stable tautomers. Auto3D can be imported as a Python library, or be excuted from the terminal.
13
10
 
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = Auto3D
3
- version = 2.3.0
3
+ version = 2.3.1
4
4
  author = 'Zhen Liu, Tetiana Zubatiuk, Adrian Roitberg, Olexandr Isayev'
5
5
  author_email = liu5@andrew.cmu.edu, tetiana@zubatyuk.com, roitberg@ufl.edu, olexandr@olexandrisayev.com
6
6
  description = Generating Low-energy 3D Conformers from SMILES/SDF
@@ -218,7 +218,8 @@ def aimnet_hessian_helper(coord:torch.tensor,
218
218
  e = model.forward(numbers, coord, charge)
219
219
  return e # energy unit: eV
220
220
 
221
- def calc_thermo(path: str, model_name: str, get_mol_idx_t=None, gpu_idx=0, opt_tol=0.0002, opt_steps=5000):
221
+ def calc_thermo(path: str, model_name: str, mol_info_func=None,
222
+ gpu_idx=0, opt_tol=0.0002, opt_steps=5000):
222
223
  """
223
224
  ASE interface for calculation thermo properties using ANI2x, ANI2xt or AIMNET.
224
225
 
@@ -226,8 +227,10 @@ def calc_thermo(path: str, model_name: str, get_mol_idx_t=None, gpu_idx=0, opt_t
226
227
  :type path: str
227
228
  :param model_name: ANI2x, ANI2xt, AIMNET or a path to a userNNP model
228
229
  :type model_name: str
229
- :param get_mol_idx_t: A function that returns (idx, T) from a pybel mol object, by default using the 298 K temperature, defaults to None
230
- :type get_mol_idx_t: function, optional
230
+ :param mol_info_func: A function that returns the name and temperature (idx, T)
231
+ from a rdkit mol object. If not provided, the
232
+ thermodynamic properties will be calculated at 298 K
233
+ :type mol_info_func: function, optional
231
234
  :param gpu_idx: GPU cuda index, defaults to 0
232
235
  :type gpu_idx: int, optional
233
236
  :param opt_tol: Convergence_threshold for geometry optimization, defaults to 0.0002
@@ -238,7 +241,7 @@ def calc_thermo(path: str, model_name: str, get_mol_idx_t=None, gpu_idx=0, opt_t
238
241
  #Prepare output name
239
242
  out_mols, mols_failed = [], []
240
243
  dir = os.path.dirname(path)
241
- if os.path.exists(path):
244
+ if os.path.exists(model_name):
242
245
  basename = os.path.basename(path).split(".")[0] + "_userNNP_G.sdf"
243
246
  else:
244
247
  basename = os.path.basename(path).split(".")[0] + f"_{model_name}_G.sdf"
@@ -270,11 +273,11 @@ def calc_thermo(path: str, model_name: str, get_mol_idx_t=None, gpu_idx=0, opt_t
270
273
  calculator.set_charge(charge)
271
274
  atoms.set_calculator(calculator)
272
275
 
273
- if get_mol_idx_t is None:
276
+ if mol_info_func is None:
274
277
  idx = mol.GetProp("_Name").strip()
275
278
  T = 298
276
279
  else:
277
- idx, T = get_mol_idx_t(mol)
280
+ idx, T = mol_info_func(mol)
278
281
 
279
282
  try:
280
283
  try:
@@ -285,19 +288,22 @@ def calc_thermo(path: str, model_name: str, get_mol_idx_t=None, gpu_idx=0, opt_t
285
288
  EnForce_in['charge'])
286
289
  fmax = f_.norm(dim=-1).max(dim=-1)[0].item()
287
290
  assert fmax <= 0.01
288
- mol = do_mol_thermo(mol, atoms, hessian_model, device, T, model_name=model_name)
291
+ mol = do_mol_thermo(mol, atoms, hessian_model,
292
+ device, T, model_name=model_name)
289
293
  out_mols.append(mol)
290
294
  except AssertionError:
291
295
  print('optiimize the input geometry')
292
296
  opt = BFGS(atoms)
293
297
  opt.run(fmax=3e-3, steps=opt_steps)
294
- mol = do_mol_thermo(mol, atoms, hessian_model, device, T, model_name=model_name)
298
+ mol = do_mol_thermo(mol, atoms, hessian_model,
299
+ device, T, model_name=model_name)
295
300
  out_mols.append(mol)
296
301
  except ValueError:
297
302
  print('use tighter convergence threshold for geometry optimization')
298
303
  opt = BFGS(atoms)
299
304
  opt.run(fmax=opt_tol, steps=opt_steps)
300
- mol = do_mol_thermo(mol, atoms, hessian_model, device, T, model_name=model_name)
305
+ mol = do_mol_thermo(mol, atoms, hessian_model,
306
+ device, T, model_name=model_name)
301
307
  out_mols.append(mol)
302
308
  except:
303
309
  print("Failed: ", idx, flush=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Auto3D
3
- Version: 2.3.0
3
+ Version: 2.3.1
4
4
  Summary: Generating Low-energy 3D Conformers from SMILES/SDF
5
5
  Home-page: https://github.com/isayevlab/Auto3D_pkg
6
6
  Author: 'Zhen Liu, Tetiana Zubatiuk, Adrian Roitberg, Olexandr Isayev'
@@ -23,10 +23,7 @@ Requires-Dist: pyyaml
23
23
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/Auto3D)
24
24
  ![PyPI - License](https://img.shields.io/pypi/l/Auto3D)
25
25
 
26
- <img width="1109" alt="image" src="https://user-images.githubusercontent.com/60156077/180329514-c72d7b92-91a8-431b-9339-1445d5cacd20.png">
27
-
28
-
29
-
26
+ ![auto3d-white](https://github.com/user-attachments/assets/3184d31b-fb21-42d5-a1e0-611ccbf66ad2)
30
27
 
31
28
  **Auto3D** is a Python package for generating low-energy conformers from SMILES/SDF. Over the development process, we also added the APIs for computing single point energies, optimizing geometries, find stable tautomers. Auto3D can be imported as a Python library, or be excuted from the terminal.
32
29
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes