mordred package¶
modred descriptor calculator.
-
mordred.
all_descriptors
()[source]¶ yield all descriptors.
Returns: all modules Return type: Iterator
(module
)
-
class
mordred.
Calculator
(*descs)[source]¶ Bases:
object
descriptor calculator.
Parameters: descs – see register()
method-
map
(mols, processes=None, error_mode='raise', callback=None, error_callback=None)[source]¶ calculate descriptors over mols.
Parameters: - mols (
Iterable
(Mol
)) – moleculars - processes (
int
orNone
) – number of process. None ismultiprocessing.cpu_count()
- error_mode (
str
) –- ‘raise’: raise Exception
- ‘ignore’: ignore Exception
- ‘log’: print Exception to stderr and ingore Exception
- callback (
Callable
([(Descriptor
, scalar)]) ->None
) – call when calculate finished par molecule - error_callback (
Callable
(Exception
) -> scalar) – call when Exception raised
Return type: Iterator
((Mol
, [(Descriptor
, scalar)]]))- mols (
-
register
(*descs)[source]¶ register descriptors.
Parameters: descs ( module
,Descriptor
class/instance orIterable
) –descriptors to register
module
: Descriptors in moduleDescriptor
class: useDescriptor.preset()
-
-
class
mordred.
Descriptor
[source]¶ Bases:
object
abstract base class of descriptors.
-
dependencies
()[source]¶ descriptor dependencies.
Return type: { str
: (Descriptor
orNone
)} orNone
-
explicit_hydrogens
= True¶
-
gasteiger_charges
= False¶
-
classmethod
is_descriptor_class
(desc)[source]¶ check calculatable descriptor class or not.
Return type: bool
-
kekulize
= False¶
-
classmethod
preset
()[source]¶ generate preset descriptor instances.
(abstract classmethod)
Return type: iterable
-
require_connected
= False¶
-
rtype
¶ alias of
NoneType
-
-
mordred.
get_descriptors_from_module
(mdl)[source]¶ get descriptors from module.
Parameters: mdl (module) – module to search Return type: [ Descriptor
]
Submodules¶
- mordred.AcidBase module
- mordred.AdjacencyMatrix module
- mordred.Aromatic module
- mordred.AtomCount module
- mordred.Autocorrelation module
- mordred.BCUT module
- mordred.BalabanJ module
- mordred.BaryszMatrix module
- mordred.BertzCT module
- mordred.BondCount module
- mordred.CarbonTypes module
- mordred.Chi module
- mordred.Constitutional module
- mordred.DetourMatrix module
- mordred.DistanceMatrix module
- mordred.EState module
- mordred.EccentricConnectivityIndex module
- mordred.ExtendedTopochemicalAtom module
- mordred.FragmentComplexity module
- mordred.Framework module
- mordred.HydrogenBond module
- mordred.InformationContent module
- mordred.KappaShapeIndex module
- mordred.Lipinski module
- mordred.McGowanVolume module
- mordred.MoeType module
- mordred.MolecularDistanceEdge module
- mordred.MolecularId module
- mordred.PathCount module
- mordred.Polarizability module
- mordred.RingCount module
- mordred.RotatableBond module
- mordred.SLogP module
- mordred.TPSA module
- mordred.TopologicalCharge module
- mordred.TopologicalIndex module
- mordred.VdwVolumeABC module
- mordred.VertexAdjacencyInformation module
- mordred.WalkCount module
- mordred.Weight module
- mordred.WienerIndex module
- mordred.ZagrebIndex module