Skip to main content

The package find the best chromatography based on properties of the mixture

Project description

Project Logo

Chrfinder

Project overview

PyPI version License PyPI - Python Version

Welcome to Chrfinder! This project automates the selection of the most suitable chromatography technique . By simply providing the names of the molecules in the mixture, the code retrieves their physicochemical properties from PubChem (web source) and determines the optimal chromatography method based on these properties. It also gives the optimal conditions.

✅ Benefits

  • 🚀 Efficiency: Automates the property retrieval and decision-making process, saving time and reducing manual effort.
  • 🎯 Accuracy: Utilizes precise physicochemical data to ensure the most suitable chromatography technique is chosen.
  • 🌐 Versatility: Supports a wide range of organic compounds and chromatography methods (PubChem database).

⚙ Installation

Create a new environment, you may also give the environment a different name.

conda create -n chrfinder python=3.10 
conda activate chrfinder
pip install Chrfinder

🛠️ Installation for Development

To get started with Chrfinder, you can follow these steps:

git clone https://github.com/Averhv/Chrfinder.git
cd Chrfinder
pip install .
pip install jupyterlab
jupyter lab

Optional: Installing for Development and Testing

If you want to contribute to Chrfinder or run the tests and get coverage, you can install the package in editable mode along with the necessary dependencies for testing and documentation:

git clone https://github.com/Averhv/Chrfinder.git
cd Chrfinder
pip install -e ".[test,doc]"
pip install jupyterlab
jupyter lab

Then you need to run the tests as follow in your terminal:

pip install tox
tox

One can also run the following to get better readability:

  • runs tests for the Chrfinder.py file
  • measures code coverage
  • generates coverage reports in both XML and terminal formats
  • provides verbose output during test execution.
pytest --cov=src/Chrfinder.py --cov-report xml:.tox/coverage.xml --cov-report term -vv

Test result: 15 passed in ~20s

📒 Features

from chrfinder import main

# Running the whole file ask for molecules through Tkinter and returns the best chromatography
main()

🌐 Optional functions

find_pka(inchikey)

Finds the pKa value for a compound using its InChIKey.

from chrfinder import find_pka

inchikey = "XEFQLINVKFYRCS-UHFFFAOYSA-N"
find_pka(inchikey)
find_boiling_point(name)

Finds the boiling point for a compound by name.

from chrfinder import find_boiling_point

compound_name = "Ethanol"
find_boiling_point(compound_name)
get_df_properties()

Get a DataFrame of properties for a mixture of compounds.

from chrfinder import get_df_properties

mixture = ["Acetone", "Ethanol", "Methanol"]
get_df_properties(mixture, verbose=True)

How It Works

  1. Input: User provides the names of the molecules present in the mixture through a Tkinter interface.

  2. Data Retrieval: Finds the following key physicochemical properties for each molecule in Pubchem:

    • Boiling temperature (°C)
    • logP (partition coefficient)
    • pKa (acid dissociation constants)
    • Molecular mass
  3. Chromatography Type Decision: Follows logical conditions to determine best chromatography and conditions

    • Gas Chromatography (GC): if the Boiling Point is low (Teb <250°C).
    • Ion Chromatography (IC): for small molecules (M<2000g/mol) and a negative maximum LogP negative
      • Selected if the maximum molecular mass is less than or equal to 2000, and the maximum logP is negative, with a proposed pH derived from the pKa values.
    • High-Performance Liquid Chromatography (HPLC): Chosen for different conditions. Stationary phases and eluent natures are suggested.
    • Size Exclusion Chromatography (SEC): For big molecules (M>2000g/mol). From LogP, it suggest gel permeation or gel filtration, with corresponding eluant.
  4. Output:

    • The code outputs the advisable chromatography type, the nature of the eluent (gas, aqueous, or organic), and the proposed pH for the eluent if applicable through the Tkinter interface.

Work in progress...

  • Build a data molecules thermostability database;
  • taking into account multiple pKa values for polyacids for exemple;
  • optimize the research: search only one time te same name;
  • find physicalchemical properties as addition functionality;

🫱🏽‍🫲🏼 Contributing

Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.

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

chrfinder-0.0.2.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

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

chrfinder-0.0.2-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: chrfinder-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.13

File hashes

Hashes for chrfinder-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fad7b274f8ac62d5ac53ecb32acc3e013ba05ea841de372653a26e0168956404
MD5 14b187137a11b219e5a720ffc8f0cd55
BLAKE2b-256 50d665544028e5f18eca248205fc238d37a9360a722153e7fdebb755300072e4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chrfinder-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.13

File hashes

Hashes for chrfinder-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5324b0d5170e512797cfb6c5fd7a898f02014083ee16fa787d0d1bd8232a3655
MD5 3eef3a599b24608056547d68a64cea6b
BLAKE2b-256 d740ccf43f6e64cde1ef6e2955dd28f8ff5b3613f171845df424f437a7ce9db5

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