|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openscience.nmrshiftdb.util.AtomUtils
public class AtomUtils
Contains some utils for Molecules/Atoms
Field Summary | |
---|---|
private static org.openscience.cdk.interfaces.IRingSet |
allrings
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.BondsToAtomDescriptor |
btades
|
(package private) static int |
colsnumber
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.EffectiveAtomPolarizabilityDescriptor |
epdes
|
(package private) static java.lang.Boolean |
FALSE
|
(package private) static org.openscience.cdk.tools.HOSECodeGenerator |
hcg
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.IsProtonInAromaticSystemDescriptor |
ipiasdes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.IsProtonInConjugatedPiSystemDescriptor |
ipicpsdes
|
private static java.lang.Integer[] |
maxparameters
|
private static org.w3c.dom.Document |
normalizerdoc
|
private static org.openscience.cdk.interfaces.IMolecule |
oldmol
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.PiElectronegativityDescriptor |
pedes
|
(package private) static org.openscience.cdk.qsar.descriptors.atompair.PiContactDetectionDescriptor |
picondes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.PartialPiChargeDescriptor |
ppichargedes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.PartialSigmaChargeDescriptor |
psigmachargedes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.PeriodicTablePositionDescriptor |
ptpdes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_G3R |
rdfg3r
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GDR |
rdfgdr
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GHR |
rdfghr
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GHR_topol |
rdfghrtopol
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GSR |
rdfgsr
|
(package private) static int |
rownumber
|
(package private) static java.lang.String |
rowstext
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.SigmaElectronegativityDescriptor |
sedes
|
(package private) static org.openscience.cdk.qsar.descriptors.atomic.VdWRadiusDescriptor |
vdwrdes
|
Constructor Summary | |
---|---|
private |
AtomUtils()
Constructor for the AtomUtils object (private since only static methods) |
Method Summary | |
---|---|
static void |
addAndPlaceHydrogens(org.openscience.cdk.interfaces.IMolecule container)
Adds and places hydrogens to a molecule. |
static java.util.Map |
analyzeFuzzyCriteria(java.lang.String criteria,
boolean checkElements,
boolean checkmultis)
Analyzes a fuzzy search criteria string. |
static boolean |
checkIfOnlyOneStructure(org.openscience.cdk.interfaces.IMolecule mol)
This method checks if a cdk molecule object only contains one or multiple structures |
private static void |
doPidescriptors(org.openscience.cdk.interfaces.IAtomContainer ac,
org.openscience.cdk.interfaces.IAtom otheronfirstheavy,
float[] floats,
int startfield)
|
static org.openscience.cdk.interfaces.IRingSet |
getAllRings()
Gets the allRings attribute, set with last run of getProtonClass. |
static java.math.BigInteger |
getBigIntegerValue(java.util.BitSet bs,
int num)
Gets a BigIntger value representation of the Fingerprint bitset |
static float[] |
getDescriptorSet(DBCondition temp,
DBCondition field,
DBCondition solvent,
org.openscience.cdk.interfaces.IAtomContainer ac,
org.openscience.cdk.interfaces.IAtom a,
org.openscience.cdk.interfaces.IRingSet rs,
int protonclass)
Creates a set of Desctiptors taken from Jens Meilers's publications and Aires-do-Sousa.. |
static float[] |
getDescriptorSetDoSousa(org.openscience.cdk.interfaces.IAtomContainer ac,
org.openscience.cdk.interfaces.IAtom a,
org.openscience.cdk.interfaces.IAtom atomInFocus,
org.openscience.cdk.interfaces.IRingSet rs,
int protonclass)
Creates a set of Desctiptors taken from Aires-do-Sousa publications. |
static int |
getProtonClass(org.openscience.cdk.interfaces.IMolecule cdkmol,
int atomnumber,
org.openscience.cdk.interfaces.IRingSet ringSetL)
Gets the proton Class of a proton according to aires-do-sousa/gasteiger system. |
static java.lang.String |
getValuesForAtom(int atom,
java.lang.String specFile)
Gets the signals assigned to an atom out of the specfile as contained in specfile attribute of Spectrum in the database as a String like 1.2,3.4,... |
static java.lang.String |
getValuesForAtomWithNumber(int atom,
java.lang.String specFile,
double value,
int number)
Gets the signals assigned to an atom out of the specfile as contained in specfile attribute of Spectrum in the database as a String like 1.2,3.4,... |
private static void |
initminusone(float[] floats)
|
static java.util.ArrayList |
makeDoubleBondSet(org.openscience.cdk.interfaces.IMolecule mol,
java.util.List dbbonds,
boolean[] specification)
Produces a list of double bonds in a molecule. |
static boolean |
normalize(org.openscience.cdk.interfaces.IAtomContainer ac,
java.lang.String path)
Exuecutes cdk normalizer with given xml file |
static double[] |
predictRange(org.openscience.cdk.interfaces.IMolecule mol,
org.openscience.cdk.interfaces.IAtom a,
boolean calculated,
boolean measured,
int ignoreSpectrum,
java.lang.StringBuffer comment,
boolean commentWithMinMax,
boolean withRange,
org.apache.turbine.util.RunData runData,
java.util.Map predictionValuesForApplet,
int maxSpheresToUse,
boolean cache,
java.lang.StringBuffer hoseCodeOut,
boolean trueonly)
This method predicts the range and the shift of a C atom from the database. |
static org.openscience.cdk.interfaces.IMolecule |
rearangeAtoms(org.openscience.cdk.interfaces.IMolecule mol)
Sorts atoms like Cs-other heavy atoms-Hs. |
private static int |
setThisAtomAsLinked(org.openscience.cdk.interfaces.IAtom atom,
org.openscience.cdk.interfaces.IMolecule mol,
int alreadyTouched)
This method is called from checkIfOnlyOneStructure and counts the number of atoms which can be reached from atom. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static java.lang.String rowstext
static int rownumber
static int colsnumber
static org.openscience.cdk.qsar.descriptors.atomic.VdWRadiusDescriptor vdwrdes
static org.openscience.cdk.qsar.descriptors.atomic.SigmaElectronegativityDescriptor sedes
static org.openscience.cdk.qsar.descriptors.atomic.PiElectronegativityDescriptor pedes
static org.openscience.cdk.qsar.descriptors.atomic.BondsToAtomDescriptor btades
static org.openscience.cdk.qsar.descriptors.atomic.PeriodicTablePositionDescriptor ptpdes
static final java.lang.Boolean FALSE
static org.openscience.cdk.tools.HOSECodeGenerator hcg
static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_G3R rdfg3r
static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GDR rdfgdr
static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GHR rdfghr
static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GSR rdfgsr
static org.openscience.cdk.qsar.descriptors.atomic.RDFProtonDescriptor_GHR_topol rdfghrtopol
static org.openscience.cdk.qsar.descriptors.atomic.IsProtonInConjugatedPiSystemDescriptor ipicpsdes
static org.openscience.cdk.qsar.descriptors.atomic.IsProtonInAromaticSystemDescriptor ipiasdes
static org.openscience.cdk.qsar.descriptors.atomic.EffectiveAtomPolarizabilityDescriptor epdes
static org.openscience.cdk.qsar.descriptors.atomic.PartialPiChargeDescriptor ppichargedes
static org.openscience.cdk.qsar.descriptors.atomic.PartialSigmaChargeDescriptor psigmachargedes
static org.openscience.cdk.qsar.descriptors.atompair.PiContactDetectionDescriptor picondes
private static org.w3c.dom.Document normalizerdoc
private static org.openscience.cdk.interfaces.IMolecule oldmol
private static org.openscience.cdk.interfaces.IRingSet allrings
private static java.lang.Integer[] maxparameters
Constructor Detail |
---|
private AtomUtils()
Method Detail |
---|
public static java.lang.String getValuesForAtom(int atom, java.lang.String specFile)
atom
- The number of the atomspecFile
- The specfile
public static java.lang.String getValuesForAtomWithNumber(int atom, java.lang.String specFile, double value, int number)
atom
- The number of the atomspecFile
- The specfilevalue
- The value a text should be added tonumber
- This text is added to value in a form like Hnumber:
public static java.math.BigInteger getBigIntegerValue(java.util.BitSet bs, int num)
bs
- Fingerprint bitsetnum
- A number between 63 and 1023 representing one of the 16 sectors of the Fingerprint
public static int getProtonClass(org.openscience.cdk.interfaces.IMolecule cdkmol, int atomnumber, org.openscience.cdk.interfaces.IRingSet ringSetL) throws java.lang.Exception
cdkmol
- The molecule to analyzeatomnumber
- The atom to classifyarf
- An existing instace of allringsfinder, to save time.
java.lang.Exception
- Description of Exceptionpublic static org.openscience.cdk.interfaces.IRingSet getAllRings()
public static float[] getDescriptorSetDoSousa(org.openscience.cdk.interfaces.IAtomContainer ac, org.openscience.cdk.interfaces.IAtom a, org.openscience.cdk.interfaces.IAtom atomInFocus, org.openscience.cdk.interfaces.IRingSet rs, int protonclass) throws java.lang.Exception
ac
- The atom container.a
- The atom for which descriptors should be calculated.atomInFocusInteger
- The number of a as an Integer.rs
- The setOfAllRings of ac.
java.lang.Exception
- Description of Exception.private static void doPidescriptors(org.openscience.cdk.interfaces.IAtomContainer ac, org.openscience.cdk.interfaces.IAtom otheronfirstheavy, float[] floats, int startfield) throws java.lang.Exception
java.lang.Exception
private static void initminusone(float[] floats)
public static float[] getDescriptorSet(DBCondition temp, DBCondition field, DBCondition solvent, org.openscience.cdk.interfaces.IAtomContainer ac, org.openscience.cdk.interfaces.IAtom a, org.openscience.cdk.interfaces.IRingSet rs, int protonclass) throws java.lang.Exception
temp
- The temperature.field
- The field strength.solvent
- The solvent.ac
- The atomContainer.a
- The atom to create descriptors for.rs
- The setOfAllRings of ac
java.lang.Exception
- Description of Exceptionpublic static boolean normalize(org.openscience.cdk.interfaces.IAtomContainer ac, java.lang.String path)
ac
- The structure to normalize.path
- The file to use.
org.openscience.cdk.exception.InvalidSmilesException
- Description of Exception
org.xml.sax.SAXException
- Description of Exception
java.io.FileNotFoundException
- Description of Exception
java.io.IOException
- Description of Exception
javax.xml.parsers.ParserConfigurationException
- Description of Exception
org.openscience.cdk.exception.CDKException
- Description of Exceptionpublic static boolean checkIfOnlyOneStructure(org.openscience.cdk.interfaces.IMolecule mol)
mol
- The molecule to check
public static double[] predictRange(org.openscience.cdk.interfaces.IMolecule mol, org.openscience.cdk.interfaces.IAtom a, boolean calculated, boolean measured, int ignoreSpectrum, java.lang.StringBuffer comment, boolean commentWithMinMax, boolean withRange, org.apache.turbine.util.RunData runData, java.util.Map predictionValuesForApplet, int maxSpheresToUse, boolean cache, java.lang.StringBuffer hoseCodeOut, boolean trueonly) throws org.openscience.cdk.exception.CDKException, java.lang.Exception
comment
- Contains additional text after processing predictRange().mol
- The molecule the atoms comes from.a
- The atom the shift of which to be predicted.commentWithMinMax
- Shall min/max values be included in comments.ignoreSpectrum
- A molecule to be ignored in the prediction (null=none).withRange
- Is the range to be calculated as well ? (use only when needed for performance reasons).calculated
- Use calculated spectra.measured
- Use measured spectra.runData
- The current runData object.predictionValuesForApplet
- Will become the String to diplay the histogram in the applet, null if not wished.maxSpheresToUse
- Restrict number of spheres to use, to use max spheres set -1.cache
- true=Use HOSE_CODES table, false=do join query.hoseCodeOut
- Contains the used HOSE_CODE.
java.lang.Exception
- Database problems.
org.openscience.cdk.exception.CDKException
- Description of Exceptionpublic static java.util.ArrayList makeDoubleBondSet(org.openscience.cdk.interfaces.IMolecule mol, java.util.List dbbonds, boolean[] specification)
mol
- The molecule.dbbonds
- Description of Parameterspecification
- Description of Parameter
public static java.util.Map analyzeFuzzyCriteria(java.lang.String criteria, boolean checkElements, boolean checkmultis) throws NmrshiftdbException, java.io.IOException, java.lang.ClassNotFoundException
criteria
- The criteria to analyze.checkElements
- Tells if element name should be checked for validity.checkmultis
- Description of Parameter
NmrshiftdbException
- Criteria not correct (see message).
java.io.IOException
- From IsotopeFactory.
java.lang.ClassNotFoundException
- From IsotopeFactory.public static void addAndPlaceHydrogens(org.openscience.cdk.interfaces.IMolecule container) throws java.io.IOException, java.lang.ClassNotFoundException, org.openscience.cdk.exception.CDKException
container
- The molecule to saturate.
java.io.IOException
- Description of Exception.
java.lang.ClassNotFoundException
- Description of Exception.
org.openscience.cdk.exception.CDKException
- Description of Exceptionpublic static org.openscience.cdk.interfaces.IMolecule rearangeAtoms(org.openscience.cdk.interfaces.IMolecule mol) throws java.lang.Exception
mol
- The molecule to rearrange.
java.lang.Exception
- Problems writing mdl.private static int setThisAtomAsLinked(org.openscience.cdk.interfaces.IAtom atom, org.openscience.cdk.interfaces.IMolecule mol, int alreadyTouched)
atom.
- Parameters:
atom
- The atom to start from.mol
- The molecule the atom is contained in.alreadyTouched
- The number of already touched atoms, an integer==0 for the first call.
- Returns:
- The number of atoms to reach from
atom.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |