What does your code look like
- John On 4 Sep 2024, at 21:03, Velusamy Velu <kool.v...@gmail.com> wrote:
Hi John:
I appreciate your feedback. I'm using version 2.9 of CDK. Our requirement needs to construct the Porphyrin molecule programmatically as instance of the IAtomContainer and use the depictor. The >N-H decision is a matter of choice. When I replaced the >N-H as you have done (>NH) the result I received was still with the second lines of double bonds out. ![image.png]() Thanks for the pointers you provided, I will review those documents.
Velusamy K. Velu
614-323-9649
It's true we do still push the hydrogens out like that (see below), it's a bit tricky to fix as is due the macrocycle processor. However since you had that it hints perhaps you have just found some old documentation on how to depict molecules are using the wrong classes (generators).
You are probably using a very ancient version.
Pasting the SMILES for Porphyrin on Wikipedia: C1=CC2=CC5=CC=C(C=C4C=CC(C=C3C=CC(=CC1=N2)N3)=N4)N5 I get:
Hi I ran into an issue with the image of the porphyrin molecule.
The original image from Wikipedia is: I drew it as below: ![image.png]() Then I let the CDK layout the image, which did a good job except for the placement of the second lines of double bonds, as shown below. ![image.png]() I thought the explicit bond between H & N was the cause, so I replaced those N-H instances with NH, then tried again. This time it still put those second lines out, as below. Any idea how to fix this?
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user
|
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user