Package com.actelion.research.chem.phesa
Class DescriptorHandlerShape
- java.lang.Object
-
- com.actelion.research.chem.phesa.DescriptorHandlerShape
-
- All Implemented Interfaces:
DescriptorHandler<PheSAMolecule,StereoMolecule>,ISimilarityCalculator<PheSAMolecule>
- Direct Known Subclasses:
DescriptorHandlerShapeOneConf
public class DescriptorHandlerShape extends java.lang.Object implements DescriptorHandler<PheSAMolecule,StereoMolecule>
-
-
Field Summary
Fields Modifier and Type Field Description static PheSAMoleculeFAILED_OBJECTprotected booleanflexibleprotected intmaxConfsprotected doubleppWeight-
Fields inherited from interface com.actelion.research.chem.descriptor.DescriptorHandler
FAILED_BYTES, FAILED_STRING
-
-
Constructor Summary
Constructors Constructor Description DescriptorHandlerShape()DescriptorHandlerShape(boolean useSingleBaseConformation)DescriptorHandlerShape(boolean useSingleBaseConformation, double ppWeight)DescriptorHandlerShape(boolean useSingleBaseConformation, int maxConfs, double ppWeight)DescriptorHandlerShape(double ppWeight)DescriptorHandlerShape(int maxConfs, double ppWeight)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancalculationFailed(PheSAMolecule o)PheSAMoleculecreateDescriptor(ConformerSet fullSet)PheSAMoleculecreateDescriptor(StereoMolecule mol)the ShapeDescriptor consists of a whole ensemble of MolecularVolumes (MolecularGaussians), obtained from a conformational search algorithmPheSAMoleculedecode(byte[] arr)PheSAMoleculedecode(java.lang.String s)java.lang.Stringencode(PheSAMolecule o)static DescriptorHandlerShapegetDefaultInstance()DescriptorInfogetInfo()doublegetPpWeight()StereoMolecule[]getPreviousAlignment()double[]getPreviousPheSAResult()additional output: element 0: total similarity (identical to getSimilarity(...)) element 1: pharmacophore similarity element 2: contribution to similarity that originates from additional volumes (incl/excl)floatgetSimilarity(PheSAMolecule query, PheSAMolecule base)calculates the Shape- and/or Pharmacophore similarity of a query molecule with a base moleculeDescriptorHandlerShapegetThreadSafeCopy()java.lang.StringgetVersion()voidinit()booleanisFlexible()voidsetFlexible(boolean flexible)voidsetMaxConfs(int maxConfs)voidsetPreviousAlignment(StereoMolecule[] previousAlignment)voidsetPreviousPheSAResult(double[] previousPhesaResult)
-
-
-
Field Detail
-
FAILED_OBJECT
public static final PheSAMolecule FAILED_OBJECT
-
maxConfs
protected int maxConfs
-
ppWeight
protected double ppWeight
-
flexible
protected boolean flexible
-
-
Constructor Detail
-
DescriptorHandlerShape
public DescriptorHandlerShape()
-
DescriptorHandlerShape
public DescriptorHandlerShape(boolean useSingleBaseConformation)
-
DescriptorHandlerShape
public DescriptorHandlerShape(boolean useSingleBaseConformation, double ppWeight)
-
DescriptorHandlerShape
public DescriptorHandlerShape(int maxConfs, double ppWeight)
-
DescriptorHandlerShape
public DescriptorHandlerShape(double ppWeight)
- Parameters:
ppWeight- similarity weight for the pharmacophore in total similarity.
-
DescriptorHandlerShape
public DescriptorHandlerShape(boolean useSingleBaseConformation, int maxConfs, double ppWeight)
-
-
Method Detail
-
createDescriptor
public PheSAMolecule createDescriptor(ConformerSet fullSet)
-
init
public void init()
-
createDescriptor
public PheSAMolecule createDescriptor(StereoMolecule mol)
the ShapeDescriptor consists of a whole ensemble of MolecularVolumes (MolecularGaussians), obtained from a conformational search algorithm- Specified by:
createDescriptorin interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
getSimilarity
public float getSimilarity(PheSAMolecule query, PheSAMolecule base)
calculates the Shape- and/or Pharmacophore similarity of a query molecule with a base molecule- Specified by:
getSimilarityin interfaceISimilarityCalculator<PheSAMolecule>
-
getPreviousAlignment
public StereoMolecule[] getPreviousAlignment()
-
getPreviousPheSAResult
public double[] getPreviousPheSAResult()
additional output: element 0: total similarity (identical to getSimilarity(...)) element 1: pharmacophore similarity element 2: contribution to similarity that originates from additional volumes (incl/excl)- Returns:
-
setPreviousAlignment
public void setPreviousAlignment(StereoMolecule[] previousAlignment)
-
setPreviousPheSAResult
public void setPreviousPheSAResult(double[] previousPhesaResult)
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
getInfo
public DescriptorInfo getInfo()
- Specified by:
getInfoin interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>- Specified by:
getInfoin interfaceISimilarityCalculator<PheSAMolecule>
-
encode
public java.lang.String encode(PheSAMolecule o)
- Specified by:
encodein interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
decode
public PheSAMolecule decode(java.lang.String s)
- Specified by:
decodein interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
decode
public PheSAMolecule decode(byte[] arr)
- Specified by:
decodein interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
calculationFailed
public boolean calculationFailed(PheSAMolecule o)
- Specified by:
calculationFailedin interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>
-
getThreadSafeCopy
public DescriptorHandlerShape getThreadSafeCopy()
- Specified by:
getThreadSafeCopyin interfaceDescriptorHandler<PheSAMolecule,StereoMolecule>- Specified by:
getThreadSafeCopyin interfaceISimilarityCalculator<PheSAMolecule>- Returns:
- a deep copy for parallel computing.
-
getDefaultInstance
public static DescriptorHandlerShape getDefaultInstance()
-
setMaxConfs
public void setMaxConfs(int maxConfs)
-
setFlexible
public void setFlexible(boolean flexible)
-
isFlexible
public boolean isFlexible()
-
getPpWeight
public double getPpWeight()
-
-