Skip to main content

Water Solubility Prediction Project

Project description

Project Logo

Water Solubility Prediction Project

🔍 Overview 🔎

This project aims to predict the water solubility of chemical compounds using machine learning techniques. The project developed here can be used to estimate the water solubility of new compounds only using the SMILES code, which can be valuable in various industries such as pharmaceuticals, agriculture, and environmental science. In this repository, we are making available the data we used to train and test our models and .pkl files containing the optimized parameters of our best model. But more importantly a notebook tracing what we did from the beginning to the end of this project and a package that can predict the water solubility of several SMILEs and of a .csv file containing several SMILEs.

📝 Project Structure 📝

This project contains two main elements: a Notebook and a Package.

1️⃣ A Notebook containing:

  • Import Relevant Modules and Libraries
  • Data Collection
  • Data Cleaning
  • Calculation of RDkit Molecular Descriptors
  • Selection of Machine Learning Models
  • Fine-tuning
  • Analysis of different models
  • Saving of the best trained model and scaler

2️⃣ A Package containing two main functions:

  • A function to predict the LogS value for one or more SMILES
  • A function to predicts LogS values for SMILES codes stored in a CSV file

🔨 Installation 🔨

🌍 Environment 🌍

  1. clone our repository:
git clone https://github.com/Nohalyan/Projetppchem
  1. Open your terminal or Anaconda Prompt and navigate to the directory /WSPP_Projectppchem containing the wsppchem_env_environment.yml file and run the following command to create the Conda environment:
conda env create -f environment.yml
  1. Activate the environment: After creating the environment, activate it using:
conda activate wsppchem_env
  1. Verify the environment: To check that all the dependencies are installed correctly, you can list the installed packages:
conda list

📦 Package 📦

  1. Install our package wsppchem with a simple pip install.
pip install wsppchem
  1. Import all the functions using the following command.
from wsppchem.wspp_functions import *
  1. Enjoy! 😁

The two main functions of our package are predict_logS_smiles and predict_logS_csv which can be used in the following way:

predict_logS_smiles(*smiles_codes)
predict_logS_csv(csv_file_path)

The first function predict_logS_smiles(*smiles_codes) can be used to predict the LogS value for one or more SMILES at the same time. The second fucntion predict_logS_csv(csv_file_path) can be used to predicts LogS values for SMILES codes stored in a .csv file. And if you need any help, you can use the function wspphelp() which will give you more precise information on the functions as well as an example of how to use them.

📗 License 📕

This project is licensed under the MIT License.

📜 References 📜

This project is based on the code of this Github Jupyter notebook: https://github.com/gashawmg, as well as data from https://github.com/PatWalters.

📖 Authors 📖

This project was carried out as part of EPFL's Practical programming in Chemistry course.

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

wsppchem-1.0.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

wsppchem-1.0-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file wsppchem-1.0.tar.gz.

File metadata

  • Download URL: wsppchem-1.0.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for wsppchem-1.0.tar.gz
Algorithm Hash digest
SHA256 3e601b5ef173883fbcbd546446bfcfccd20b3e01a5b7cebbadf89497f9cff98b
MD5 65b96558f8a3ad200f9ade29db8cbf16
BLAKE2b-256 43ef14aa95310e31d0e903a35046bde0db399062d45f10134baf5507c9ac32a5

See more details on using hashes here.

File details

Details for the file wsppchem-1.0-py3-none-any.whl.

File metadata

  • Download URL: wsppchem-1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for wsppchem-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 751de12fe97a887df235514cafe1f0889254b8547612fca5a8b19d9487c02a5f
MD5 86541d0a7c803b1c08c37fccd30f5de5
BLAKE2b-256 7f403ef5b2e8653b9255f5d0700f4793ace75e939648de3b6c929f38fef07b89

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