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

Getters to InChIKey and augmented InChI in Molecule #75

Conversation

nickvandewiele
Copy link
Contributor

This branch adds

-getter to the hashed InChI via OpenBabel similar to the InChI getter already present.
-creates the 'augmented InChI' to cope with structures having more than one unpaired electron. This is done by adding a layer to the InChI(Key) named 'mult' followed by the total number of unpaired electrons + 1

-unit tests for the new functionality

Since the added methods do not intrude previous functionality nor do they add fields to Molecule, I don't see many risks in adding this.

A possible improvement would be to externalize all getters to line identifiers from Molecule and put them in a separate module.

similar to InChI getter via OpenBabel.
Removes the checksum characters (last 2)
Augmented InChI adds a layer denoted by /mult at the end of the existing
inchi to cope with polyradicals (>=2).

The number returned in the /mult layer equals the total number of
unpaired electrons + 1
similar to the augmented InChI the InChIKey is extended with a
/mult layer
@rwest
Copy link
Member

rwest commented May 23, 2012

Thanks @nickvandewiele. I have rebased this, made some minor changes, and merged into my master. Waiting for Josh to merge from there into GreenGroup.

@rwest rwest closed this May 23, 2012
@rwest rwest reopened this May 23, 2012
@nickvandewiele
Copy link
Contributor Author

Yes you are completely right! thanks reviewing it.

@rwest rwest closed this in d14978f Jun 5, 2012
@nickvandewiele nickvandewiele deleted the inchiKeyAug branch June 20, 2014 19:36
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.

2 participants