Skip to content

Molecule layout seems bugging out #1035

@parit

Description

@parit

Hello,

I am generating image for this molecule using it's smiles representation
https://www.ebi.ac.uk/chebi/searchId.do?chebiId=58827

String smiles="C[C@]1(CC([O-])=O)[C@H](CCC([O-])=O)\\C2=C\\c3[nH]c(Cc4[nH]c(\\C=C5/N=C(/C=C1\\[NH2+]2)[C@@H](CCC([O-])=O)[C@]5(C)CC([O-])=O)c(CC([O-])=O)c4CCC([O-])=O)c(CCC([O-])=O)c3CC([O-])=O";
IChemObjectBuilder bldr = SilentChemObjectBuilder.getInstance();
SmilesParser smipar = new SmilesParser(bldr);
IAtomContainer mol = smipar.parseSmiles(smiles);
DepictionGenerator dptgen = new DepictionGenerator();
dptgen.withSize(200, 250)
	.withMolTitle()
	.withTitleColor(Color.DARK_GRAY);
dptgen.depict(mol).writeTo("chebi-58827.png");

The resulting image looks distorted when compared to what the ChEBI is drawing.
chebi-58827

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions