A way to visualize Molecular graph #365
-
Is there a way to visualize molecular graph? I am trying to debug a case where |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I'm not sure there is a good way unfortunately. Probably fastest to set the graph with a larger tolerance and look at the difference >>> import autode as ade
>>> m = ade.Molecule(atoms=[ade.Atom("H"), ade.Atom("H", x=1)])
>>> m.graph
MolecularGraph(|E| = 0, |V| = 2)
>>> from autode.mol_graphs import make_graph
>>> make_graph(m, rel_tolerance=0.4)
>>> m.graph
MolecularGraph(|E| = 1, |V| = 2) if you're using metals you might need Lines 128 to 133 in 6a6eebe |
Beta Was this translation helpful? Give feedback.
@zarkoivkovicc I have used the XYZ reader in RDkit before. From Greg Landrum's presentation here it seems that RDKit's XYZ reader uses xyz2mol. Which also uses a covalent radii based cutoff. The only difference is the algorithms used for determining bond orders, which seems to be more sophisticated than the one we use for autodE. I don't know if they updated their algorithm in later versions or not.
For determining bond rearrangements, the bond orders are not used in any case - so I don't think it will change things much. If it is metals, then its probably the valency pruning which is causing an issue as @t-young31 said - I have run into this before.