Repository navigation
IndigoRender rotate image #1906
Answered by
AlexanderSavelyev
Apr 24, 2024
Replies: 4 comments
|
Hi @twall . It is not clear what exactly is required. It seems like not rendering but re-layout a molecule with appropriate angle and center of the rotation. Is it correct? If you want to highlight substructure, one can use highlightedTarget |
0 replies
|
Suppose I’m displaying two identical molecules but for whatever reason one
is rendered upside down. How do I correct that? I can do a CSS transform,
but that leaves the labels inverted.
Ideally I would be able to automatically align and highlight similarities
of two molecules, but I don’t think that’s possible currently without some
extra input. So my starting point is to just enable the user to rotate one
or the other images.
…On Wed, Apr 10, 2024 at 4:59 AM Aleksandr Savelev ***@***.***> wrote:
Hi @twall <https://github.com/twall> . It is not clear what exactly is
required. It seems like not rendering but re-layout a molecule with
appropriate angle and center of the rotation. Is it correct? If you want to
highlight substructure, one can use highlightedTarget
match = indigo.substructureMatcher(mol).match(query)
if match:
match.highlightedTarget().saveMolfile("highlighted.mol")
—
Reply to this email directly, view it on GitHub
<#1906 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFYZLM3QBYB7UECZ2ZYJYLY4T5N5AVCNFSM6AAAAABF5N2S7OVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TANRYGQZDG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
0 replies
|
Thank you for the highlighting tip, though, I was not aware of that
functionality (the docs, particularly for nosql, are rather thin).
…On Wed, Apr 10, 2024 at 4:59 AM Aleksandr Savelev ***@***.***> wrote:
Hi @twall <https://github.com/twall> . It is not clear what exactly is
required. It seems like not rendering but re-layout a molecule with
appropriate angle and center of the rotation. Is it correct? If you want to
highlight substructure, one can use highlightedTarget
match = indigo.substructureMatcher(mol).match(query)
if match:
match.highlightedTarget().saveMolfile("highlighted.mol")
—
Reply to this email directly, view it on GitHub
<#1906 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFYZLM3QBYB7UECZ2ZYJYLY4T5N5AVCNFSM6AAAAABF5N2S7OVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TANRYGQZDG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
0 replies
|
As a solution we can suggest to use XYZ function for atoms and rotate using standard rotation matrix. See the following code as an example |
0 replies
Answer selected by
AlexanderSavelyev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




As a solution we can suggest to use XYZ function for atoms and rotate using standard rotation matrix. See the following code as an example