mordred.RingCount module

class mordred.RingCount.RingCount(order=None, greater=False, fused=False, aromatic=None, hetero=None)[source]

Bases: mordred.RingCount.RingCountBase

ring count descriptor.

Parameters:
  • order (int or None) – number of bonds in ring
  • greater (bool) – count length or greater rings
  • fused (bool) – count fused rings
  • aromatic (bool or None) –
    • True: count aromatic rings
    • False: count non-aromatic rings
    • None: count any rings
  • hetero (bool or None) –
    • True: count hetero rings
    • False: count carbon rings
    • None: count any rings
parameters()[source]
rtype

alias of int

as_argument

argument representation of descriptor

coord

get 3D coordinate

explicit_hydrogens = False
fail(exception)

raise known exception and return missing value

kekulize = False
mol

get molecule

require_3D = False
require_connected = False
rethrow_na(exception)

treat any exceptions as known exception

rethrow_zerodiv()

treat zero div as known exception