Class InChINumbersTools
java.lang.Object
org.openscience.cdk.graph.invariant.InChINumbersTools
Tool for calculating atom numbers using the InChI algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidparseAuxInfo(String aux, long[] numbers) Parse the atom numbering from the auxinfo.
-
Constructor Details
-
InChINumbersTools
public InChINumbersTools()
-
-
Method Details
-
getNumbers
Makes an array containing the InChI atom numbers of the non-hydrogen atoms in the atomContainer. It returns zero for all hydrogens.- Parameters:
atomContainer- TheIAtomContainerto analyze.- Returns:
- The number from 1 to the number of heavy atoms.
- Throws:
CDKException- When the InChI could not be generated
-
parseAuxInfo
Parse the atom numbering from the auxinfo.- Parameters:
aux- InChI AuxInfonumbers- the atom numbers
-
getUSmilesNumbers
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 or an array of length 0 if the container is empty
- Throws:
CDKException
-