Skip to content

Commit

Permalink
Merge pull request #20 from nbehrnd/correction_b
Browse files Browse the repository at this point in the history
structural & visual corrections on non-haptic ligands
  • Loading branch information
ghutchis authored Jan 18, 2024
2 parents 9211de8 + 4a2e647 commit 8dc711a
Show file tree
Hide file tree
Showing 44 changed files with 699 additions and 22 deletions.
Binary file modified ligands/bidentate/acac-acetylacetonate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/bpy-bipyridine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/dithiolene.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/dmpe-1,2-bis(dimethylphosphino)ethane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
678 changes: 678 additions & 0 deletions ligands/bidentate/dppe-1,2-bis(diphenylphosphino)ethane.cjson

Large diffs are not rendered by default.

Binary file modified ligands/bidentate/dppe-1,2-bis(diphenylphosphino)ethane.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/en-ethylenediamine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions ligands/bidentate/groups.smi
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[CH3]C([O][*]1)=CC(=[O]1)[CH3] a acac-acetylacetonate
C12=CC=CC=[N]1[*][N]3=C2C=CC=C3 a bpy-bipyridine
[*]1[SH0][CH][CH][SH0]1 a dithiolene
C[P]1(C)CC[P](C)(C)*1 a dmpe-1,2-bis(dimethylphosphino)ethane
c1([P]2(c3ccccc3)CC[P](c3ccccc3)(c3ccccc3)*2)ccccc1 a dppe-1,2-bis(diphenylphosphino)ethane
[NH2]1CC[NH2][*]1 a en-ethylenediamine
[CH3][N]1([CH3])CC[N]([CH3])([CH3])[*]1 a tmeda-tetramethylethylenediamine
[O]=C([O-][*][O-]1)C1=[O] a oxalate
Expand Down
Binary file modified ligands/bidentate/oxalate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/phenanthroline.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/bidentate/tmeda-tetramethylethylenediamine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/ammine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/aqua.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/azido.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/carbonyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/cyano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/ethyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion ligands/monodentate/groups.smi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
*C#[O] a carbonyl
*C#[N] a cyano
*C[CH3] a ethyl
Cc1cc(C)cc(c1N1CCN(C1*)c1c(C)cc(cc1C)C)C a imes
*[N]#[C] a isocyano
*C([CH3])[CH3] a isopropyl
*[CH3] a methyl
Expand All @@ -13,6 +12,7 @@ Cc1cc(C)cc(c1N1CCN(C1*)c1c(C)cc(cc1C)C)C a imes
*[PH3] a phosphine
*CC[CH3] a propyl
*[N](C=C1)=CC=C1 a pyridyl
Cc1cc(C)cc(c1N1CCN(C1=*)c1c(C)cc(cc1C)C)C a simes
*C([CH3])([CH3])[CH3] a t-butyl
*[N]=C=[S] a thiocyanato-N
*[SH0]C#[NH0] a thiocyano
Expand Down
Binary file removed ligands/monodentate/imes.png
Binary file not shown.
Binary file modified ligands/monodentate/isocyano.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/isopropyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/methyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/nitro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/nitrosyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/phosphine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/propyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/pyridyl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 10 additions & 18 deletions ligands/monodentate/imes.cjson → ligands/monodentate/simes.cjson
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@
0.2950375115703756,
5.787283005672643,
-0.04225011908470685,
-2.0127886908519845,
2.9643793621189234,
1.482464801318469,
-2.0015869140625,
2.9280271530151367,
1.5361080169677734,
-2.5618258495945945,
6.954602279166593,
-0.7736460696173343,
Expand Down Expand Up @@ -151,10 +151,7 @@
-0.5435772796487052,
1.719928229050943,
2.231726756953255,
-2.233810736757843,
-1.0575294494628906,
3.1812362670898438,
1.9747276306152344
-2.233810736757843
]
},
"elements": {
Expand Down Expand Up @@ -194,6 +191,7 @@
1,
1,
1,
0,
1,
1,
1,
Expand All @@ -207,9 +205,7 @@
1,
1,
1,
1,
1,
0
1
]
},
"formalCharges": [
Expand Down Expand Up @@ -262,7 +258,6 @@
0,
0,
0,
0,
0
],
"labels": [
Expand Down Expand Up @@ -315,7 +310,6 @@
"",
"",
"",
"",
""
],
"layer": [
Expand Down Expand Up @@ -368,7 +362,6 @@
0,
0,
0,
0,
0
]
},
Expand Down Expand Up @@ -478,9 +471,7 @@
22,
48,
22,
49,
12,
50
49
]
},
"order": [
Expand Down Expand Up @@ -521,8 +512,7 @@
1,
1,
1,
1,
1,
2,
1,
1,
1,
Expand Down Expand Up @@ -580,6 +570,7 @@
]
},
"locked": [
false,
false
],
"settings": {
Expand All @@ -588,6 +579,7 @@
]
},
"visible": [
true,
true
]
},
Expand Down
Binary file added ligands/monodentate/simes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ligands/monodentate/t-butyl.png
Binary file modified ligands/monodentate/thiocyanato-N.png
Binary file modified ligands/monodentate/thiocyano.png
Binary file modified ligands/monodentate/thiol.png
Binary file modified ligands/monodentate/trimethylammonium.png
Binary file modified ligands/monodentate/trimethylphosphine.png
Binary file modified ligands/monodentate/triphenylphosphine.png
Binary file modified ligands/tetradentate/phthalocyanine.png
Binary file modified ligands/tetradentate/porphin.png
Binary file modified ligands/tridentate/9-ane-S3.png
Binary file modified ligands/tridentate/dien-diethylenetriamine.png
Binary file modified ligands/tridentate/tacn-147-triazacyclononane.png
Binary file modified ligands/tridentate/terpyridine.png
Binary file modified ligands/tridentate/tp-scorpionate.png
11 changes: 8 additions & 3 deletions scripts/depict_ligands.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,19 @@ def is_transition_metal(atom):
)


