mosdef-hub / mbuild

A hierarchical, component based molecule builder
https://mbuild.mosdef.org
Other
171 stars 80 forks source link

Add to_rdkit functionality #1138

Closed chrisiacovella closed 10 months ago

chrisiacovella commented 1 year ago

Describe the behavior you would like added to mBuild Add in a function to convert a compound to rdkit. We already have support to go from_rdkit (as that is what drives loading from smiles). This is particularly useful for displaying a chemdraw style rendering of a compound.

To have this work better, we'll want to store bond order as well. This can be easily added to the bond graph as a data description for an edge in networkx.