public final class InChITautomerGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
KETO_ENOL
Generate InChI with -KET (keto-enol tautomers) option.
|
static int |
ONE_FIVE_SHIFT
Generate InChI with -15T (1,5-shift tautomers) option.
|
| Constructor and Description |
|---|
InChITautomerGenerator()
Create a tautomer generator, keto-enol (-KET) and 1,5-shifts (-15T) are disabled.
|
InChITautomerGenerator(int flags)
Create a tautomer generator specifygin whether to enable, keto-enol (-KET) and 1,5-shifts (-15T).
|
| Modifier and Type | Method and Description |
|---|---|
List<IAtomContainer> |
getTautomers(IAtomContainer mol)
Public method to get tautomers for an input molecule, based on the InChI which will be calculated by JNI-InChI.
|
List<IAtomContainer> |
getTautomers(IAtomContainer mol,
String inchi)
Deprecated.
use
getTautomers(IAtomContainer) directly |
public static final int KETO_ENOL
public static final int ONE_FIVE_SHIFT
public InChITautomerGenerator(int flags)
// enabled -KET option
InChITautomerGenerator tautgen = new InChITautomerGenerator(InChITautomerGenerator.KETO_ENOL);
// enabled both -KET and -15T
InChITautomerGenerator tautgen = new InChITautomerGenerator(InChITautomerGenerator.KETO_ENOL | InChITautomerGenerator.ONE_FIVE_SHIFT);
flags - the optionspublic InChITautomerGenerator()
public List<IAtomContainer> getTautomers(IAtomContainer mol) throws CDKException, CloneNotSupportedException
mol - molecule for which to generate tautomersCDKExceptionCloneNotSupportedException@Deprecated public List<IAtomContainer> getTautomers(IAtomContainer mol, String inchi) throws CDKException, CloneNotSupportedException
getTautomers(IAtomContainer) directlygetTautomers(IAtomContainer) as the mapping
between the two can be found more efficiently.mol - inchi - CDKExceptionCloneNotSupportedExceptionCopyright © 2021. All rights reserved.