Class ObjectiveFlexophoreHardMatchUncovered
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.completegraphmatcher.ObjectiveFlexophoreHardMatchUncovered
-
- All Implemented Interfaces:
IObjectiveCompleteGraph<IMolDistHist>
public class ObjectiveFlexophoreHardMatchUncovered extends java.lang.Object implements IObjectiveCompleteGraph<IMolDistHist>
ObjectiveFlexophoreHardMatchUncovered The weighting of the coverage is hard. Which means that uncovered nodes are strongly change the final similarity score. look ingetScoreUncoveredNearestNodesBase(SolutionCompleteGraph solution)andgetScoreUncoveredNearestNodesQuery(SolutionCompleteGraph solution). Use is subject to license terms.- Author:
- Modest von Korff Oct 2, 2012 MvK: Start implementation Mar 3. 2016 MvK: updates. Lowered thresh for histogram similarity. Mar 31. 2020 MvK: fraction of carbon is considered in pharmacophore node similarity.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringINFOstatic intMAX_NUM_NODES_FLEXOPHOREstatic doubleTHRESH_HISTOGRAM_SIMILARITYstatic java.lang.StringVERSION
-
Constructor Summary
Constructors Constructor Description ObjectiveFlexophoreHardMatchUncovered(int versionInteractionTable, int modePPNodeSimilarity, double threshSimilarityNodeHardMatch, double threshHistogramSimilarity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareNodesMapping(int indexNodeQuery, int indexNodeBase)Dynamic calculation of similarity threshold.IMolDistHistgetBase()IMolDistHistgetQuery()floatgetSimilarity(SolutionCompleteGraph solution)doublegetSimilarityNodes(PPNode query, PPNode base)booleanisValidSolution(SolutionCompleteGraph solution)If a single histogram is not matching the solution is invalid.voidsetBase(IMolDistHist iMolDistHistBase)voidsetMatchingInfoInQueryAndBase(SolutionCompleteGraph solution)Sets the color information for the visualization of the Flexophore PPPoints.voidsetQuery(IMolDistHist iMolDistHistQuery)voidsetVerbose(boolean v)java.lang.StringtoString()java.lang.StringtoStringParameter()java.lang.StringtoStringRecentSimilarityResults()
-
-
-
Field Detail
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
INFO
public static final java.lang.String INFO
- See Also:
- Constant Field Values
-
MAX_NUM_NODES_FLEXOPHORE
public static final int MAX_NUM_NODES_FLEXOPHORE
- See Also:
- Constant Field Values
-
THRESH_HISTOGRAM_SIMILARITY
public static final double THRESH_HISTOGRAM_SIMILARITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
toStringParameter
public java.lang.String toStringParameter()
-
setVerbose
public void setVerbose(boolean v)
- Specified by:
setVerbosein interfaceIObjectiveCompleteGraph<IMolDistHist>
-
isValidSolution
public boolean isValidSolution(SolutionCompleteGraph solution)
If a single histogram is not matching the solution is invalid. If at least one node is not matching the solution is invalid.- Specified by:
isValidSolutionin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
areNodesMapping
public boolean areNodesMapping(int indexNodeQuery, int indexNodeBase)Dynamic calculation of similarity threshold. Depends on the number of interaction types in the nodes.- Specified by:
areNodesMappingin interfaceIObjectiveCompleteGraph<IMolDistHist>- Parameters:
indexNodeQuery-indexNodeBase-- Returns:
-
getSimilarity
public float getSimilarity(SolutionCompleteGraph solution)
- Specified by:
getSimilarityin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
setMatchingInfoInQueryAndBase
public void setMatchingInfoInQueryAndBase(SolutionCompleteGraph solution)
Sets the color information for the visualization of the Flexophore PPPoints. Call before visualization. Method sets identical info values for corresponding nodes.- Parameters:
solution-
-
getBase
public IMolDistHist getBase()
- Specified by:
getBasein interfaceIObjectiveCompleteGraph<IMolDistHist>
-
getQuery
public IMolDistHist getQuery()
- Specified by:
getQueryin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
setBase
public void setBase(IMolDistHist iMolDistHistBase)
- Specified by:
setBasein interfaceIObjectiveCompleteGraph<IMolDistHist>
-
setQuery
public void setQuery(IMolDistHist iMolDistHistQuery)
- Specified by:
setQueryin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
toStringRecentSimilarityResults
public java.lang.String toStringRecentSimilarityResults()
- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-