Class InChINumbersTools
- java.lang.Object
-
- org.openscience.cdk.graph.invariant.InChINumbersTools
-
-
Constructor Summary
Constructors Constructor Description InChINumbersTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static long[]
getNumbers(IAtomContainer atomContainer)
Makes an array containing the InChI atom numbers of the non-hydrogen atoms in the atomContainer.static long[]
getUSmilesNumbers(IAtomContainer container)
Obtain the InChI numbers for the input container to be used to order atoms in Universal SMILES [O'Boyle, Noel. Journal of Cheminformatics. 2012. 4].static void
parseAuxInfo(String aux, long[] numbers)
Parse the atom numbering from the auxinfo.
-
-
-
Method Detail
-
getNumbers
public static long[] getNumbers(IAtomContainer atomContainer) throws CDKException
Makes an array containing the InChI atom numbers of the non-hydrogen atoms in the atomContainer. It returns zero for all hydrogens.- Parameters:
atomContainer
- TheIAtomContainer
to analyze.- Returns:
- The number from 1 to the number of heavy atoms.
- Throws:
CDKException
- When the InChI could not be generated
-
parseAuxInfo
public static void parseAuxInfo(String aux, long[] numbers)
Parse the atom numbering from the auxinfo.- Parameters:
aux
- InChI AuxInfonumbers
- the atom numbers
-
getUSmilesNumbers
public static long[] getUSmilesNumbers(IAtomContainer container) throws CDKException
Obtain the InChI numbers for the input container to be used to order atoms in Universal SMILES [O'Boyle, Noel. Journal of Cheminformatics. 2012. 4]. The numbers are obtained using the fixedH and RecMet options of the InChI. All non-bridged hydrogens are labelled as 0.- Parameters:
container
- the structure to obtain the numbers of- Returns:
- the atom numbers
- Throws:
CDKException
-
-