Package chemaxon.descriptors
Class BCUTParameters
java.lang.Object
chemaxon.descriptors.MDParameters
chemaxon.descriptors.BCUTParameters
Manages parameters for the
BCUT descriptor class.
The native format of the parameter configuration is XML.- Since:
- JChem 2.3
-
Field Summary
Fields inherited from class chemaxon.descriptors.MDParameters
asymmetryFactors, cellSize, cellwiseWeights, configFilePath, currentMetricIndex, data, decForm, DEFAULT_ASYMMETRY_FACTOR, DEFAULT_OUTPUT_PRECISION, DEFAULT_SCALE_FACTOR, DEFAULT_WEIGHT, defaultWeight, document, internalSize, length, md, metricIndexes, normalized, outputPrecision, parametrizedMetricNodes, parametrizedMetrics, parametrizedMetricsNode, scaleFactors, screeningConfigurationNode, similarityNode, standardizer, standardizerConfigurationNode, thresholds, tverskyA, tverskyB, weights -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty object.BCUTParameters(File configFile) Creates a new object based on a given configuration file.BCUTParameters(String XMLconfig) Creates a new object based on a given configuration string. -
Method Summary
Modifier and TypeMethodDescriptionvoidfromString(String parameterString) Sets parameters from a string representation.protected String[]generate(Molecule m, MolecularDescriptor bc) Calls the descriptor generator for the molecule provided and stores result (the descriptor) in theMolecularDescriptorobject.Gets the default XML configuration string.intgetHighestEigenvaluesCount(int idx) Gets the number of highest eigenvalues calculated.intgetLowestEigenvaluesCount(int idx) Gets the number of lowest eigenvalues calculated.protected intgetNumberOfWeights(int parametrizedMetricIndex) Gets the number of weight factors used by the specified metric.getType(int idx) Gets the type of the BCUT descriptor.intGets the count of descriptor types.protected voidInitializes object after configuration parameters are loaded.protected voidreadValues(boolean all) Retrieves relavant parameters values from the DOM tree.toString()Returns the XML configuration in a string.Methods inherited from class chemaxon.descriptors.MDParameters
addParameters, addParameters, addParametrizedMetric, addParametrizedMetricNode, addParametrizedMetricsNode, appendParametrizedMetric, checkDocumentVersion, fromFile, getAsymmetryFactor, getCellSize, getCurrentMetricIndex, getData, getDecForm, getDefaultStandardizerConfiguration, getDescriptorTypeName, getInternalMetricIndex, getInternalSize, getLength, getMetricIndex, getMetricName, getMetricName, getNumberOfMetrics, getNumberOfWeights, getScaleFactor, getScalingHypothesis, getScreeningConfigurationString, getThreshold, getThreshold, getTverskyAlpha, getTverskyBeta, getWeights, importNodes, isAsymmetric, isCellwiseWeights, isNormalized, isScaled, isStandardizationMandatory, isWeighted, processDocument, readFromXmlFile, readFromXmlString, readMetricParameters, readMetricWeights, setAsymmetryFactor, setCellSize, setCellwiseWeights, setCreateStatistics, setCurrentParametrizedMetric, setLength, setNormalized, setOutputPrecision, setParameters, setParameters, setScaleFactor, setScalingHypothesis, setThreshold, setWeights, standardize, toString, writeMetricParameter
-
Constructor Details
-
BCUTParameters
public BCUTParameters()Creates an empty object. Initializes parameters to default values. -
BCUTParameters
Creates a new object based on a given configuration file.- Parameters:
configFile- XML configuration file- Throws:
MDParametersException- missing or bad XML configuration
-
BCUTParameters
Creates a new object based on a given configuration string.- Parameters:
XMLconfig- XML configuration string- Throws:
MDParametersException- missing or bad XML configuration
-
-
Method Details
-
toString
Returns the XML configuration in a string.- Overrides:
toStringin classMDParameters- Returns:
- configuration string in XML format
-
fromString
Sets parameters from a string representation. This method processes an XML format, but derived classes may overload this and define their own format.- Overrides:
fromStringin classMDParameters- Parameters:
parameterString- parameters in string- Throws:
MDParametersException- when the parameter string is not well-formed
-
getLowestEigenvaluesCount
public int getLowestEigenvaluesCount(int idx) Gets the number of lowest eigenvalues calculated.- Parameters:
idx- the index of descriptor- Returns:
- number of lowest eigenvalues
-
getHighestEigenvaluesCount
public int getHighestEigenvaluesCount(int idx) Gets the number of highest eigenvalues calculated.- Parameters:
idx- the index of descriptor- Returns:
- number of highest eigenvalues
-
getType
Gets the type of the BCUT descriptor. Valid types are: Burden, Charge, Polarizability, HBond.- Parameters:
idx- the index of descriptor- Returns:
- type of the BCUT descriptor
-
getTypeCount
public int getTypeCount()Gets the count of descriptor types.- Returns:
- the count of descriptor types
-
getDefaultDocumentFrame
Gets the default XML configuration string. This is needed when the XML configuration is not specified.- Overrides:
getDefaultDocumentFramein classMDParameters- Returns:
- default XML configuration string of the BCUTParameters class
- Since:
- JChem 2.3
-
initParameters
protected void initParameters()Description copied from class:MDParametersInitializes object after configuration parameters are loaded.- Overrides:
initParametersin classMDParameters
-
generate
Calls the descriptor generator for the molecule provided and stores result (the descriptor) in theMolecularDescriptorobject.- Parameters:
m- theMoleculefor which the descriptor is generatedbc- the BCUT descriptor will be stored here (out parameter)- Returns:
- always null
- Throws:
MDGeneratorException
-
getNumberOfWeights
Gets the number of weight factors used by the specified metric. This method can be applied to the dissimilarity metrics provided by theMolecularDescriptorclass or its derived classes, but not to parametrized metric.- Overrides:
getNumberOfWeightsin classMDParameters- Parameters:
parametrizedMetricIndex- parametrized metric index- Returns:
- number of weights the metric uses
- Throws:
IllegalArgumentException- if the given parameter is not a valid metric index
-
readValues
Retrieves relavant parameters values from the DOM tree.- Overrides:
readValuesin classMDParameters- Parameters:
all- indicates if the entire document has to be processed in which case the existing configuration is overwritten- Throws:
MDParametersException
-