Class JPlogPDescriptor.JPlogPCalculator
java.lang.Object
org.openscience.cdk.qsar.descriptors.molecular.JPlogPDescriptor.JPlogPCalculator
- Enclosing class:
JPlogPDescriptor
The class that calculated the logP according to the JPlogP method described in:
Journal of Cheminformatics 2018 10:61 https://doi.org/10.1186/s13321-018-0316-5
This is lower level access and should normally be obtained through the descriptor above.
- Author:
- Jeffrey
-
Constructor Summary
ConstructorsConstructorDescriptionJPlogPCalculator(Object[] params) Initialises the required coefficients for the trained model from the paper. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanprotected DoublecalcLogP(IAtomContainer struct) Given a structure in the correct configuration (explicit H and aromatised) it will return the logP as a Double or if it is out of domain (encounters an unknown atomtype) it will return Double.NaNprotected booleancarbonylConjugated(IAtom atom) protected booleancheckAlphaCarbonyl(IAtom atom, String symbol) Should be called from the carbonyl oxygenprotected booleandoubleBondHetero(IAtom atom) protected booleanelectronWithdrawing(IAtom atom) protected intgetCarbonSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for a Carbon Atomprotected intgetDefaultSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for a "Default" ie not C,N,O,H,F Atomprotected intgetFluorineSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for a Fluorine Atomprotected intgetHydrogenSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for a Hydrogen AtomgetMappedHologram(IAtomContainer struct) Used in Training the modelprotected intgetNitrogenSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for a Nitrogen Atomprotected doubleprotected intgetOxygenSpecial(IAtom atom) Determines and returns the SS (subsection) portion of the atomtype integer for an Oxygen Atomprotected int[]getPolarBondArray(IAtom atom) protected booleanprotected booleannextToAromatic(IAtom atom) protected intnonHNeighbours(IAtom atom) void
-
Constructor Details
-
JPlogPCalculator
Initialises the required coefficients for the trained model from the paper. -
JPlogPCalculator
public JPlogPCalculator()
-
-
Method Details
-
calcLogP
Given a structure in the correct configuration (explicit H and aromatised) it will return the logP as a Double or if it is out of domain (encounters an unknown atomtype) it will return Double.NaN- Parameters:
struct- the structure to calculate it must have explicit H and be aromatised.- Returns:
- The calculated logP as a Double
-
getMappedHologram
Used in Training the model- Parameters:
struct-- Returns:
- Map representing the Hologram of the given structure
-
getHydrogenSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for a Hydrogen Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
getDefaultSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for a "Default" ie not C,N,O,H,F Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
getFluorineSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for a Fluorine Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
getOxygenSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for an Oxygen Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
getNitrogenSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for a Nitrogen Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
getCarbonSpecial
Determines and returns the SS (subsection) portion of the atomtype integer for a Carbon Atom- Parameters:
atom-- Returns:
- the final 2 digits for the given atom
-
checkAlphaCarbonyl
-
boundTo
-
getNumMoreElectronegativethanCarbon
- Parameters:
atom-- Returns:
- bond order for electron withdrawing atoms from the given atom ie =O = 2
-
electronWithdrawing
- Parameters:
atom-- Returns:
- true if the atom is considered electron withdrawing relative to carbon (N,O,S,F,Cl,Br,I)
-
nonHNeighbours
- Parameters:
atom-- Returns:
- number of heavy atoms bound to the atom
-
getPolarBondArray
- Parameters:
atom-- Returns:
- in array of bond information to polar atoms array form is [single, aromatic, double, triple]
-
isPolar
- Parameters:
atom-- Returns:
- true if atom is a "polar atom" (O,N,S,P)
-
doubleBondHetero
- Parameters:
atom-- Returns:
- true if atom is doublebonded to a heteroatom (polar atom)
-
carbonylConjugated
- Parameters:
atom-- Returns:
- true if atom is singly bonded to a carbonyl
-
nextToAromatic
- Parameters:
atom-- Returns:
- true if single bonded to an aromatic atom
-
getCoeffs
-
setCoeffs
-