InChIKey
- class InchiKey[source]
Bases:
MoleculeKeyMaker
Used to get the InChIKey of molecules.
Examples
Adding InChIKey to a Molecule’s JSON
You want to use the InChIKey as part of a JSON representation of a molecule
import stk jsonizer = stk.MoleculeJsonizer( key_makers=(stk.InchiKey(), ), ) # Get the JSON representation, including an InChIKey. json = jsonizer.to_json(stk.BuildingBlock('NCCN'))
Methods
get_key
(molecule)Get the key of molecule.
Get the name of the key.