def set_dative_bonds(mol, fromAtoms=(6, 7, 8, 15, 16)): # i.e., C, N, O, P, S
def reset_dative_bonds(mol, fromAtoms=(6, 7, 8, 15, 16)): # i.e., C, N, O, P, S
"""convert some bonds to dative
Replace any single bond between the dummy atom/transition metals and atoms
with atomic numbers in fromAtoms with dative bonds. This approach differs
to the original approach[1] to highlight the denticity of every ligand.
Because of a discussion in the user forum of RDKit,[2] the use of a dative
bond indicated by an arrow however is dropped; because results are depicted
and are not starting point of additional computation, single bonds appear
a suitable alternative to use.
[1] http://rdkit.org/docs/Cookbook.html#organometallics-with-dative-bonds
[2] https://github.com/rdkit/rdkit/discussions/6995
Returns the modified molecule.
Expand All @@ -82,7 +87,7 @@ def set_dative_bonds(mol, fromAtoms=(6, 7, 8, 15, 16)): # i.e., C, N, O, P, S
== Chem.BondType.SINGLE
):
rwmol.RemoveBond(nbr.GetIdx(), metal.GetIdx())
rwmol.AddBond(nbr.GetIdx(), metal.GetIdx(), Chem.BondType.DATIVE)
rwmol.AddBond(nbr.GetIdx(), metal.GetIdx(), Chem.BondType.SINGLE)
return rwmol


Expand All @@ -96,7 +101,7 @@ def generate_previews(line):
smiles = "*" + smiles

mol = Chem.MolFromSmiles(smiles, sanitize=False)
mol = set_dative_bonds(mol)
mol = reset_dative_bonds(mol)
svg = svgDepict(mol).replace("*", "")

# save the SVG
Expand Down

0 comments on commit 8dc711a

Please sign in to comment.