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

Explicit hydrogens #32

Open
kjelljorner opened this issue Dec 7, 2021 · 1 comment
Open

Explicit hydrogens #32

kjelljorner opened this issue Dec 7, 2021 · 1 comment

Comments

@kjelljorner
Copy link

We've encountered a case where we want to run a reaction with explicit hydrogens. From what I can see, the default behavior of rdchiral is to strip them at the stage of creating the reactants. Would it be possible to do just change that line to allow explicit hydrogens, or would that break things further along in the code?

reactants = Chem.MolFromSmiles(reactant_smiles)

A possible change would be:

params = Chem.SmilesParserParams()
params.removeHs = False
reactants = Chem.MolFromSmiles(reactant_smiles, params)
@kjelljorner
Copy link
Author

I made a fork with this change that we will test out: https://github.com/kjelljorner/rdchiral. Can open a pull request if needed.

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

1 participant