rdworks 0.36.3__tar.gz → 0.36.4__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.
- {rdworks-0.36.3 → rdworks-0.36.4}/PKG-INFO +1 -1
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/__init__.py +1 -1
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/mol.py +1 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/torsion.py +6 -1
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks.egg-info/PKG-INFO +1 -1
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_basics.py +11 -3
- {rdworks-0.36.3 → rdworks-0.36.4}/LICENSE +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/README.md +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/pyproject.toml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/setup.cfg +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/__init__.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/autograph.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/centroid.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/dynamictreecut.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/nmrclust.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/autograph/rckmeans.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/bitqt/__init__.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/bitqt/bitqt.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/conf.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/descriptor.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/display.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/ionized.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/matchedseries.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/mollibr.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/pka.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Asinex_fragment.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Astex_RO3.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/Baell2010A.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/Baell2010B.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/Baell2010C.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/PAINS-less-than-015-hits.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/PAINS-less-than-150-hits.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/PAINS-more-than-150-hits.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Baell2010_PAINS/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Brenk2008_Dundee/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/CNS.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/BMS.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/Dundee.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/Glaxo.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/Inpharmatica.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/LINT.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/MLSMR.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/PAINS.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/SureChEMBL.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ChEMBL_Walters/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999Acid.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999Base.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999ElPh.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/Hann1999NuPh.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Hann1999_Glaxo/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Kazius2005/Kazius2005.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/Kazius2005/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ZINC_druglike.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ZINC_fragment.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ZINC_leadlike.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/fragment.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ionized/simple_smarts_pattern.csv +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/ionized/smarts_pattern.csv +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/misc/makexml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/misc/reactive-part-2.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/misc/reactive-part-3.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/predefined/misc/reactive.xml +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/readin.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/rgroup.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/scaffold.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/std.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/stereoisomers.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/tautomers.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/units.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/utils.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/xml.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/xtb/__init__.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks/xtb/wrapper.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks.egg-info/SOURCES.txt +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks.egg-info/dependency_links.txt +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks.egg-info/requires.txt +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/src/rdworks.egg-info/top_level.txt +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_decimals.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_gypsumdl.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_iupac_name.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_nn_xtb.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_web.py +0 -0
- {rdworks-0.36.3 → rdworks-0.36.4}/tests/test_xtb_wrapper.py +0 -0
@@ -453,10 +453,14 @@ def create_torsion_fragment(rdmol: Chem.Mol,
|
|
453
453
|
|
454
454
|
candidates = find_bonds_to_prune(rdmol, torsion_indices)
|
455
455
|
|
456
|
+
if not candidates:
|
457
|
+
# no fragmentation
|
458
|
+
return rdmol, torsion_indices
|
459
|
+
|
456
460
|
if GFN2xTB().version() is not None:
|
461
|
+
# filter candidate(s) by Wiberg bond order (WBO) if xTB is available
|
457
462
|
jk = tuple(sorted([j, k]))
|
458
463
|
wbo_passed_candidates = {}
|
459
|
-
# filter candidate(s) by Wiberg bond order (WBO)
|
460
464
|
parent = GFN2xTB(rdmol).singlepoint()
|
461
465
|
assert hasattr(parent, 'wbo'), "create_torsion_fragment() Error: no wbo for parent"
|
462
466
|
for bond_idx, (p, q) in candidates.items():
|
@@ -470,6 +474,7 @@ def create_torsion_fragment(rdmol: Chem.Mol,
|
|
470
474
|
wbo_passed_candidates[bond_idx] = (p, q)
|
471
475
|
frag_multi_breaks = create_fragment_on_bonds(rdmol, wbo_passed_candidates)
|
472
476
|
else:
|
477
|
+
# skip WBO filtering
|
473
478
|
frag_multi_breaks = create_fragment_on_bonds(rdmol, candidates)
|
474
479
|
|
475
480
|
frag_ijkl = get_fragment_idx(rdmol, (i, j, k, l), frag_multi_breaks)
|
@@ -469,12 +469,20 @@ def test_torsion_fragment():
|
|
469
469
|
name="atorvastatin").make_confs(n=1)
|
470
470
|
ta = mol.torsion_atoms()
|
471
471
|
assert len(ta) == 12
|
472
|
-
#
|
473
|
-
#
|
474
|
-
|
472
|
+
# {0: (0, 1, 3, 7), 1: (3, 4, 32, 33), 2: (4, 5, 26, 27), 3: (7, 6, 19, 20),
|
473
|
+
# 4: (3, 7, 8, 9), 5: (7, 8, 9, 10), 6: (8, 9, 10, 18), 7: (18, 10, 11, 12),
|
474
|
+
# 8: (10, 11, 12, 17), 9: (17, 12, 13, 14), 10: (12, 13, 14, 15), 11: (36, 35, 34, 32)}
|
475
|
+
frag, frag_ijkl = create_torsion_fragment(mol.confs[0].rdmol, ta[6])
|
475
476
|
assert frag_ijkl == (5, 6, 7, 12)
|
476
477
|
|
477
478
|
|
479
|
+
mol2 = Mol(molecule='CC(=O)Nc1ccc(O)cc1', name='acetaminophen.3').make_confs(n=1)
|
480
|
+
ta2 = mol2.torsion_atoms()
|
481
|
+
# {0: (5, 4, 3, 1)}
|
482
|
+
assert len(ta2) == 1
|
483
|
+
frag, frag_ijkl = create_torsion_fragment(mol2.confs[0].rdmol, ta2[0])
|
484
|
+
|
485
|
+
|
478
486
|
def test_torsion_energies():
|
479
487
|
libr = MolLibr(torsion_dataset_smiles, torsion_dataset_names)
|
480
488
|
with open(workdir / 'test_torsion_energies.html', 'w') as f:
|
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
|
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
|
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
|
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
|
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
|