|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MolecularDescriptor
chemaxon.descriptors.BCUT
public class BCUT
Implements BCUT descriptors. Calculates lowest and highest eigenvalues of the original Burden matrix and the three variant introduced by Pearlamn and Smith (ref: R. S. Pearlman and K.M. Smith: Novel Software Tools for Chemical Diversity, Perspectives in Drug Discovery and Design, 9/10/11: 339-353, 1998.) These three variants are: atom charge, atom polarizability and hydrogen bond acceptor/donor properties. The number of lowest and/or highest eigenvalues to be calculated are specified in the corresponding parameter configuration file.
| Field Summary |
|---|
| Fields inherited from class chemaxon.descriptors.MolecularDescriptor |
|---|
params |
| Constructor Summary | |
|---|---|
BCUT()
Creates a new, empty BCUT descriptor. |
|
BCUT(BCUT sd)
Copy constructor. |
|
BCUT(BCUTParameters params)
Creates a new instance according to the parameters. |
|
BCUT(java.lang.String params)
Creates a new instance according to the parameters. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the descriptor, all values are set to zero. |
java.lang.Object |
clone()
Creates a new instance with identical internal state. |
void |
fromData(byte[] dbRepr)
Builds a BCUT descriptor from an external data format,
created by a previous call to toData(). |
void |
fromFloatArray(float[] descr)
Builds a BCUT descriptor from its float array representation
(generated by toFloatArray()). |
void |
fromString(java.lang.String bcut)
Builds a BCUT descriptor from its string representation
created by toString(). |
java.lang.String[] |
generate(Molecule m)
Creates the BCUT descriptor for the given Molecule. |
float[] |
getDefaultDissimilarityMetricThresholds()
Gets the default dissimilarity threshold values for all dissimilarity metrics defined. |
float |
getDissimilarity(java.lang.Object other)
Calculates the dissimilarity ratio between two BCUT
objects using the current default metric. |
float |
getDissimilarity(java.lang.Object other,
int parametrizedMetricIndex)
Calculates the dissimilarity between two BCUT
objects using the specified metric, apart from that it is the same as
getDissimilarity( final Object other ). |
java.lang.String[] |
getDissimilarityMetrics()
Gets the dissimilarity metric names introduced for this class of MolecularDescriptor. |
float |
getEuclidean(BCUT descr)
Calculates the Euclidean distance. |
float |
getHighestEigenvalue(int index)
Gets the specified highest eigenvalue. |
float |
getLowestEigenvalue(int index)
Gets the specified lowest eigenvalue. |
java.lang.String |
getName()
Gets the name of the BCUT descriptor object. |
java.lang.String |
getParametersClassName()
Gets the name of the parameters class corresponding to the descriptor. |
java.lang.String |
getShortName()
Gets the short name of the descriptor. |
float |
getWeightedEuclidean(BCUT descr)
Calculates the weighted Euclidean distance. |
boolean |
isLicensed()
Returns information about the licensing of the product. |
void |
setLicenseEnvironment(java.lang.String env)
Every license can have a modifier environment that's tipically an integration environment. |
void |
setParameters(MDParameters parameters)
Sets the parameters of an already created BCUT object. |
void |
setParameters(java.lang.String parameters)
Sets the parameters of an already created BCUT object. |
byte[] |
toData()
Converts a BCUT object into a byte array. |
java.lang.String |
toDecimalString()
Converts the BCUT descriptor into a tab separated string. |
float[] |
toFloatArray()
Creates the float array representation of a BCUT descriptor
object. |
java.lang.String |
toString()
Converts the descriptor into a readable string. |
| Methods inherited from class chemaxon.descriptors.MolecularDescriptor |
|---|
getAtomSetColors, getAtomSetIndexes, getAtomSetNames, getDefaultMetricIndex, getDefaultThreshold, getDissimilarityMetricIndex, getLowerBound, getMetricIndex, getMetricName, getMetricName, getNumberOfMetrics, getNumberOfWeights, getParameters, getThreshold, getThreshold, main, needsConfig, newInstance, newInstance, newInstanceFromXML, setScreeningConfiguration, toBinaryString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BCUT()
public BCUT(BCUTParameters params)
params - configuration parameterspublic BCUT(java.lang.String params)
params - parameter settingspublic BCUT(BCUT sd)
BCUT
passed is created. The old and the new instances share the same
BCUTParameters object.
sd - BCUT descriptor to be copied| Method Detail |
|---|
public java.lang.Object clone()
clone in class MolecularDescriptorpublic byte[] toData()
BCUT object into a byte array.
This format can be reffered to as an "external representation" since
it servers as the data format for storing BCUT descriptors in databases.
fromData() method to build the BCUT
object from this "external" representation.
toData in class MolecularDescriptorpublic void fromData(byte[] dbRepr)
BCUT descriptor from an external data format,
created by a previous call to toData().
fromData in class MolecularDescriptordbRepr - "external" representation of a BCUT objectpublic java.lang.String getName()
BCUT descriptor object. This name is
not the same as the class name: nicer, and more meaningful for end-users
too.
getName in class MolecularDescriptorpublic java.lang.String getShortName()
getShortName in class MolecularDescriptor
public void setParameters(java.lang.String parameters)
throws chemaxon.descriptors.MDParametersException
BCUT object.
setParameters in class MolecularDescriptorparameters - parameter settings for the descriptor
chemaxon.descriptors.MDParametersException - any XML error
public void setParameters(MDParameters parameters)
throws chemaxon.descriptors.MDParametersException
BCUT object.
setParameters in class MolecularDescriptorparameters - parameter settings for the descriptor
chemaxon.descriptors.MDParametersException - any XML errorpublic java.lang.String getParametersClassName()
getParametersClassName in class MolecularDescriptorpublic void clear()
public float getLowestEigenvalue(int index)
index - the index of one of the lowest eigenvalues to be
retrieved (0 is the smallest).
public float getHighestEigenvalue(int index)
index - the index of one of the highest eigenvalues to be
retrieved (0 is the largest)
public final void fromString(java.lang.String bcut)
throws java.text.ParseException
BCUT descriptor from its string representation
created by toString().
fromString in class MolecularDescriptorbcut - BCUT descriptor string
java.text.ParseExceptionpublic final java.lang.String toString()
BCUT descriptor, and it is also
the format which is be stored in SDfiles. Lowest eigenvalues are printed
first, and they are comma separated. Lowest and highest eigenvalue are
separated by a semicolon, which is printed if there is at least one
highest eigenvalue calculated (even if no lowest values are needed).
toString in class MolecularDescriptorpublic final java.lang.String toDecimalString()
BCUT descriptor into a tab separated string.
toDecimalString in class MolecularDescriptorpublic float[] toFloatArray()
BCUT descriptor
object.
toFloatArray in class MolecularDescriptorpublic void fromFloatArray(float[] descr)
BCUT descriptor from its float array representation
(generated by toFloatArray()).
Typically use is hypothesis generation.
fromFloatArray in class MolecularDescriptordescr - descriptor represented in a float array
public java.lang.String[] generate(Molecule m)
throws chemaxon.descriptors.MDGeneratorException
BCUTParameters class.
generate in class MolecularDescriptorchemaxon.descriptors.MDGeneratorException - when failed to generate descriptorpublic boolean isLicensed()
chemaxon.license.Licensable
return LicenseHandler.getInstance().isLicensed( LicenseHandler.MY_IDENTIFIER, licenseEnvironment );
isLicensed in interface chemaxon.license.Licensablepublic void setLicenseEnvironment(java.lang.String env)
chemaxon.license.Licensable
private String licenseEnvironment = "";
public void setLicenseEnvironment(String env) {
licenseEnvironment = env;
}
setLicenseEnvironment in interface chemaxon.license.Licensableenv - environment String to be stored and passed to the LicenseHandler in the isLicensed methodpublic java.lang.String[] getDissimilarityMetrics()
MolecularDescriptor.
getDissimilarityMetrics in class MolecularDescriptorpublic float[] getDefaultDissimilarityMetricThresholds()
getDefaultDissimilarityMetricThresholds in class MolecularDescriptorpublic final float getEuclidean(BCUT descr)
descr - another descriptor from which the distance is measured
public final float getWeightedEuclidean(BCUT descr)
BCUTParameters object.
descr - a descriptor from which the distance is measured
public float getDissimilarity(java.lang.Object other)
BCUT
objects using the current default metric.
Default metric is set in the corresponding BCUTParameters
object by setCurrentParametrizedMetric( int metricIndex ).
In the case of assymetric distances swapping the two descriptors can
make big difference.
getDissimilarity in interface chemaxon.stat.DiffablegetDissimilarity in class MolecularDescriptorother - a descriptor, to which the dissimilarity ratio is measured
public float getDissimilarity(java.lang.Object other,
int parametrizedMetricIndex)
BCUT
objects using the specified metric, apart from that it is the same as
getDissimilarity( final Object other ).
getDissimilarity in class MolecularDescriptorother - a descriptor, to which the dissimilarity ratio is measuredparametrizedMetricIndex - the index of the parametrized metric to used
MDParameters,
BCUTParameters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||