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

Restructure SMILES lookup services into chain of responsibility #22

Merged
merged 7 commits into from
Aug 27, 2017

Conversation

lambdacasserole
Copy link
Owner

Previously we were only using the service at https://cactus.nci.nih.gov/chemical/structure for SMILES lookups from compound names. This works pretty well, but sometimes we get SMILES back that contains vertical pipe | characters which breaks Sourire and won't render. These mainly seem to appear in organometallic compounds (ligand-related?) and just don't play nice with the renderer.

To remedy this, we now fall back to attempting to scrape the SMILES from the compound's Wikipedia page. This means it was necessary to restructure SMILES lookup services to support the chain of responsibility pattern.

@lambdacasserole lambdacasserole merged commit 33e5ead into master Aug 27, 2017
@lambdacasserole lambdacasserole deleted the vertical-pipe-fix branch August 27, 2017 18:47
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

Successfully merging this pull request may close these issues.

None yet

1 participant