chemfp type

The “chemfp type” command describes a single fingerprint type in a human-readable format. For example, the following shows report for OpenEye’s path fingerprint with the non-standard “maxbonds” value of 4 instead of 5:

% chemfp type "OpenEye-Path maxbonds=4"
# Fingerprint type 'OpenEye-Path/2'

Fingerprint type OpenEye-Path/2 generates binary fingerprints with 4096 bits
using the openeye toolkit.

## Type details

The input type string is not canonical.

      input: OpenEye-Path maxbonds=4
  canonical: OpenEye-Path/2 numbits=4096 minbonds=0 maxbonds=4
      atype=Arom|AtmNum|Chiral|EqHalo|FCharge|HvyDeg|Hyb btype=Order|Chiral

The type has 5 parameters:

  * numbits = 4096  (default)
    INT = Number of bits in the path fingerprint
  * minbonds = 0  (default)
    INT = Minimum number of bonds in the path fingerprint
  * maxbonds = 4  (default = 5)
    INT = Maximum number of bonds in the path fingerprint
  * atype = Arom|AtmNum|Chiral|EqHalo|FCharge|HvyDeg|Hyb  (default)
    OPT = Atom type as a '|' separated list of terms
  * btype = Order|Chiral  (default)
    OPT = Bond type as a '|' separated list of terms

## Description

  OEGraphSim fingerprint based on path-based enumeration, version 2

  See https://docs.eyesopen.com/toolkits/cpp/graphsimtk/fingerprint.html#section-fingerprint-path

  The OpenEye-Path/2 :class:`.FingerprintType` parameters are:

  * numbits - the number of bits in the fingerprint (default: 4096)
  * minbonds - the minimum number of bonds (default: 0)
  * maxbonds - the maximum number of bonds (default: 5)
  * atype - the atom type (default: "Default")
  * btype - the bond type (default: "Default")

  The atype is either 0 or a '|' separated string containing one
  or more of the following: Aromaticity, AtomicNumber, Chiral,
  EqHBondAcceptor, EqHBondDonor, EqHalogen, FormalCharge, HCount,
  HvyDegree, Hybridization, InRing, EqAromatic,

  The btype is either 0 or a '|' separated string containing one
  or more of the following: BondOrder, Chiral, InRing.

The output format is not designed to be parsed by machine and is likely to change. For machine-readable output with the same information use chemfp types with the --out json flag.

If no type string is specified then the known fingerprint families will be listed to stderr as part of the error message. For the machine-readable equivalent use “chemfp types” with the --families option.

chemfp type command-line options

The following comes from chemfp type --help:

Usage: chemfp type [OPTIONS] TYPE-STRING

  Describe a fingerprint type given a type string.

Options:
  --help  Show this message and exit.

  Given a fingerprint type string, describe the fingerprint type, parameters,
  and available documentation.

  The output is meant for humans. While it appears to be in Markdown format,
  the documentation comes from the docstring of the underlying Python
  fingerprint type class. For chemfp types this text is in reStructuredText
  format, in a form meant for the chemfp documentation. Fingerprint type from
  other sources may use a different format.

  NOTE: the output formatting is very likely to change. Use ``chemfp types``
  with JSON output to get the data in a machine-readable format.

  If no TYPE-STRING is given then the list of known fingerprint families will
  be included in an error message written to stderr.

  Example command-line use:

    % chemfp type "RDKit-Morgan radius=4"
    # Fingerprint type 'RDKit-Morgan/2'

    Fingerprint type RDKit-Morgan/2 generates binary fingerprints
    using the rdkit toolkit.

    ## Type details

    [... some lines deleted from the --help output ...]

        input: RDKit-Morgan radius=4   canonical: RDKit-Morgan/2 fpSize=2048
        radius=4 useFeatures=0    complete: RDKit-Morgan/2 fpSize=2048
        radius=4 useFeatures=0       includeChirality=0 useBondTypes=1
        includeRingMembership=1       includeRedundantEnvironments=0
        fromAtoms=None

    The type has 10 parameters:        * fpSize = 2048  (default)       INT =
    Number of bits in the fingerprint     * radius = 4  (default = 3)
    INT = Radius for the Morgan algorithm

    [... even more lines deleted from the --help output ...]