Predictive modeling for drug-polymer compatibility in pharmaceutical formulations using COSMO-SAC.
Project description
COSMOPharm
Welcome to the COSMOPharm repository, accompanying our paper in J. Chem. Theory Comput.. This project and its associated publication offer insights and a practical toolkit for researching drug-polymer and drug-solvent systems, aiming to provide the scientific community with the means to reproduce our findings and further the development of COSMO-SAC-based models.
About
COSMOPharm is a Python package designed to streamline the predictive modeling of drug-polymer compatibility, crucial for the development of pharmaceutical amorphous solid dispersions. Apart from that, it can also be used for the miscibility/solubility of drugs with/in common solvents. Leveraging the COSMO-SAC (Conductor-like Screening Model Segment Activity Coefficient) model, COSMOPharm offers a robust platform for scientists and researchers to predict solubility, miscibility, and phase behavior in drug formulation processes.
Features
- Compatibility Prediction: Utilize open-source COSMO-SAC model for prediction of drug-polymer compatibility.
- Solubility Calculation: Calculate drug-polymer solubilities to guide the selection of suitable polymers for drug formulations.
- Miscibility and Phase Behavior Analysis: Analyze the miscibility of drug-polymer pairs and understand their phase behavior under various conditions.
- User-friendly Interface: Easy-to-use functions and comprehensive documentation to facilitate research and development in pharmaceutical sciences.
Installation
Quick Installation
For most users, the quickest and easiest way to install COSMOPharm is via pip, which will manage all dependencies for you. Ensure you have already installed the cCOSMO library by following the instructions on the COSMOSAC GitHub page.
Once cCOSMO is installed, you can install COSMOPharm directly from PyPI:
pip install cosmopharm
Advanced Installation Options
For users who need more control over the installation process (e.g., for development purposes or when integrating with other projects), COSMOPharm can also be installed by cloning the repository and installing manually.
Step 1: Clone the Repository
First, clone the COSMOPharm repository:
git clone https://github.com/ivanantolo/cosmopharm
Step 2: Navigate to the Repository Directory
cd cosmopharm
Option 1: Using pip to Install from Local Source
This method installs COSMOPharm and manages all dependencies efficiently:
pip install .
Option 2: Using setup.py for Installation
Alternatively, you can run the setup script directly:
python setup.py install
While this method is straightforward, using pip
is generally preferred for its dependency management capabilities.
Please note: Before proceeding with either advanced installation option, ensure the cCOSMO library is installed as described at the beginning of this section.
Quick Start
Here's a quick example to get you started with COSMOPharm: Example
# Example usage script: example_usage.py
import cCOSMO
from cosmopharm import SLE, LLE, COSMOSAC
from cosmopharm.utils import read_params, create_components
# Rest of the script...
Contributing / Getting Help
Contributions to COSMOPharm are welcome! We accept contributions via pull requests to the GitHub repository.
For bugs, feature requests, or other queries, please open an issue on GitHub.
Citation
If you use COSMOPharm in your research, please consider citing it. You can find the citation format in CITATION.md.
License
COSMOPharm is released under the MIT License. See the LICENSE file for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file cosmopharm-0.0.14.tar.gz
.
File metadata
- Download URL: cosmopharm-0.0.14.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dcfa6dec73a223eedbadffa54c0534735a2f106e0c967d458ce1243037e60d6 |
|
MD5 | 02e0a27f97820cd2f46b7b68396a54f0 |
|
BLAKE2b-256 | 5838aec42d6e6680618c6068988d9a28defc451246e1a3b84fb1b695ef890115 |
File details
Details for the file cosmopharm-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: cosmopharm-0.0.14-py3-none-any.whl
- Upload date:
- Size: 19.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c7d8040bd51ceff5bff6da88cd60fa38369e5a2867da7171b4b73f12449494 |
|
MD5 | f6bc36fc870da874513183f9604b3b52 |
|
BLAKE2b-256 | 031461d863c0b7b1b4b0d9c33db50c1c847d33a6b09144bf61e0dd2f13b32ae1 |