Class GraphOnlyFingerprinter
java.lang.Object
org.openscience.cdk.fingerprint.AbstractFingerprinter
org.openscience.cdk.fingerprint.Fingerprinter
org.openscience.cdk.fingerprint.GraphOnlyFingerprinter
- All Implemented Interfaces:
IFingerprinter
Specialized version of the
Fingerprinter which does not take bond orders
into account.- Author:
- egonw
- See Also:
- Keywords:
- fingerprint, similarity
- Created on:
- 2007-01-11
-
Field Summary
Fields inherited from class Fingerprinter
DEFAULT_SEARCH_DEPTH, DEFAULT_SIZEModifier and TypeFieldDescriptionstatic final intThe default search depth used to create the fingerprints.static final intThe default length of created fingerprints. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a fingerprint generator of lengthdefaultSizeand with a search depth ofdefaultSearchDepth.GraphOnlyFingerprinter(int size) GraphOnlyFingerprinter(int size, int searchDepth) -
Method Summary
Modifier and TypeMethodDescriptiongetBitFingerprint(IAtomContainer container, int size) protected StringgetBondSymbol(IBond bond) Gets the bondSymbol attribute of the Fingerprinter class.Methods inherited from class Fingerprinter
encodePaths, findPathes, getBitFingerprint, getBitFingerprint, getCountFingerprint, getParameters, getRawFingerprint, getSearchDepth, getSize, setHashExplicitHydrogens, setHashPseudoAtoms, setPathLimitModifier and TypeMethodDescriptionprotected voidencodePaths(IAtomContainer mol, int depth, BitSet fp, int size) protected int[]findPathes(IAtomContainer container, int searchDepth) Deprecated.getBitFingerprint(IAtomContainer container) Generates a fingerprint of the default size for the given AtomContainer.getBitFingerprint(IAtomContainer container, AllRingsFinder ringFinder) Generates a fingerprint of the default size for the given AtomContainer.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 container) Returns the raw representation of the fingerprint for the given IAtomContainer.intintgetSize()Returns the size (or length) of the fingerprint.voidsetHashExplicitHydrogens(boolean value) Include explicit hydrogen atoms in the fingerprint.voidsetHashPseudoAtoms(boolean value) Include pseudo/query atoms in the fingerprint with atomic number 0.voidsetPathLimit(int limit) 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
-
GraphOnlyFingerprinter
public GraphOnlyFingerprinter()Creates a fingerprint generator of lengthdefaultSizeand with a search depth ofdefaultSearchDepth. -
GraphOnlyFingerprinter
public GraphOnlyFingerprinter(int size) -
GraphOnlyFingerprinter
public GraphOnlyFingerprinter(int size, int searchDepth)
-
-
Method Details
-
getBondSymbol
Gets the bondSymbol attribute of the Fingerprinter class. Because we do not consider bond orders to be important, we just return "";- Overrides:
getBondSymbolin classFingerprinter- Parameters:
bond- Description of the Parameter- Returns:
- The bondSymbol value
-
getBitFingerprint
- Throws:
Exception
-
Fingerprinter.encodePaths(IAtomContainer, int, BitSet, int)