|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.guha.util.cdk.Misc
public class Misc
Miscellaneous utility methods.
| Field Summary | |
|---|---|
static java.lang.String |
VERSION
Version of this library. |
| Constructor Summary | |
|---|---|
Misc()
|
|
| Method Summary | |
|---|---|
static org.openscience.cdk.interfaces.IMolecule |
get2DCoords(org.openscience.cdk.interfaces.IAtomContainer mol)
Get a molecule with 2D coordinates. |
static org.openscience.cdk.interfaces.IAtomContainer |
getNeedle(org.openscience.cdk.interfaces.IAtomContainer target,
java.lang.String pattern)
Get the substructure of a target structure based on a SMARTS pattern. |
static org.openscience.cdk.interfaces.IAtomContainer[] |
loadMolecules(java.lang.String[] filenames)
Loads one or more files into IAtomContainer objects. |
static void |
writeMolecules(org.openscience.cdk.interfaces.IAtomContainer[] molecules,
java.lang.String prefix,
int writeProps)
Write molecules to individual files. |
static void |
writeMoleculesInOneFile(org.openscience.cdk.interfaces.IAtomContainer[] molecules,
java.lang.String filename,
int writeProps)
Write multiple molecules to a single SD file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String VERSION
| Constructor Detail |
|---|
public Misc()
| Method Detail |
|---|
public static void writeMoleculesInOneFile(org.openscience.cdk.interfaces.IAtomContainer[] molecules,
java.lang.String filename,
int writeProps)
throws java.lang.Exception
molecules - An array of moleculesfilename - The filename to write towriteProps - If true, properties will be added as SD tags
java.lang.Exception - if there is an error during writing
public static void writeMolecules(org.openscience.cdk.interfaces.IAtomContainer[] molecules,
java.lang.String prefix,
int writeProps)
throws java.lang.Exception
molecules - An array of moleculesprefix - The prefix for the individual files. By default this will be molwriteProps - If true properties will be written as SD tags
java.lang.Exception - if there is an error during writing
public static org.openscience.cdk.interfaces.IAtomContainer[] loadMolecules(java.lang.String[] filenames)
throws org.openscience.cdk.exception.CDKException
filenames - An array of String's containing the filenames of the
structures we want to load
org.openscience.cdk.exception.CDKException - if there is an error when reading a file
public static org.openscience.cdk.interfaces.IMolecule get2DCoords(org.openscience.cdk.interfaces.IAtomContainer mol)
throws java.lang.Exception
mol - the input molecule
java.lang.Exception - if there was an error generating coordinates
public static org.openscience.cdk.interfaces.IAtomContainer getNeedle(org.openscience.cdk.interfaces.IAtomContainer target,
java.lang.String pattern)
throws org.openscience.cdk.exception.CDKException
target - The target moleculepattern - The SMARTS pattern for the substructure. The string can be a
plain SMARTS or a Base64 encoded string
org.openscience.cdk.exception.CDKException - if there is an error during SMARTS
parsing or matching
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||