public class MoleculeTools extends Object
Modifier and Type | Field and Description |
---|---|
static int |
_FPLength |
protected static org.openscience.cdk.tools.CDKHydrogenAdder |
adder |
protected static String |
bracketLeft |
protected static String |
bracketRight |
protected static String |
delim |
protected static org.openscience.cdk.fingerprint.Fingerprinter |
fingerprinter |
protected static Logger |
logger |
protected static StructureTypeProcessor |
sp |
static String[] |
substanceType |
static int |
substTypeInorganic |
static int |
substTypeMetallic |
static int |
substTypeMixture |
static int |
substTypeOrganic |
Constructor and Description |
---|
MoleculeTools() |
Modifier and Type | Method and Description |
---|---|
static void |
add1ImplicitHAtom(org.openscience.cdk.interfaces.IAtom atom) |
static boolean |
analyzeSubstance(org.openscience.cdk.interfaces.IAtomContainer molecule) |
static void |
bitset2bigint16(BitSet bs,
int size,
BigInteger[] h16) |
static long |
bitset2Long(BitSet bs) |
static void |
clearProperties(org.openscience.cdk.interfaces.IChemObject chemObject) |
static void |
convertExplicitHAtomsToImplicit(org.openscience.cdk.interfaces.IAtomContainer mol) |
static void |
convertImplicitToExplicitHydrogens(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
Adds explicit hydrogens (without coordinates) to the IAtomContainer,
equaling the number of set implicit hydrogens.
|
static org.openscience.cdk.interfaces.IAtomContainer |
copyChangeBuilders(org.openscience.cdk.interfaces.IAtomContainer molecule,
org.openscience.cdk.interfaces.IChemObjectBuilder newBuilder)
Just copy atoms and bonds, discard all the flags, they will be
recalculated later
|
static BitSet |
getFingerPrint(String smiles) |
static BitSet |
getFingerPrint(String smiles,
int fpLength) |
static org.openscience.cdk.interfaces.IAtomContainer |
getMolecule(String smiles) |
protected static int |
getSubstanceType(String formula) |
protected static boolean |
hasBondOrderUnsetAromatic(org.openscience.cdk.interfaces.IAtomContainer mol) |
static org.openscience.cdk.interfaces.IAtom |
newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IAtom |
newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom atom) |
static org.openscience.cdk.interfaces.IAtom |
newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IElement element) |
static org.openscience.cdk.interfaces.IAtom |
newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
String atom) |
static org.openscience.cdk.interfaces.IAtomContainer |
newAtomContainer(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IAtomContainer |
newAtomContainer(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtomContainer molecule) |
static org.openscience.cdk.interfaces.IAtomContainerSet |
newAtomContainerSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IBond |
newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IBond |
newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom a1,
org.openscience.cdk.interfaces.IAtom a2) |
static org.openscience.cdk.interfaces.IBond |
newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom a1,
org.openscience.cdk.interfaces.IAtom a2,
org.openscience.cdk.interfaces.IBond.Order order) |
static org.openscience.cdk.interfaces.IBond |
newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom a1,
org.openscience.cdk.interfaces.IAtom a2,
org.openscience.cdk.interfaces.IBond.Order order,
org.openscience.cdk.interfaces.IBond.Stereo stereo) |
static org.openscience.cdk.interfaces.IChemFile |
newChemFile(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IChemModel |
newChemModel(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IChemSequence |
newChemSequence(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IElement |
newElement(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
String element) |
static org.openscience.cdk.interfaces.ILonePair |
newLonePair(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom atom) |
static org.openscience.cdk.interfaces.IAtomContainer |
newMolecule(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IAtomContainerSet |
newMoleculeSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.IPseudoAtom |
newPseudoAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
String element) |
static org.openscience.cdk.interfaces.IRing |
newRing(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
int i) |
static org.openscience.cdk.interfaces.IRingSet |
newRingSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder) |
static org.openscience.cdk.interfaces.ISingleElectron |
newSingleElectron(org.openscience.cdk.interfaces.IChemObjectBuilder builder,
org.openscience.cdk.interfaces.IAtom atom) |
static org.openscience.cdk.interfaces.IAtomContainer |
readCMLMolecule(InputStream in) |
static org.openscience.cdk.interfaces.IAtomContainer |
readCMLMolecule(String cml) |
static org.openscience.cdk.interfaces.IAtomContainer |
readMolfile(Reader reader) |
static org.openscience.cdk.interfaces.IAtomContainer |
readMolfile(String molfile) |
static org.openscience.cdk.interfaces.IAtomContainer |
readPDBfile(String molfile) |
static boolean |
repairBondOrder4(org.openscience.cdk.interfaces.IAtomContainer mol) |
protected static Logger logger
public static final int _FPLength
protected static org.openscience.cdk.tools.CDKHydrogenAdder adder
protected static org.openscience.cdk.fingerprint.Fingerprinter fingerprinter
public static final String[] substanceType
public static final int substTypeOrganic
public static final int substTypeInorganic
public static final int substTypeMixture
public static final int substTypeMetallic
protected static StructureTypeProcessor sp
protected static String delim
protected static String bracketLeft
protected static String bracketRight
public static org.openscience.cdk.interfaces.IAtomContainer getMolecule(String smiles) throws org.openscience.cdk.exception.InvalidSmilesException
org.openscience.cdk.exception.InvalidSmilesException
public static BitSet getFingerPrint(String smiles, int fpLength) throws Exception
Exception
public static BitSet getFingerPrint(String smiles) throws Exception
Exception
public static long bitset2Long(BitSet bs)
public static void bitset2bigint16(BitSet bs, int size, BigInteger[] h16)
public static boolean analyzeSubstance(org.openscience.cdk.interfaces.IAtomContainer molecule) throws IOException
IOException
protected static int getSubstanceType(String formula)
protected static boolean hasBondOrderUnsetAromatic(org.openscience.cdk.interfaces.IAtomContainer mol)
public static boolean repairBondOrder4(org.openscience.cdk.interfaces.IAtomContainer mol) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtomContainer readMolfile(Reader reader) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtomContainer readMolfile(String molfile) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtomContainer readPDBfile(String molfile) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtomContainer readCMLMolecule(String cml) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtomContainer readCMLMolecule(InputStream in) throws Exception
Exception
public static org.openscience.cdk.interfaces.IAtom newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IElement element)
public static org.openscience.cdk.interfaces.IAtom newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom atom)
public static org.openscience.cdk.interfaces.IAtom newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder, String atom)
public static org.openscience.cdk.interfaces.IAtom newAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IPseudoAtom newPseudoAtom(org.openscience.cdk.interfaces.IChemObjectBuilder builder, String element)
public static org.openscience.cdk.interfaces.ILonePair newLonePair(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom atom)
public static org.openscience.cdk.interfaces.IBond newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom a1, org.openscience.cdk.interfaces.IAtom a2, org.openscience.cdk.interfaces.IBond.Order order, org.openscience.cdk.interfaces.IBond.Stereo stereo)
public static org.openscience.cdk.interfaces.IBond newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom a1, org.openscience.cdk.interfaces.IAtom a2, org.openscience.cdk.interfaces.IBond.Order order)
public static org.openscience.cdk.interfaces.IBond newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom a1, org.openscience.cdk.interfaces.IAtom a2)
public static org.openscience.cdk.interfaces.IBond newBond(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IAtomContainer newAtomContainer(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IAtomContainer newMolecule(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IAtomContainer newAtomContainer(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtomContainer molecule)
public static org.openscience.cdk.interfaces.ISingleElectron newSingleElectron(org.openscience.cdk.interfaces.IChemObjectBuilder builder, org.openscience.cdk.interfaces.IAtom atom)
public static org.openscience.cdk.interfaces.IAtomContainerSet newMoleculeSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IAtomContainerSet newAtomContainerSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IChemModel newChemModel(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IChemSequence newChemSequence(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IChemFile newChemFile(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IRingSet newRingSet(org.openscience.cdk.interfaces.IChemObjectBuilder builder)
public static org.openscience.cdk.interfaces.IRing newRing(org.openscience.cdk.interfaces.IChemObjectBuilder builder, int i)
public static org.openscience.cdk.interfaces.IElement newElement(org.openscience.cdk.interfaces.IChemObjectBuilder builder, String element)
public static org.openscience.cdk.interfaces.IAtomContainer copyChangeBuilders(org.openscience.cdk.interfaces.IAtomContainer molecule, org.openscience.cdk.interfaces.IChemObjectBuilder newBuilder)
public static void clearProperties(org.openscience.cdk.interfaces.IChemObject chemObject)
public static void convertImplicitToExplicitHydrogens(org.openscience.cdk.interfaces.IAtomContainer atomContainer)
atomContainer
- the atom container to considerpublic static void convertExplicitHAtomsToImplicit(org.openscience.cdk.interfaces.IAtomContainer mol) throws Exception
Exception
public static void add1ImplicitHAtom(org.openscience.cdk.interfaces.IAtom atom)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.