mordred.TopologicalIndex module

class mordred.TopologicalIndex.Diameter[source]

Bases: TopologicalIndexBase

diameter descriptor.

since = <Version('1.0.0')>
description()[source]
property config
explicit_hydrogens = False
classmethod from_json(obj)

Create Descriptor instance from json dict.

Parameters:

obj (dict) – descriptor dict

Returns:

descriptor

Return type:

Descriptor

get_3D_mol()
get_parameter_dict()
kekulize = False
parameter_names = ()
require_3D = False
require_connected = False
rtype

alias of int

to_json()

Convert to json serializable dictionary.

Returns:

dictionary of descriptor

Return type:

dict

class mordred.TopologicalIndex.Radius[source]

Bases: TopologicalIndexBase

radius descriptor.

since = <Version('1.0.0')>
description()[source]
property config
explicit_hydrogens = False
classmethod from_json(obj)

Create Descriptor instance from json dict.

Parameters:

obj (dict) – descriptor dict

Returns:

descriptor

Return type:

Descriptor

get_3D_mol()
get_parameter_dict()
kekulize = False
parameter_names = ()
require_3D = False
require_connected = False
rtype

alias of int

to_json()

Convert to json serializable dictionary.

Returns:

dictionary of descriptor

Return type:

dict

class mordred.TopologicalIndex.TopologicalShapeIndex[source]

Bases: TopologicalIndexBase

topological shape index descriptor.

\[I_{\rm topo} = \frac{D - R}{R}\]

where \(R\) is graph radius, \(D\) is graph diameter.

Returns:

NaN when \(R = 0\)

since = <Version('1.0.0')>
description()[source]
rtype

alias of float

property config
explicit_hydrogens = False
classmethod from_json(obj)

Create Descriptor instance from json dict.

Parameters:

obj (dict) – descriptor dict

Returns:

descriptor

Return type:

Descriptor

get_3D_mol()
get_parameter_dict()
kekulize = False
parameter_names = ()
require_3D = False
require_connected = False
to_json()

Convert to json serializable dictionary.

Returns:

dictionary of descriptor

Return type:

dict

class mordred.TopologicalIndex.PetitjeanIndex[source]

Bases: TopologicalShapeIndex

Petitjean index descriptor.

\[I_{\rm Petitjean} = \frac{D - R}{D}\]

where \(R\) is graph radius, \(D\) is graph diameter.

Returns:

NaN when \(D = 0\)

since = <Version('1.0.0')>
description()[source]
property config
explicit_hydrogens = False
classmethod from_json(obj)

Create Descriptor instance from json dict.

Parameters:

obj (dict) – descriptor dict

Returns:

descriptor

Return type:

Descriptor

get_3D_mol()
get_parameter_dict()
kekulize = False
parameter_names = ()
require_3D = False
require_connected = False
rtype

alias of float

to_json()

Convert to json serializable dictionary.

Returns:

dictionary of descriptor

Return type:

dict