Class LingoFingerprinter
java.lang.Object
org.openscience.cdk.fingerprint.AbstractFingerprinter
org.openscience.cdk.fingerprint.LingoFingerprinter
- All Implemented Interfaces:
IFingerprinter
An implementation of the LINGO fingerprint [Vidal, D. et. al.. J. Chem. Inf. Model.. 2005. 45].
While the current implementation converts ring closure symbols to 0's it does not convert 2-letter element symbols to single letters (ala OpenEye).
- Author:
- Rajarshi Guha
- Keywords:
- fingerprint, hologram
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the fingerprinter with a default substring length of 4.LingoFingerprinter(int n) Initialize the fingerprinter. -
Method Summary
Modifier and TypeMethodDescriptiongetBitFingerprint(IAtomContainer iAtomContainer) Returns the bit fingerprint for the givenIAtomContainer.getCountFingerprint(IAtomContainer container) Returns the count fingerprint for the givenIAtomContainer.Base classes should override this method to report the parameters they are configured with.getRawFingerprint(IAtomContainer atomContainer) Returns the raw representation of the fingerprint for the given IAtomContainer.intgetSize()Returns the size (or length) of the fingerprint.Methods inherited from class AbstractFingerprinter
getFingerprint, getVersionDescriptionModifier and TypeMethodDescriptionGenerate a binary fingerprint as a bit.final StringGenerate a fingerprint type version description in chemfp's FPS format.
-
Constructor Details
-
LingoFingerprinter
public LingoFingerprinter()Initialize the fingerprinter with a default substring length of 4. -
LingoFingerprinter
public LingoFingerprinter(int n) Initialize the fingerprinter.- Parameters:
n- The length of substrings to consider
-
-
Method Details
-
getParameters
Description copied from class:AbstractFingerprinterBase classes should override this method to report the parameters they are configured with.- Overrides:
getParametersin classAbstractFingerprinter- Returns:
- The key=value pairs of configured parameters
-
getBitFingerprint
Description copied from interface:IFingerprinterReturns the bit fingerprint for the givenIAtomContainer.- Specified by:
getBitFingerprintin interfaceIFingerprinter- Parameters:
iAtomContainer-IAtomContainerfor which the fingerprint should be calculated.- Returns:
- the bit fingerprint
- Throws:
CDKException- may be thrown if there is an error during aromaticity detection or (for key based fingerprints) if there is a SMARTS parsing error
-
getRawFingerprint
Description copied from interface:IFingerprinterReturns the raw representation of the fingerprint for the given IAtomContainer. The raw representation contains counts as well as the key strings.- Specified by:
getRawFingerprintin interfaceIFingerprinter- Parameters:
atomContainer- IAtomContainer for which the fingerprint should be calculated.- Returns:
- the raw fingerprint
- Throws:
CDKException
-
getSize
public int getSize()Description copied from interface:IFingerprinterReturns the size (or length) of the fingerprint.- Specified by:
getSizein interfaceIFingerprinter- Returns:
- the size of the fingerprint
-
getCountFingerprint
Description copied from interface:IFingerprinterReturns the count fingerprint for the givenIAtomContainer.- Specified by:
getCountFingerprintin interfaceIFingerprinter- Parameters:
container-IAtomContainerfor which the fingerprint should be calculated.- Returns:
- the count fingerprint
- Throws:
CDKException- if there is an error during aromaticity detection or (for key based fingerprints) if there is a SMARTS parsing error.
-