Class DescriptorHandlerFlexophore
- java.lang.Object
-
- com.actelion.research.chem.descriptor.DescriptorHandlerFlexophore
-
- All Implemented Interfaces:
DescriptorHandler,IDescriptorHandlerFlexophore,ISimilarityCalculator
public class DescriptorHandlerFlexophore extends java.lang.Object implements IDescriptorHandlerFlexophore
DescriptorHandlerFlexophoreCopyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.
- Author:
- Modest von Korff 29 Jan 2009 MvK: Start implementation 15 Oct 2012 MvK renamed DescriptorHandler3DMM2PPInteract-->DescriptorHandlerFlexophore 19 Apr 2013 MvK major changes in Flexophore encoding decoding 25 Apr 2013 MvK Flexophore version changed --> 3.0 07 May 2013 MvK bug fixes in encoding. Flexophore version changed --> 3.1 15 May 2013 MvK Bug fix for the objective function 03 May 2016 MvK versioning for interaction tables from Joel introduced. 10 Jun 2016 MvK DescriptorHandlerFlexophoreV4 --> DescriptorHandlerFlexophore, V4 becomes today the new Flexophore 18 Jun 2016 MvK New ConformationGenerator from TS for Flexophore creation. V 4.1 29 Jun 2016 MvK number of histogram bins and range increased in CGMult. V 4.2 15 Jul 2016 MvK if generation of conformer failed a new seed is injected and the generation is tried again. 11 Aug 2016 MvK number of bins increase from 50 to 80, histogram range increased from 25 to 40 Angstroem. --> V.4.3 30 Jan 2017 MvK minor bug fix. Two constants for the number of conformations. --> V.4.4. Compatible with V.4.3 April 2020 Version 5.0, new interaction tables from Joel Wahl, algorithmic changes. 20.05.2020 Changed definition of end-standing aliphatic groups. Center of gravity moved one bond to the outside. Aromatic rings are not aliphatic any more. Methyl groups connected to a ring are not considered. The next O or N must have a minimum distance of two bonds to the end standing atom.
-
-
Field Summary
Fields Modifier and Type Field Description protected CreatorMolDistHistVizcreatorMolDistHistVizstatic booleanDEBUGstatic MolDistHistFAILED_OBJECTprotected static intMAX_NUM_HEAVY_ATOMSstatic intMAX_NUM_SOLUTIONSprotected static intMIN_NUM_ATOMSstatic intMODE_PPNODE_SIMILARITY_COMPARISONstatic intNUM_CONFORMATIONSstatic java.lang.StringPARA_TAG_HISTOGRAM_SIMILARITY_THRESHstatic java.lang.StringPARA_TAG_MODE_MATCHstatic java.lang.StringPARA_TAG_MODE_SINGLE_CONFORMATION_QUERYstatic java.lang.StringPARA_TAG_PPNODE_SIMILARITY_THRESHprotected java.lang.ExceptionrecentExceptionstatic java.lang.StringSEP_PARAMETERstatic doubleTHRESH_HISTOGRAM_SIMILARITYstatic doubleTHRESH_SIMILARITY_COMPARISON_NODEstatic intVERSION_INTERACTION_TABLES-
Fields inherited from interface com.actelion.research.chem.descriptor.DescriptorHandler
FAILED_BYTES, FAILED_STRING
-
-
Constructor Summary
Constructors Constructor Description DescriptorHandlerFlexophore()DescriptorHandlerFlexophore(int versionInteractionTable, int modePPNodeSimilarityComparison, double threshSimilarityHardMatch, double threshHistogramSimilarity, boolean singleConformationModeQuery)DescriptorHandlerFlexophore(java.lang.String parameter)
-
Method Summary
-
-
-
Field Detail
-
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
-
SEP_PARAMETER
public static final java.lang.String SEP_PARAMETER
- See Also:
- Constant Field Values
-
PARA_TAG_PPNODE_SIMILARITY_THRESH
public static final java.lang.String PARA_TAG_PPNODE_SIMILARITY_THRESH
- See Also:
- Constant Field Values
-
PARA_TAG_HISTOGRAM_SIMILARITY_THRESH
public static final java.lang.String PARA_TAG_HISTOGRAM_SIMILARITY_THRESH
- See Also:
- Constant Field Values
-
PARA_TAG_MODE_MATCH
public static final java.lang.String PARA_TAG_MODE_MATCH
- See Also:
- Constant Field Values
-
PARA_TAG_MODE_SINGLE_CONFORMATION_QUERY
public static final java.lang.String PARA_TAG_MODE_SINGLE_CONFORMATION_QUERY
- See Also:
- Constant Field Values
-
MAX_NUM_HEAVY_ATOMS
protected static final int MAX_NUM_HEAVY_ATOMS
- See Also:
- Constant Field Values
-
MIN_NUM_ATOMS
protected static final int MIN_NUM_ATOMS
- See Also:
- Constant Field Values
-
NUM_CONFORMATIONS
public static final int NUM_CONFORMATIONS
- See Also:
- Constant Field Values
-
MAX_NUM_SOLUTIONS
public static final int MAX_NUM_SOLUTIONS
- See Also:
- Constant Field Values
-
FAILED_OBJECT
public static final MolDistHist FAILED_OBJECT
-
VERSION_INTERACTION_TABLES
public static final int VERSION_INTERACTION_TABLES
- See Also:
- Constant Field Values
-
MODE_PPNODE_SIMILARITY_COMPARISON
public static final int MODE_PPNODE_SIMILARITY_COMPARISON
- See Also:
- Constant Field Values
-
THRESH_SIMILARITY_COMPARISON_NODE
public static final double THRESH_SIMILARITY_COMPARISON_NODE
- See Also:
- Constant Field Values
-
THRESH_HISTOGRAM_SIMILARITY
public static final double THRESH_HISTOGRAM_SIMILARITY
- See Also:
- Constant Field Values
-
creatorMolDistHistViz
protected CreatorMolDistHistViz creatorMolDistHistViz
-
recentException
protected java.lang.Exception recentException
-
-
Constructor Detail
-
DescriptorHandlerFlexophore
public DescriptorHandlerFlexophore(java.lang.String parameter)
-
DescriptorHandlerFlexophore
public DescriptorHandlerFlexophore()
-
DescriptorHandlerFlexophore
public DescriptorHandlerFlexophore(int versionInteractionTable, int modePPNodeSimilarityComparison, double threshSimilarityHardMatch, double threshHistogramSimilarity, boolean singleConformationModeQuery)
-
-
Method Detail
-
setModeQuery
public void setModeQuery(boolean modeQuery)
-
setThreadMaster
public void setThreadMaster(ThreadMaster threadMaster)
-
isSingleConformationModeQuery
public boolean isSingleConformationModeQuery()
-
setSingleConformationModeQuery
public void setSingleConformationModeQuery(boolean singleConformationModeQuery)
-
getNewCompleteGraphMatcher
public CompleteGraphMatcher<IMolDistHist> getNewCompleteGraphMatcher()
-
getObjectiveCompleteGraph
public ObjectiveBlurFlexophoreHardMatchUncovered getObjectiveCompleteGraph()
- Specified by:
getObjectiveCompleteGraphin interfaceIDescriptorHandlerFlexophore
-
getInfo
public DescriptorInfo getInfo()
- Specified by:
getInfoin interfaceDescriptorHandler- Specified by:
getInfoin interfaceISimilarityCalculator
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceDescriptorHandler
-
toStringParameter
public java.lang.String toStringParameter()
-
getDefaultInstance
public static DescriptorHandlerFlexophore getDefaultInstance()
-
encode
public java.lang.String encode(java.lang.Object o)
- Specified by:
encodein interfaceDescriptorHandler
-
decode
public MolDistHist decode(byte[] bytes)
- Specified by:
decodein interfaceDescriptorHandler
-
decode
public MolDistHist decode(java.lang.String s)
- Specified by:
decodein interfaceDescriptorHandler
-
createDescriptorSingleConf
public MolDistHist createDescriptorSingleConf(StereoMolecule mol)
-
createDescriptorSingleConf
public MolDistHist createDescriptorSingleConf(ConformerSet conformerSet)
-
createVisualDescriptorSingleConf
public MolDistHistViz createVisualDescriptorSingleConf(ConformerSet conformerSet)
-
createDescriptor
public MolDistHist createDescriptor(java.lang.Object mol)
- Specified by:
createDescriptorin interfaceDescriptorHandler
-
createVisualDescriptor
public MolDistHistViz createVisualDescriptor(StereoMolecule fragBiggest)
This descriptor contains the molecule used for construction. The descriptor also contains information about corresponding atoms in the molecule.- Specified by:
createVisualDescriptorin interfaceIDescriptorHandlerFlexophore- Parameters:
fragBiggest-- Returns:
-
getRecentException
public java.lang.Exception getRecentException()
-
getSimilarity
public float getSimilarity(java.lang.Object query, java.lang.Object base)- Specified by:
getSimilarityin interfaceISimilarityCalculator
-
getBestMatch
public ModelSolutionSimilarity getBestMatch(MolDistHistViz mdhvBase, MolDistHistViz mdhvQuery)
- Specified by:
getBestMatchin interfaceIDescriptorHandlerFlexophore- Parameters:
mdhvBase-mdhvQuery-- Returns:
-
normalizeValue
public static float normalizeValue(double value)
-
calculationFailed
public boolean calculationFailed(java.lang.Object o)
- Specified by:
calculationFailedin interfaceDescriptorHandler
-
getThreadSafeCopy
public DescriptorHandlerFlexophore getThreadSafeCopy()
- Specified by:
getThreadSafeCopyin interfaceDescriptorHandler- Specified by:
getThreadSafeCopyin interfaceISimilarityCalculator- Returns:
- a deep copy for parallel computing.
-
setObjectiveQueryBiased
public void setObjectiveQueryBiased(boolean enable)
-
-