Skip to content

as for SetACS1996 Mode or DrawMoleculeACS1996, how to draw multibl molecules #6403

Closed Answered by DavidACosgrove
MachineGUN001 asked this question in General
Discussion options

You must be logged in to vote

Hi Shengyang,
You need to create a MolDrawOptions() object, modify it, and pass it to the grid drawer, as below. Note that the ACS1996 mode works best with a flexicanvas, since the drawn bond lengths are fixed, and this is not possible with MolsToGridImage. A large molecule in a small image will be scaled down to fit, but it will no longer by ACS1996 compliant and in extreme cases can look really horrible.
Dave

from rdkit import Chem
from rdkit.Chem import AllChem
from rdkit.Chem import Draw
from rdkit.Chem.Draw import rdMolDraw2D, rdDepictor
from rdkit.Chem.Draw import IPythonConsole
from IPython.display import SVG
from rdkit import rdBase
print(rdBase.rdkitVersion)
rdDepictor.SetPreferC…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MachineGUN001
Comment options

Answer selected by MachineGUN001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants