Predictive modeling for drug-polymer compatibility in pharmaceutical formulations using COSMO-SAC.
Project description
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
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 <https://github.com/ivanantolo/cosmopharm/issues>
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.13.tar.gz
.
File metadata
- Download URL: cosmopharm-0.0.13.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7da151d3afccd07bfa524ba5e851844d361b00d44acc985afb42ddacb49c34 |
|
MD5 | 23d0d4fc1c9db3b04b80f2bfdb0a1bbb |
|
BLAKE2b-256 | 98c83b83d151fd9be88e054de88536ff7fbbb0dd6617951a21cc9dad26db248b |
File details
Details for the file cosmopharm-0.0.13-py3-none-any.whl
.
File metadata
- Download URL: cosmopharm-0.0.13-py3-none-any.whl
- Upload date:
- Size: 19.5 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 | 1cf4668f2633d8ecf906df53dd387a91080483f0772c472e5fdd6b7675f1e4f4 |
|
MD5 | 8663190b441cb81132addcf3afa047e8 |
|
BLAKE2b-256 | cc5400d414d3e5ca1332145bd7d2b85a9342f918b2de37a59eeaeb9b192d3448 |