Class ObjectiveBlurFlexophoreHardMatchUncovered
- java.lang.Object
-
- com.actelion.research.chem.descriptor.flexophore.completegraphmatcher.ObjectiveBlurFlexophoreHardMatchUncovered
-
- All Implemented Interfaces:
IObjectiveCompleteGraph<IMolDistHist>
public class ObjectiveBlurFlexophoreHardMatchUncovered extends java.lang.Object implements IObjectiveCompleteGraph<IMolDistHist>
ObjectiveBlurFlexophoreHardMatchUncovered The weighting of the coverage is hard. Which means that uncovered nodes 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 doubleTHRESH_HISTOGRAM_SIMILARITYstatic java.lang.StringVERSION
-
Constructor Summary
Constructors Constructor Description ObjectiveBlurFlexophoreHardMatchUncovered()ObjectiveBlurFlexophoreHardMatchUncovered(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()longgetDeltaNanoBaseBlur()longgetDeltaNanoQueryBlur()longgetDeltaNanoSimilarity()IMolDistHistgetQuery()floatgetSimilarity(SolutionCompleteGraph solution)floatgetSimilarityHistogram(int indexNode1Query, int indexNode2Query, int indexNode1Base, int indexNode2Base)floatgetSimilarityNodes(int indexNodeQuery, int indexNodeBase)doublegetSimilarityNodes(IPPNode query, IPPNode base)booleanisModeQuery()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.voidsetModeQuery(boolean modeQuery)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
-
THRESH_HISTOGRAM_SIMILARITY
public static final double THRESH_HISTOGRAM_SIMILARITY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ObjectiveBlurFlexophoreHardMatchUncovered
public ObjectiveBlurFlexophoreHardMatchUncovered()
-
ObjectiveBlurFlexophoreHardMatchUncovered
public ObjectiveBlurFlexophoreHardMatchUncovered(int versionInteractionTable, int modePPNodeSimilarity, double threshSimilarityNodeHardMatch, double threshHistogramSimilarity)
-
-
Method Detail
-
setModeQuery
public void setModeQuery(boolean modeQuery)
-
isModeQuery
public boolean isModeQuery()
-
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>
-
getDeltaNanoQueryBlur
public long getDeltaNanoQueryBlur()
-
getDeltaNanoBaseBlur
public long getDeltaNanoBaseBlur()
-
getDeltaNanoSimilarity
public long getDeltaNanoSimilarity()
-
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.- Specified by:
setMatchingInfoInQueryAndBasein interfaceIObjectiveCompleteGraph<IMolDistHist>- 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>
-
getSimilarityNodes
public float getSimilarityNodes(int indexNodeQuery, int indexNodeBase)
-
getSimilarityHistogram
public float getSimilarityHistogram(int indexNode1Query, int indexNode2Query, int indexNode1Base, int indexNode2Base)- Specified by:
getSimilarityHistogramin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
getSimilarityNodes
public double getSimilarityNodes(IPPNode query, IPPNode base)
- Specified by:
getSimilarityNodesin interfaceIObjectiveCompleteGraph<IMolDistHist>
-
toStringRecentSimilarityResults
public java.lang.String toStringRecentSimilarityResults()
- Returns:
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-