Skip to main content

pH-dependent solubility predictions for small molecules

Project description

:notes::saxophone: SolpHedge

pH-dependent solubility predictions for small molecules

License: MIT

Use in the browser

Try it without any local installation by clicking the badge below!

⏬⏬⏬⏬⏬⏬
Open In Colab
⏫⏫⏫⏫⏫⏫

Installation

:warning: MacOS is not supported by SolpHedge. :warning:

Windows Linux

OpenBabel is the only dependency of SolpHedge not available through PyPI. It can be installed with:

conda install openbabel -c conda-forge

Then SolpHedge and other dependencies can be isntalled with:

pip install solphedge

Get started

from solphedge import SolpH

smiles_list = ['CC(C1=CC(=CC=C1)C(=O)C2=CC=CC=C2)C(=O)O',
               'CC(=O)CC(C1=CC=CC=C1)C2=C(C3=CC=CC=C3OC2=O)O',
               'C1=CC=C(C(=C1)CC(=O)O)NC2=C(C=CC=C2Cl)Cl',
               'C1=CC(=C(C=C1C2=C(C=C(C=C2)F)F)C(=O)O)O',
               'CC1=CN=C(C(=C1OC)C)CS(=O)C2=NC3=C(N2)C=C(C=C3)OC',
               'C1=CC=C(C=C1)CC2NC3=C(C=C(C(=C3)C(F)(F)F)S(=O)(=O)N)S(=O)(=O)N2',
               'CC1=CN=C(S1)NC(=O)C2=C(C3=CC=CC=C3S(=O)(=O)N2C)O',
               'C#CCO[C@H]1CN2CCC1CC2',
               'CC(C)CC1=CC=C(C=C1)C(C)C(=O)O']
model = SolpH()
print(model.predict(smiles_list))
#                                             molecule  -logS (pH=7.4)  delta logS (pH=7.4 - pH=1.0)  composite -logS (pH=1.0)  solubility (pH=7.4; mM)  solubility (pH=1.0; mM)
# 0            CC(C1=CC(=CC=C1)C(=O)C2=CC=CC=C2)C(=O)O           3.859                         2.910                     6.770                    0.138                    0.000
# 1       CC(=O)CC(C1=CC=CC=C1)C2=C(C3=CC=CC=C3OC2=O)O           4.793                         0.578                     5.370                    0.016                    0.004
# 2           C1=CC=C(C(=C1)CC(=O)O)NC2=C(C=CC=C2Cl)Cl           3.792                         3.072                     6.864                    0.161                    0.000
# 3            C1=CC(=C(C=C1C2=C(C=C(C=C2)F)F)C(=O)O)O           4.113                         2.768                     6.881                    0.077                    0.000
# 4   CC1=CN=C(C(=C1OC)C)CS(=O)C2=NC3=C(N2)C=C(C=C3)OC           3.862                         0.000                     3.862                    0.137                    0.137
# 5  C1=CC=C(C=C1)CC2NC3=C(C=C(C(=C3)C(F)(F)F)S(=O)...           4.042                         0.127                     4.169                    0.091                    0.068
# 6   CC1=CN=C(S1)NC(=O)C2=C(C3=CC=CC=C3S(=O)(=O)N2C)O           4.723                         0.000                     4.723                    0.019                    0.019
# 7                              C#CCO[C@H]1CN2CCC1CC2           3.749                         0.000                     3.749                    0.178                    0.178
# 8                      CC(C)CC1=CC=C(C=C1)C(C)C(=O)O           3.920                         1.473                     5.393                    0.120                    0.004

Other parameters

class SolpH(standardize: bool = True, standardizer: str = 'papyrus', njobs: int = 1):
    ...

Parameters

  • standardize : bool
    Should input molecules or SMILES be standardized before making predictions.
  • standardizer : str = {'chembl'; 'papyrus'}
    Molecular standardizer to be applied.
  • njobs : int
    Maximum number of simultaneous processes calculating molecular descriptors prior to predictions.
    ...
    def predict(mols: Chem.Mol | list[Chem.Mol] | str | list[str], round: int = 3, out_units: str='mM'):

Parameters

  • mols : str | rdkit.Chem.Mol | list[str] | list[rdkit.Chem.Mol]
    Input molecule(s) or SMILES.
  • round : int
    Number of decimals to round the result.
  • out_units : str = {'M'; 'mM'; 'uM'; 'nM'; 'pM'}
    Units to convert log-scale molar solubilities to.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solphedge-0.0.2.tar.gz (14.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

solphedge-0.0.2-py3-none-any.whl (14.3 MB view details)

Uploaded Python 3

File details

Details for the file solphedge-0.0.2.tar.gz.

File metadata

  • Download URL: solphedge-0.0.2.tar.gz
  • Upload date:
  • Size: 14.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for solphedge-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e3a976e529e6c21b03cb8a141f1aec0460dc5c4ff8ca61f8ae57869e24662d3f
MD5 298ccc7432eae5efdcabe7afddb3a615
BLAKE2b-256 672be915f09450c138b187f2ed9a5a43e010d03e8f6a444ca167c254a1543d08

See more details on using hashes here.

File details

Details for the file solphedge-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: solphedge-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 14.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for solphedge-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 123a185802eaeb29c17dd18fbddb4a84258a28b8ad24905620a371f5d1e217a9
MD5 5b419af7764866b9fa1f538856fadc8b
BLAKE2b-256 84dd16cd344a1160439fab18fb3f175b8f97adae64bac652f1dd2098bd00a4bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page