|
com.im.df.api 6.0 | ||||||||
| 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
Key for storing 2D standardized molecules with Structure#storeMolecules(java.lang.String, T[], java.lang.Object) . |
static String |
STANDARDIZED_NATIVE
Key for storing standardized molecules with Structure#storeMolecules(java.lang.String, T[], java.lang.Object) . |
| Fields inherited from class com.im.df.api.chem.Structure |
|---|
encodedMol |
| 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()
Get the Molecules in 2 dimensional representation. |
String |
getEncodedMol()
Get the molecule in its original String form. |
Molecule |
getNative()
Get underlying Molecule. |
Molecule |
getNative2D()
Get the Molecule in 2 dimensional representation. |
int |
hashCode()
|
Exception |
parseExceptionException()
|
String |
toString()
|
static MarvinStructure |
valueOf(Object value)
Create new instance from an instance. |
| Methods inherited from class com.im.df.api.chem.Structure |
|---|
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
Structure#storeMolecules(java.lang.String, T[], java.lang.Object) .
public static final String STANDARDIZED_NATIVE
Structure#storeMolecules(java.lang.String, T[], java.lang.Object) .
| Constructor Detail |
|---|
public MarvinStructure()
public MarvinStructure(String mol)
mol - The molecule, in one of the formats that Marvin recognises.public MarvinStructure(Molecule mol)
mol - The Molecule instance
public MarvinStructure(String molecule,
boolean validate)
throws IllegalArgumentException
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 getEncodedMol()
Structure
getEncodedMol in class Structure<Molecule>public String toString()
toString in class Structure<Molecule>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 getNative()
getNative in class Structure<Molecule>public Molecule[] getAllMolecules()
public Molecule getNative2D()
getNative2D in class Structure<Molecule>public Molecule[] getAllNative2D()
public static MarvinStructure valueOf(Object value)
value - either MarvinStructure or String.
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
com.im.df.api 6.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||