datamol.molar
¶
A set of utility functions to convert between various units and formats used in drug discovery.
log_to_molar(values, unit)
¶
Convert a log-scaled molar concentration (pXC50 for example) to its unscaled value (XC50).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
values |
Union[float, Iterable[float], ndarray]
|
A log-scaled molar concentration (can be a scalar, a list or an array). |
required |
unit |
str
|
The unit of the input concentration. Choose from:
|
required |
Source code in datamol/molar.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
molar_to_log(values, unit)
¶
Convert a molar concentration (XC50 for example) to its log scaled value (pXC50).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
values |
Union[float, Iterable[float], ndarray]
|
A molar concentration (can be a scalar, a list or an array). |
required |
unit |
str
|
The unit of the input concentration. Choose from:
|
required |
Source code in datamol/molar.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|