|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.chem.Structure<Molecule>
com.im.df.api.chem.MarvinStructure
public class MarvinStructure
A representation of a molecular structure that uses the ChemAxon Molecule as its native
format.
| Field Summary | |
|---|---|
static String |
STANDARDIZED_2D
|
static String |
STANDARDIZED_NATIVE
|
| Constructor Summary | |
|---|---|
MarvinStructure()
Creates a new instance of MarvinStructure with an empty Molecule |
|
MarvinStructure(Molecule mol)
Create a new instance with a molecule specified as a Marvin Molecule instance. |
|
MarvinStructure(String mol)
Create a new instance with the structure specified as a String. |
|
MarvinStructure(String molecule,
boolean validate)
Create, but optionally check that the molecule is a valid. |
|
| Method Summary | |
|---|---|
String |
asSimpleText(DFOperator operator)
Format the structure as appropriate in smiles or smarts fromat, according to the search orerator (if available). |
boolean |
equals(Object obj)
|
Molecule[] |
getAllMolecules()
|
Molecule[] |
getAllNative2D()
|
Molecule |
getNative()
Get the molecule in its native format Never returns null. |
Molecule |
getNative2D()
Get the Molecule in 2 dimensional representation |
int |
hashCode()
|
Exception |
parseExceptionException()
|
String |
toString()
|
| Methods inherited from class com.im.df.api.chem.Structure |
|---|
getEncodedMol, retrieveMolecule, retrieveMolecules, setEncodedMol, storeMolecule, storeMolecules |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String STANDARDIZED_2D
public static final String STANDARDIZED_NATIVE
| Constructor Detail |
|---|
public MarvinStructure()
public MarvinStructure(String mol)
mol - The molecule, in one of the formats that Marvin recognises.public MarvinStructure(Molecule mol)
The - Molecule instance
public MarvinStructure(String molecule,
boolean validate)
Molecule object using
MolImporter
molecule - The structurevalidate - Whether to validate the structure. If so the native form of the molecule is created
immediately.
IllegalArgumentException - if structure is invalid| Method Detail |
|---|
public String toString()
toString in class Structure<Molecule>public Molecule getNative()
Structure
getNative in class Structure<Molecule>public Molecule[] getAllMolecules()
public Exception parseExceptionException()
public String asSimpleText(DFOperator operator)
StructureThe decission on smiles vs. smarts is taken based on the operator. For perfect, similarity and superstructure type smiles is used, for other types smarts is used. If operator is not specified then smarts format is returned.
To convert Molecule you can use also these two methods:
ChemUtils.convertToSmilesRepresentation(chemaxon.struc.Molecule) and
ChemUtils.convertToSmartsRepresentation(chemaxon.struc.Molecule).
asSimpleText in class Structure<Molecule>operator - The search operator if it's available. It's allowed to put null here
public Molecule getNative2D()
getNative2D in class Structure<Molecule>public Molecule[] getAllNative2D()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
com.im.df.api 5.9 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||