Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadFormatData .cdxml #284

Open
keeper1030 opened this issue Jul 11, 2022 · 1 comment
Open

LoadFormatData .cdxml #284

keeper1030 opened this issue Jul 11, 2022 · 1 comment

Comments

@keeper1030
Copy link

Could I load data of .cdxml format?
Addtionally, When I load .cdx format data, it generates the error.
스크린샷 2022-07-11 오후 5 31 43

Also. .smi generates error too.
스크린샷 2022-07-11 오후 5 32 57

@partridgejiang
Copy link
Owner

The OpenBabel wasm compliation is used to load CDX format data. From the error message, the OpenBabel lib failed to load the data itself. By the way, even when OpenBabel loading CDX data successfully, all objects expect molecules will also be discarded.

OpenBabel does support CDXML format but relies some external XML libraries. When compiling to wasm, those external libs are stripped to reduce the compilation size and avoid some other problems. So currently, CDXML can not be used in Kekule.js yet.

And the error in loading SMILES seems to be caused by same-origin policy of browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants