rdworks 0.40.1__tar.gz → 0.41.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 (86) hide show
  1. {rdworks-0.40.1 → rdworks-0.41.1}/PKG-INFO +45 -5
  2. rdworks-0.41.1/README.md +42 -0
  3. {rdworks-0.40.1 → rdworks-0.41.1}/pyproject.toml +3 -3
  4. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/__init__.py +1 -1
  5. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/conf.py +12 -2
  6. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks.egg-info/PKG-INFO +45 -5
  7. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_basics.py +1 -4
  8. rdworks-0.40.1/README.md +0 -2
  9. {rdworks-0.40.1 → rdworks-0.41.1}/LICENSE +0 -0
  10. {rdworks-0.40.1 → rdworks-0.41.1}/setup.cfg +0 -0
  11. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/__init__.py +0 -0
  12. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/autograph.py +0 -0
  13. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/centroid.py +0 -0
  14. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/dynamictreecut.py +0 -0
  15. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/nmrclust.py +0 -0
  16. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/autograph/rckmeans.py +0 -0
  17. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/bitqt/__init__.py +0 -0
  18. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/bitqt/bitqt.py +0 -0
  19. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/descriptor.py +0 -0
  20. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/display.py +0 -0
  21. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/ionized.py +0 -0
  22. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/matchedseries.py +0 -0
  23. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/mol.py +0 -0
  24. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/mollibr.py +0 -0
  25. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/pka.py +0 -0
  26. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Asinex_fragment.xml +0 -0
  27. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Astex_RO3.xml +0 -0
  28. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/Baell2010A.xml +0 -0
  29. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/Baell2010B.xml +0 -0
  30. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/Baell2010C.xml +0 -0
  31. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/PAINS-less-than-015-hits.xml +0 -0
  32. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/PAINS-less-than-150-hits.xml +0 -0
  33. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/PAINS-more-than-150-hits.xml +0 -0
  34. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Baell2010_PAINS/makexml.py +0 -0
  35. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Brenk2008_Dundee/makexml.py +0 -0
  36. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/CNS.xml +0 -0
  37. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/BMS.xml +0 -0
  38. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/Dundee.xml +0 -0
  39. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/Glaxo.xml +0 -0
  40. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/Inpharmatica.xml +0 -0
  41. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/LINT.xml +0 -0
  42. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/MLSMR.xml +0 -0
  43. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/PAINS.xml +0 -0
  44. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/SureChEMBL.xml +0 -0
  45. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ChEMBL_Walters/makexml.py +0 -0
  46. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999.xml +0 -0
  47. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999Acid.xml +0 -0
  48. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999Base.xml +0 -0
  49. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999ElPh.xml +0 -0
  50. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999NuPh.xml +0 -0
  51. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Hann1999_Glaxo/makexml.py +0 -0
  52. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Kazius2005/Kazius2005.xml +0 -0
  53. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/Kazius2005/makexml.py +0 -0
  54. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ZINC_druglike.xml +0 -0
  55. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ZINC_fragment.xml +0 -0
  56. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ZINC_leadlike.xml +0 -0
  57. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/fragment.xml +0 -0
  58. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ionized/simple_smarts_pattern.csv +0 -0
  59. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/ionized/smarts_pattern.csv +0 -0
  60. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/misc/makexml.py +0 -0
  61. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/misc/reactive-part-2.xml +0 -0
  62. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/misc/reactive-part-3.xml +0 -0
  63. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/predefined/misc/reactive.xml +0 -0
  64. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/readin.py +0 -0
  65. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/rgroup.py +0 -0
  66. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/scaffold.py +0 -0
  67. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/std.py +0 -0
  68. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/stereoisomers.py +0 -0
  69. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/tautomers.py +0 -0
  70. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/testdata.py +0 -0
  71. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/torsion.py +0 -0
  72. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/units.py +0 -0
  73. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/utils.py +0 -0
  74. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/xml.py +0 -0
  75. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/xtb/__init__.py +0 -0
  76. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks/xtb/wrapper.py +0 -0
  77. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks.egg-info/SOURCES.txt +0 -0
  78. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks.egg-info/dependency_links.txt +0 -0
  79. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks.egg-info/requires.txt +0 -0
  80. {rdworks-0.40.1 → rdworks-0.41.1}/src/rdworks.egg-info/top_level.txt +0 -0
  81. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_decimals.py +0 -0
  82. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_gypsumdl.py +0 -0
  83. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_iupac_name.py +0 -0
  84. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_nn_xtb.py +0 -0
  85. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_web.py +0 -0
  86. {rdworks-0.40.1 → rdworks-0.41.1}/tests/test_xtb_wrapper.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdworks
