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

Swagger doc - tools/remove-sugar endpoint gives an error as "Error generating SMILES" for the first example. #386

Closed
Tracked by #379
CS76 opened this issue Sep 9, 2023 · 4 comments · Fixed by #395 or #397
Assignees

Comments

@CS76
Copy link
Member

CS76 commented Sep 9, 2023

No description provided.

@CS76 CS76 mentioned this issue Sep 9, 2023
3 tasks
@CS76 CS76 changed the title Swagger doc - tools/remove-sugar endpoint gives an error as "Error generating SMILES" for the first parameter. Swagger doc - tools/remove-sugar endpoint gives an error as "Error generating SMILES" for the first example. Sep 9, 2023
@JonasSchaub
Copy link
Member

My guess is that this is a general problem. The error seems to occur whenever you give it a molecule that consists of sugars completely (e.g. Glucose "C(C1C(C(C(C(O1)O)O)O)O)O"). The SRU returns an empty IAtomContainer object in this case which seems to cause troubles down the line. You could check and treat this using IAtomContainer.isEmpty().

If you would like me to take care of this, it would be nice if someone could guide me on how to set the project up locally and how to push changes correctly.

@CS76
Copy link
Member Author

CS76 commented Sep 11, 2023

Thanks @JonasSchaub. This is resolved now - #393

@JonasSchaub
Copy link
Member

We have the same problem with the other two sugar removal routines.

@CS76
Copy link
Member Author

CS76 commented Sep 11, 2023

Fixed here #395

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