|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MolecularDescriptor
chemaxon.descriptors.ShapeDescriptor
public class ShapeDescriptor
Shape descriptor implements a 3D alignment based similarity calculation. At descriptor generation a specific molecule representation is stored and additional data is calculated. The similarity calculation itself compares two of such representations using (flexible) 3D structural overlay.
| Field Summary |
|---|
| Fields inherited from class chemaxon.descriptors.MolecularDescriptor |
|---|
params |
| Constructor Summary | |
|---|---|
ShapeDescriptor()
|
|
ShapeDescriptor(ShapeDescriptor sh)
Copy constructor. |
|
ShapeDescriptor(ShapeParameters params)
Creates a new instance of ShapeDescriptor according to the parameters given. |
|
ShapeDescriptor(java.lang.String params)
Creates a new instance of ShapeDescriptor according to the parameters given.s |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the fingerprint, all values are set to zero. |
ShapeDescriptor |
clone()
Creates a new instance with identical internal state. |
void |
fromData(byte[] dbRepr)
Builds a MolecularDescriptor object from its external
(database) representation. |
void |
fromFloatArray(float[] descr)
Builds a molecular descriptor from its float array representation. |
void |
fromString(java.lang.String descr)
Builds a molecular descriptor from its string representation. |
java.lang.String[] |
generate(Molecule m)
Creates the descriptor for the given Molecule. |
AlignmentMolecule |
getAlignmenMolecule()
|
float[] |
getDefaultDissimilarityMetricThresholds()
Gets the default dissimilarity threshold values for all dissimilarity metrics defined. |
float |
getDefaultThreshold(int metricIndex)
Gets a metric dependent default threshold value. |
float |
getDissimilarity(MolecularDescriptor other)
Calculates the dissimilarity ratio between two MolecularDescriptor
objects using the default metric. |
float |
getDissimilarity(MolecularDescriptor other,
int parametrizedMetricIndex)
Calculates the dissimilarity between two MolecularDescriptor
objects using the specified metric, apart from that it is the same as
getDissimilarity( final MolecularDescriptor other ). |
java.lang.String[] |
getDissimilarityMetrics()
Gets the dissimilarity metric names in an array. |
float |
getHistogramSimilarity(MolecularDescriptor other)
|
java.lang.String |
getName()
Gets the name of the ShapeDescriptor fingerprint object. |
java.lang.String |
getParametersClassName()
Gets the name of the parameters class corresponding to the descriptor. |
float |
getShapeSimilarity(MolecularDescriptor other)
|
java.lang.String |
getShortName()
Gets the short name of the fingerprint. |
boolean |
isLicensed()
|
void |
setAlignmentMolecule(AlignmentMolecule am)
|
void |
setLicenseEnvironment(java.lang.String env)
|
void |
setParameters(java.lang.String parameters)
Sets the parameters of an already created ShapeDescriptor object. |
java.lang.String |
toBinaryString()
Creates the binary string representation of a MolecularDescriptor
object. |
byte[] |
toData()
Converts the internal (memory) representation of a MolecularDescriptor instance into an external format that
can be stored in a database. |
java.lang.String |
toDecimalString()
Creates the string representation of a MolecularDescriptor
object. |
float[] |
toFloatArray()
Creates the float array representation of a MolecularDescriptor
object. |
java.lang.String |
toString()
Creates the string representation of a MolecularDescriptor
object. |
| Methods inherited from class chemaxon.descriptors.MolecularDescriptor |
|---|
generate, getAtomSetColors, getAtomSetIndexes, getAtomSetNames, getDefaultMetricIndex, getDissimilarityMetricIndex, getLowerBound, getMetricIndex, getMetricName, getMetricName, getNumberOfMetrics, getNumberOfWeights, getParameters, getThreshold, getThreshold, main, needsConfig, newInstance, newInstance, newInstanceFromXML, setParameters, setScreeningConfiguration |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShapeDescriptor()
public ShapeDescriptor(ShapeParameters params)
params - parameter settingspublic ShapeDescriptor(java.lang.String params)
params - parameter settingspublic ShapeDescriptor(ShapeDescriptor sh)
ShapeDescriptor
passed is created. The old and the new instances share the same
ShapeDescriptorParameters object.
sh - fingerprint to be copied| Method Detail |
|---|
public float getDefaultThreshold(int metricIndex)
getDefaultThreshold in class MolecularDescriptormetricIndex - index of a parameterized metricpublic float[] getDefaultDissimilarityMetricThresholds()
getDefaultDissimilarityMetricThresholds in class MolecularDescriptorpublic void setLicenseEnvironment(java.lang.String env)
setLicenseEnvironment in interface chemaxon.license.Licensablepublic boolean isLicensed()
isLicensed in interface chemaxon.license.Licensablepublic ShapeDescriptor clone()
MolecularDescriptor
clone in class MolecularDescriptorpublic void setAlignmentMolecule(AlignmentMolecule am)
public java.lang.String[] generate(Molecule m)
throws MDGeneratorException
MolecularDescriptor
generate in class MolecularDescriptorMDGeneratorException - when failed to generate descriptorpublic java.lang.String getName()
ShapeDescriptor fingerprint object. This name is
not the same as the class name: nicer, and more meaningful for end-users
too.
getName in class MolecularDescriptorShapeDescriptor class objectspublic java.lang.String getShortName()
getShortName in class MolecularDescriptorpublic java.lang.String getParametersClassName()
getParametersClassName in class MolecularDescriptor
public void setParameters(java.lang.String parameters)
throws MDParametersException
ShapeDescriptor object.
setParameters in class MolecularDescriptorparameters - parameter settings for the fingerprint
MDParametersException - any XML errorpublic void clear()
public byte[] toData()
MolecularDescriptorMolecularDescriptor instance into an external format that
can be stored in a database.
toData in class MolecularDescriptorpublic void fromData(byte[] dbRepr)
MolecularDescriptorMolecularDescriptor object from its external
(database) representation.
fromData in class MolecularDescriptordbRepr - an array generated by toData()public java.lang.String toString()
MolecularDescriptorMolecularDescriptor
object. This string value is stored in SDfiles, though the use of this
string is not limited to this purpose. Typically, this string is compact,
for instance zero values are not necessarily printed.
toString in class MolecularDescriptorpublic java.lang.String toDecimalString()
MolecularDescriptorMolecularDescriptor
object. This string value contains all values of the descriptor
(including all zeros), values are separated by tabs.
toDecimalString in class MolecularDescriptor
public void fromString(java.lang.String descr)
throws java.text.ParseException
MolecularDescriptor
fromString in class MolecularDescriptordescr - descriptor string, previously generated by toString()
java.text.ParseExceptionpublic float[] toFloatArray()
MolecularDescriptorMolecularDescriptor
object. This array contains all values of the descriptor
(including all zeros) in the elements of the array.
toFloatArray in class MolecularDescriptorpublic void fromFloatArray(float[] descr)
MolecularDescriptor
fromFloatArray in class MolecularDescriptordescr - descriptor represented in a float array
(e.g. generated by toFloatArray())public java.lang.String toBinaryString()
MolecularDescriptorMolecularDescriptor
object.
toBinaryString in class MolecularDescriptorpublic java.lang.String[] getDissimilarityMetrics()
MolecularDescriptor
getDissimilarityMetrics in class MolecularDescriptorpublic float getDissimilarity(MolecularDescriptor other)
MolecularDescriptorMolecularDescriptor
objects using the default metric.
Default metric is set in the corresponding MDParameters
object.
In the case of asymmetric distances swapping the two descriptors can
make a big difference.
getDissimilarity in class MolecularDescriptorother - the query descriptor with initialized Similarity3d object.
public float getShapeSimilarity(MolecularDescriptor other)
other - the query descriptor with initialized Similarity3d obj.
public float getHistogramSimilarity(MolecularDescriptor other)
other - the query descriptor with initialized Similarity3d obj.
public float getDissimilarity(MolecularDescriptor other,
int parametrizedMetricIndex)
MolecularDescriptorMolecularDescriptor
objects using the specified metric, apart from that it is the same as
getDissimilarity( final MolecularDescriptor other ).
getDissimilarity in class MolecularDescriptorother - a descriptor, to which the dissimilarity ratio is measuredparametrizedMetricIndex - the index of the parameterized metric to used
MDParameters,
PFParameterspublic AlignmentMolecule getAlignmenMolecule()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||