3
- Version: 0.40.1
4
- Summary: Frequently used tasks built on RDKit and other tools
3
+ Version: 0.41.1
4
+ Summary: Routine tasks built on RDKit and other tools
5
5
  Author-email: Sung-Hun Bae <sunghun.bae@gmail.com>
6
6
  Maintainer-email: Sung-Hun Bae <sunghun.bae@gmail.com>
7
7
  License-Expression: MIT
@@ -10,7 +10,7 @@ Project-URL: Repository, https://github.com/sunghunbae/rdworks.git
10
10
  Project-URL: Issues, https://github.com/sunghunbae/rdworks/issues
11
11
  Project-URL: Changelog, https://github.com/sunghunbae/rdworks/blob/master/CHANGELOG.md
12
12
  Project-URL: Documentation, https://sunghunbae.github.io/rdworks/
13
- Keywords: cheminformatics,rdkit
13
+ Keywords: cheminformatics,rdkit,cdpkit
14
14
  Classifier: Development Status :: 3 - Alpha
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: Programming Language :: Python :: 3
@@ -30,5 +30,45 @@ Requires-Dist: bitarray
30
30
  Requires-Dist: pytest
31
31
  Dynamic: license-file
32
32
 
33
- # rdworks
34
- Higher level wrapper using RDKit
33
+ # Rdworks - routine tasks made easy
34
+
35
+ Rdworks is designed to perform routine cheminformatics tasks easily. It is built on RDKit and other tools.
36
+
37
+ ## Install
38
+
39
+ ```sh
40
+ $ pip install rdworks
41
+ ```
42
+
43
+ OR
44
+
45
+ ```sh
46
+ $ pip install git+https://github.com/sunghunbae/rdworks.git
47
+ ```
48
+
49
+ ## Getting started
50
+
51
+ ```py
52
+ from rdworks import Mol
53
+
54
+ version = rdworks.__version__
55
+
56
+ mol = Mol('CC(=O)Nc1ccc(O)cc1', 'acetaminophen')
57
+
58
+ mol = mol.make_confs(n=5)
59
+ mol.to_sdf('acetaminophen.sdf')
60
+
61
+ torsion_dict = mol.torsion_atoms()
62
+ # torsion_dict = {0: (5,4,3,1)}
63
+
64
+ mol = mol.torsion_energies(calculator='MMFF94', simplify=True)
65
+
66
+ mol.plot_torsion_energies(0, figsize=(6,4))
67
+
68
+ mol.to_png(300, 300, atom_index=True, highlight_atoms=torsion_dict.get(0))
69
+
70
+ serialized = mol.serialize(compress=True)
71
+ mol2 = Mol().deserialize(serialized, compress=True)
72
+
73
+ mol3 = mol.copy()
74
+ ```
@@ -0,0 +1,42 @@
1
+ # Rdworks - routine tasks made easy
2
+
3
+ Rdworks is designed to perform routine cheminformatics tasks easily. It is built on RDKit and other tools.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ $ pip install rdworks
9
+ ```
10
+
11
+ OR
12
+
13
+ ```sh
14
+ $ pip install git+https://github.com/sunghunbae/rdworks.git
15
+ ```
16
+
17
+ ## Getting started
18
+
19
+ ```py
20
+ from rdworks import Mol
21
+
22
+ version = rdworks.__version__
23
+
24
+ mol = Mol('CC(=O)Nc1ccc(O)cc1', 'acetaminophen')
25
+
26
+ mol = mol.make_confs(n=5)
27
+ mol.to_sdf('acetaminophen.sdf')
28
+
29
+ torsion_dict = mol.torsion_atoms()
30
+ # torsion_dict = {0: (5,4,3,1)}
31
+
32
+ mol = mol.torsion_energies(calculator='MMFF94', simplify=True)
33
+
34
+ mol.plot_torsion_energies(0, figsize=(6,4))
35
+
36
+ mol.to_png(300, 300, atom_index=True, highlight_atoms=torsion_dict.get(0))
37
+
38
+ serialized = mol.serialize(compress=True)
39
+ mol2 = Mol().deserialize(serialized, compress=True)
40
+
41
+ mol3 = mol.copy()
42
+ ```
@@ -14,17 +14,17 @@ dependencies = [
14
14
  "tqdm",
15
15
  "ase",
16
16
  # "xtb<6.3.0", <--- installation with conda, issue with FORTRAN runtime error
17
- "mendeleev",
17
+ "mendeleev", # periodic table
18
18
  "scour", # SVG optimization
19
19
  "bitarray", # dependencies of bitqt
20
20
  "pytest",
21
21
  ]
22
22
  authors = [{name = "Sung-Hun Bae", email="sunghun.bae@gmail.com"}, ]
23
23
  maintainers = [{name = "Sung-Hun Bae", email="sunghun.bae@gmail.com"}, ]
24
- description = "Frequently used tasks built on RDKit and other tools"
24
+ description = "Routine tasks built on RDKit and other tools"
25
25
  readme = "README.md"
26
26
  license = "MIT"
27
- keywords = ["cheminformatics", "rdkit",]
27
+ keywords = ["cheminformatics", "rdkit", "cdpkit"]
28
28
  classifiers = [
29
29
  "Development Status :: 3 - Alpha",
30
30
  "Intended Audience :: Developers",
@@ -1,4 +1,4 @@
1
- __version__ = '0.40.1'
1
+ __version__ = '0.41.1'
2
2
 
3
3
  from rdworks.conf import Conf
4
4
  from rdworks.mol import Mol
@@ -27,12 +27,17 @@ from rdworks.display import render_png, render_svg
27
27
  class Conf:
28
28
  """Container for 3D conformers."""
29
29
 
30
- def __init__(self, molecule: str | Chem.Mol | None = None, name: str='') -> None:
30
+ def __init__(self,
31
+ molecule: str | Chem.Mol | None = None,
32
+ name: str = '',
33
+ compressed: bool = False) -> None:
31
34
  """Initialize.
32
35
 
33
36
  Args:
34
37
  molecule (Chem.Mol | MolBlock string): Molecule for 3D conformer.
35
38
  name (str): Name prefix of the generated conformers. Defaults to ''.
39
+ compressed (bool): whether the MolBlock string is compressed or not.
40
+ Defaults to False.
36
41
 
37
42
  Raises:
38
43
  ValueError: if `molecule` is not rdkit.Chem.Mol object.
@@ -59,8 +64,13 @@ class Conf:
59
64
  return
60
65
 
61
66
  if isinstance(molecule, str): # 3-D MolBLock string
67
+ if compressed:
68
+ molecule = decompress_string(molecule)
62
69
  try:
63
- self.rdmol = Chem.MolFromMolBlock(molecule)
70
+ self.rdmol = Chem.MolFromMolBlock(molecule,
71
+ sanitize=False,
72
+ removeHs=False,
73
+ strictParsing=True)
64
74
  except:
65
75
  ValueError(f'Conf() Error: invalid MolBlock string')
66
76
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rdworks
3
- Version: 0.40.1
4
- Summary: Frequently used tasks built on RDKit and other tools
3
+ Version: 0.41.1
4
+ Summary: Routine tasks built on RDKit and other tools
5
5
  Author-email: Sung-Hun Bae <sunghun.bae@gmail.com>
6
6
  Maintainer-email: Sung-Hun Bae <sunghun.bae@gmail.com>
7
7
  License-Expression: MIT
@@ -10,7 +10,7 @@ Project-URL: Repository, https://github.com/sunghunbae/rdworks.git
10
10
  Project-URL: Issues, https://github.com/sunghunbae/rdworks/issues
11
11
  Project-URL: Changelog, https://github.com/sunghunbae/rdworks/blob/master/CHANGELOG.md
12
12
  Project-URL: Documentation, https://sunghunbae.github.io/rdworks/
13
- Keywords: cheminformatics,rdkit
13
+ Keywords: cheminformatics,rdkit,cdpkit
14
14
  Classifier: Development Status :: 3 - Alpha
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: Programming Language :: Python :: 3
@@ -30,5 +30,45 @@ Requires-Dist: bitarray
30
30
  Requires-Dist: pytest
31
31
  Dynamic: license-file
32
32
 
33
- # rdworks
34
- Higher level wrapper using RDKit
33
+ # Rdworks - routine tasks made easy
34
+
35
+ Rdworks is designed to perform routine cheminformatics tasks easily. It is built on RDKit and other tools.
36
+
37
+ ## Install
38
+
39
+ ```sh
40
+ $ pip install rdworks
41
+ ```
42
+
43
+ OR
44
+
45
+ ```sh
46
+ $ pip install git+https://github.com/sunghunbae/rdworks.git
47
+ ```
48
+
49
+ ## Getting started
50
+
51
+ ```py
52
+ from rdworks import Mol
53
+
54
+ version = rdworks.__version__
55
+
56
+ mol = Mol('CC(=O)Nc1ccc(O)cc1', 'acetaminophen')
57
+
58
+ mol = mol.make_confs(n=5)
59
+ mol.to_sdf('acetaminophen.sdf')
60
+
61
+ torsion_dict = mol.torsion_atoms()
62
+ # torsion_dict = {0: (5,4,3,1)}
63
+
64
+ mol = mol.torsion_energies(calculator='MMFF94', simplify=True)
65
+
66
+ mol.plot_torsion_energies(0, figsize=(6,4))
67
+
68
+ mol.to_png(300, 300, atom_index=True, highlight_atoms=torsion_dict.get(0))
69
+
70
+ serialized = mol.serialize(compress=True)
71
+ mol2 = Mol().deserialize(serialized, compress=True)
72
+
73
+ mol3 = mol.copy()
74
+ ```
@@ -42,8 +42,6 @@ drug_smiles = [
42
42
  "CC(=O)OC1=CC=CC=C1C(=O)O",
43
43
  "C1=CC(=C(C=C1F)F)C(CN2C=NC=N2)(CN3C=NC=N3)O",
44
44
  "CC(=O)NC[C@H]1CN(C(=O)O1)C2=CC(=C(C=C2)N3CCOCC3)F", # [19]
45
- "CC(C)C1=C(C(=C(N1CC[C@H](C[C@H](CC(=O)O)O)O)C2=CC=C(C=C2)F)C3=CC=CC=C3)C(=O)NC4=CC=CC=C4",
46
- "CC(=O)Nc1ccc(O)cc1",
47
45
  ]
48
46
 
49
47
  drug_names = [
@@ -51,7 +49,6 @@ drug_names = [
51
49
  "Granisetron", "Pergolide", "Molindone", "Rifampin", "Cefdinir",
52
50
  "Cimetidine", "Famotidine", "Atovaquone", "Chlorprothixene", "Clomipramine",
53
51
  "Methixene", "Ethopropazine", "Aspirin", "Fluconazole", "Linezolid",
54
- "Atorvastatin", "Acetaminophen"
55
52
  ]
56
53
 
57
54
  # Lahey, S.-L. J., Thien Phuc, T. N. & Rowley, C. N.
@@ -553,4 +550,4 @@ def test_serialization():
553
550
  rebuilt = Mol().deserialize(serialized)
554
551
  assert rebuilt.count() == 10
555
552
  assert rebuilt.name == name
556
- assert rebuilt == mol
553
+ assert rebuilt == mol
rdworks-0.40.1/README.md DELETED
@@ -1,2 +0,0 @@
1
- # rdworks
2
- Higher level wrapper using RDKit
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