|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.im.df.api.chem.ChemUtils
public class ChemUtils
Utilities related to chemical classes. Currently support to search of the core when molecule search is executed. UI can color the molecule core using different color.
| Nested Class Summary | |
|---|---|
static class |
ChemUtils.MolCoreDescriptor
|
| Constructor Summary | |
|---|---|
ChemUtils()
|
|
| Method Summary | |
|---|---|
static String |
convertToSmartsRepresentation(Molecule m)
Generates the simplest smarts representation of the molecule. |
static String |
convertToSmilesRepresentation(Molecule m)
Generates the simplest smiles representation of the molecule. |
static String |
convertToStringRepresentation(Molecule m)
Generates the simplest smiles representation of the molecule. |
static JChemSearchOptions |
createJChemSearchOptions(DFOperator op,
JChemEntityCapability jchemCapability)
Temporary method for creating JChemSearchOptions instances for the specific operator and setting some default values |
static ChemUtils.MolCoreDescriptor |
findMolCoreDescriptor(DFTermExpression expression,
DFField field)
|
static int |
genSearchType(DFOperator op)
Temporary method finding appropriate JChemSearch search type constant
for the given operator. |
static Molecule |
getLastQueryEditedStructure()
|
static Molecule |
getMoleculeForQuery(Molecule previousMol)
|
static void |
setLastQueryEditedStructure(Molecule mol)
|
static void |
updateJChemSearchOptions(JChemSearchOptions jchemOpts,
DFOperator op,
JChemEntityCapability jchemCapability)
Temporary method for creating JChemSearchOptions instances for the specific operator and setting some default values |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChemUtils()
| Method Detail |
|---|
public static void setLastQueryEditedStructure(Molecule mol)
public static Molecule getLastQueryEditedStructure()
public static Molecule getMoleculeForQuery(Molecule previousMol)
public static ChemUtils.MolCoreDescriptor findMolCoreDescriptor(DFTermExpression expression,
DFField field)
public static int genSearchType(DFOperator op)
JChemSearch search type constant
for the given operator.
op - Operator must be a structure operator
JChemSearch search type constant
public static JChemSearchOptions createJChemSearchOptions(DFOperator op,
JChemEntityCapability jchemCapability)
op - The operator is filled inside JChemSearchOptions (this property must be
set first and can't be changed)jchemCapability - The JChem capability which determines some of the default settings
public static void updateJChemSearchOptions(JChemSearchOptions jchemOpts,
DFOperator op,
JChemEntityCapability jchemCapability)
op - The operator is filled inside JChemSearchOptions (this property must be
set first and can't be changed)jchemCapability - The JChem capability which determines some of the default settingspublic static String convertToSmilesRepresentation(Molecule m)
m - The molecule
IllegalArgumentException - If none of the smiles variants are supported.
Your code should expect this to happen on occasion.public static String convertToSmartsRepresentation(Molecule m)
m - The molecule
IllegalArgumentException - If none of the smiles variants are supported.
Your code should expect this to happen on occasion.public static String convertToStringRepresentation(Molecule m)
m - The molecule
IllegalArgumentException - If none of the smiles variants are supported.
Your code should expect this to happen on occasion.
|
com.im.df.api 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||