User 6baabcf48d
27-10-2016 01:37:43
Hello,
I have following compound
inchi key : QXNRVGDNHDTVOL-UHFFFAOYSA-N
smiles : CC1=CN2C(=NC(=N2)NC(C)CO)C=C1
I tried to import it into MarvinJS by smiles, then export directly without making any change, I have got
inchi key : QXNRVGDNHDTVOL-UHFFFAOYNA-N (different inchi key)
smiles : CC(CO)NC1=NN2C=C(C)C=CC2=N1 (different smiles)
What configuration should I do to force export standard inchi key ? In order to get the same inchi key as my input.
Thanks,
William
ChemAxon 76c88f5366
28-10-2016 11:21:44
Hi William,
There a can be many different SMILES representations for the same molecule.
(If you are interested in SMILES representation in Marvin JS, please check this documentation: https://docs.chemaxon.com/display/docs/SMILES style="font-size: 13px;">).
In your case the molecule may contained some stereo information that resulted in the non-standard InChiKey export. Setting stereochemistry as absolute, should do the trick.
In this situation, by setting the "Absolute stereo" chiral flag *, and then exporting the InChiKey, you should get the expected InChiKey.
I hope this will solve the problem.
Best regards,
Eszter
*(by right-clicking on the Canvas, and selecting "Absolut stereo (chiral)" option from the list)
User 6baabcf48d
28-10-2016 13:22:00
Hello,
Thanks, It can work, however, can this be configured from the server side ? Like always choose Absolut stereo (chiral) by default.
Regards,
Willliam
ChemAxon 76c88f5366
28-10-2016 14:57:26
User 6baabcf48d
21-11-2016 04:03:23
ChemAxon 76c88f5366
21-11-2016 10:17:11
Dear William,
Marvin JS editor exports structures to other formats with its default export parameters. That is why it did not work that you imported SMILES to the editor, and exported it as InChiKey at the first place.
As the exportStructure() function calls the editor's exporting mechanism, that should not work either.
For Marvin JS exportStructure() function, you can only set whether exporting mrv with unique atom and bond id-s, and the visibility settings for images.
What could be a solution for you is to call molExport (or stringMolExport) web service directly. (For example via an ajax call.)
(https://restdemo.chemaxon.com/apidocs/#stringMolExport
/>The relevant part starts with: 8.1 Simple Format Conversion)
You need to send a POST request to molExport (or stringMolExport) web service with the following body for example:
{
"structure": "CCCCC",
"parameters": "inchikey:SAbs"
}
In the response of the service you should get the standard InChiKey.
(MolExporter web service recognises all the export options, you can find in the documentation: https://docs.chemaxon.com/display/docs/InChi+and+InChiKey+export+options)
I hope this will help.
Best regards,
Eszter
User 6baabcf48d
29-11-2016 14:59:37
Hello, Eszter
Thank you for your detailed explanation, that definitely helps.
Regards,
William
ChemAxon 76c88f5366
30-11-2016 09:36:28
Hi William,
If you need more information or if any further question arises, let us know.
Regards,
Eszter