Class SignatureFingerprinter
java.lang.Object
org.openscience.cdk.fingerprint.AbstractFingerprinter
org.openscience.cdk.fingerprint.SignatureFingerprinter
- All Implemented Interfaces:
IFingerprinter
An implementation of a
AtomSignature-based fingerprint.- Keywords:
- fingerprint
-
Constructor Summary
ConstructorsConstructorDescriptionInitialize the fingerprinter with a default signature depth of 1.SignatureFingerprinter(int depth) Initialize the fingerprinter with a certain signature depth. -
Method Summary
Modifier and TypeMethodDescriptiongetBitFingerprint(IAtomContainer atomContainer) 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
-
SignatureFingerprinter
public SignatureFingerprinter()Initialize the fingerprinter with a default signature depth of 1. -
SignatureFingerprinter
public SignatureFingerprinter(int depth) Initialize the fingerprinter with a certain signature depth.- Parameters:
depth- The depth of the signatures to calculate.
-
-
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:
atomContainer-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.
-