cosmopharm 0.0.27__tar.gz → 0.0.29__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cosmopharm-0.0.29/.github/workflows/python-publish.yml +41 -0
- cosmopharm-0.0.29/.gitignore +189 -0
- cosmopharm-0.0.29/.gitmodules +3 -0
- cosmopharm-0.0.29/CITATION.cff +52 -0
- {cosmopharm-0.0.27/src/cosmopharm.egg-info → cosmopharm-0.0.29}/PKG-INFO +1 -1
- cosmopharm-0.0.29/TOC.png +0 -0
- cosmopharm-0.0.29/basic_usage.py +81 -0
- cosmopharm-0.0.29/data/lle/calculated/lle_results.xlsx +0 -0
- cosmopharm-0.0.29/data/lle/calculated/ucst_values.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/README.md +18 -0
- cosmopharm-0.0.29/data/sle/calculated/sle_results_PVA_alternatives.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/sle_results_PVP_alternatives.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/sle_results_REF.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVA_alternatives/calc_vs_exp.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVA_alternatives/components.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVA_alternatives/systems.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVP_alternatives/calc_vs_exp.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVP_alternatives/components.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/PVP_alternatives/systems.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/REF/calc_vs_exp.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/REF/components.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/REF/systems.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/calculated/statistics/REF/total.xlsx +0 -0
- cosmopharm-0.0.29/data/sle/experimental/GSF_PVPK12.dat +5 -0
- cosmopharm-0.0.29/data/sle/experimental/GSF_PVPK25.dat +4 -0
- cosmopharm-0.0.29/data/sle/experimental/GSF_PVPK30.dat +4 -0
- cosmopharm-0.0.29/data/sle/experimental/GSF_PVPVAc64.dat +5 -0
- cosmopharm-0.0.29/data/sle/experimental/IBP_EUD.dat +9 -0
- cosmopharm-0.0.29/data/sle/experimental/IBP_PLGA50.dat +4 -0
- cosmopharm-0.0.29/data/sle/experimental/IBP_PLGA75.dat +5 -0
- cosmopharm-0.0.29/data/sle/experimental/IBP_PVA.dat +8 -0
- cosmopharm-0.0.29/data/sle/experimental/IBP_PVPK12.dat +9 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_EUD.dat +3 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_PLGA50.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_PLGA75.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_PVA.dat +11 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_PVPK12.dat +11 -0
- cosmopharm-0.0.29/data/sle/experimental/IMC_PVPVAc64.dat +14 -0
- cosmopharm-0.0.29/data/sle/experimental/NIF_PVPK12.dat +8 -0
- cosmopharm-0.0.29/data/sle/experimental/NIF_PVPK25.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/NIF_PVPK30.dat +5 -0
- cosmopharm-0.0.29/data/sle/experimental/NIF_PVPVAc64.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_EUD.dat +3 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PLGA50.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PLGA75.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PVA.dat +10 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PVPK12.dat +8 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PVPK25.dat +8 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PVPK30.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/NPX_PVPVAc64.dat +8 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_EUD.dat +3 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_PLGA50.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_PLGA75.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_PVPK12.dat +6 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_PVPK30.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/PCM_PVPVAc64.dat +7 -0
- cosmopharm-0.0.29/data/sle/experimental/SIM_PDL.dat +4 -0
- cosmopharm-0.0.29/data/sle/experimental/SIM_PLGA50.dat +4 -0
- cosmopharm-0.0.29/data/sle/table_params.xlsx +0 -0
- cosmopharm-0.0.29/docs/README_pypi.md +112 -0
- cosmopharm-0.0.29/example_usage.py +438 -0
- cosmopharm-0.0.29/profiles/Gaussian_input_cosmo.gjf +39 -0
- cosmopharm-0.0.29/profiles/Gaussian_input_optimization.gjf +39 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/README.md +27 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/import_profiles.py +75 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/include/COSMO_SAC/COSMO.hpp +534 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/include/COSMO_SAC/profile_db.hpp +430 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/include/COSMO_SAC/util.hpp +91 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/profiles/complist.txt +3 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/profiles/pharmaceuticals/SIM.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/profiles/polymers/PLGA50.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/profiles/sigma3/PLGA50.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/profiles/sigma3/SIM.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/src/main.cpp +117 -0
- cosmopharm-0.0.29/profiles/_import_methods/DirectImport/src/pybind11_interface.cxx +118 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/complist.txt +21 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/complist.xlsx +0 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/CBZ.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/EUD.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/GSF.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/IBP.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/IMC.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/NIF.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/NPX.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PCM.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PDL.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PLGA50.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PLGA75.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PVA.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PVPK12.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PVPK25.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PVPK30.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/PVPVAc64.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/RBV.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/SIM.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/TBA.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/sigma3/VST.sigma +156 -0
- cosmopharm-0.0.29/profiles/_import_methods/UD/xlsx_to_txt.py +4 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/EUD_st-4mer.cosmo +3751 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PDL_st-3mer.cosmo +2420 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PLGA_st-4mer.cosmo +2715 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_at-3mer.cosmo +1816 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_at-5mer-mmrr.cosmo +2589 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_at-5mer-rmrm.cosmo +2593 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_at-5mer-wo1OH.cosmo +2537 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_it-3mer.cosmo +1815 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVA_st-3mer.cosmo +1797 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVPVAc_st-4mer.cosmo +3998 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVP_it-3mer.cosmo +3493 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVP_st-3mer.cosmo +3490 -0
- cosmopharm-0.0.29/profiles/polymers/cosmo/PVP_st-5mer.cosmo +5423 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/EUD.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PDL.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PLGA50.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PLGA75.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA_alternatives/PVA_at-5mer-rmrm.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA_alternatives/PVA_at-5mer-wo1OH.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA_alternatives/PVA_at_5mer-mmrr.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA_alternatives/PVA_it-3mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVA_alternatives/PVA_st-3mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVPK12.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVPK25.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVPK30.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVPVAc64.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK12_it-3mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK12_st-5mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK12_st-mol1.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK12_st-mol2.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK12_st-mol3.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK25_it-3mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK25_st-5mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK30_it-3mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/sigma/PVP_alternatives/PVPK30_st-5mer.sigma +156 -0
- cosmopharm-0.0.29/profiles/polymers/to_sigma_poly.py +856 -0
- cosmopharm-0.0.29/profiles/polymers/to_sigma_validation_data.zip +0 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/EUD_st-4mer.xyz +63 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PDL_st-3mer.xyz +37 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PLGA_st-4mer.xyz +40 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_at-3mer.xyz +30 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_at-5mer-mmrr.xyz +44 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_at-5mer-rmrm.xyz +44 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_at-5mer-wo1OH.xyz +43 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_it-3mer.xyz +30 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVA_st-3mer.xyz +30 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVPK12_st-mol1.xyz +382 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVPK12_st-mol2.xyz +382 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVPK12_st-mol3.xyz +382 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVPVAc_st-4mer.xyz +67 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVP_it-3mer.xyz +60 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVP_st-3mer.xyz +60 -0
- cosmopharm-0.0.29/profiles/polymers/xyz/PVP_st-5mer.xyz +94 -0
- cosmopharm-0.0.29/pyproject.toml +6 -0
- cosmopharm-0.0.29/requirements.txt +6 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/setup.cfg +0 -1
- cosmopharm-0.0.29/setup.py +18 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/__init__.py +1 -0
- cosmopharm-0.0.29/src/cosmopharm/version.py +16 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29/src/cosmopharm.egg-info}/PKG-INFO +1 -1
- cosmopharm-0.0.29/src/cosmopharm.egg-info/SOURCES.txt +177 -0
- cosmopharm-0.0.29/src/install_cosmosac.md +46 -0
- cosmopharm-0.0.27/setup.py +0 -17
- cosmopharm-0.0.27/src/cosmopharm.egg-info/SOURCES.txt +0 -22
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/LICENSE +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/README.md +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/actmodels/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/actmodels/actmodel.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/actmodels/cosmo.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/components.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/equilibrium/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/equilibrium/lle.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/equilibrium/sle.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/utils/__init__.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/utils/convert.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/utils/helpers.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/utils/lle_scanner.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm/utils/spacing.py +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm.egg-info/dependency_links.txt +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm.egg-info/requires.txt +0 -0
- {cosmopharm-0.0.27 → cosmopharm-0.0.29}/src/cosmopharm.egg-info/top_level.txt +0 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
# This workflow will upload a Python Package using Twine when a release is created
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
|
3
|
+
|
4
|
+
# This workflow uses actions that are not certified by GitHub.
|
5
|
+
# They are provided by a third-party and are governed by
|
6
|
+
# separate terms of service, privacy policy, and support
|
7
|
+
# documentation.
|
8
|
+
|
9
|
+
name: Upload Python Package
|
10
|
+
|
11
|
+
on:
|
12
|
+
release:
|
13
|
+
types: [published]
|
14
|
+
|
15
|
+
permissions:
|
16
|
+
contents: read
|
17
|
+
|
18
|
+
jobs:
|
19
|
+
deploy:
|
20
|
+
|
21
|
+
runs-on: ubuntu-latest
|
22
|
+
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v4
|
25
|
+
with:
|
26
|
+
fetch-depth: 0 # Fetch all history and tags
|
27
|
+
- name: Set up Python
|
28
|
+
uses: actions/setup-python@v3
|
29
|
+
with:
|
30
|
+
python-version: '3.x'
|
31
|
+
- name: Install dependencies
|
32
|
+
run: |
|
33
|
+
python -m pip install --upgrade pip
|
34
|
+
pip install build
|
35
|
+
- name: Build package
|
36
|
+
run: python -m build
|
37
|
+
- name: Publish package
|
38
|
+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
|
39
|
+
with:
|
40
|
+
user: __token__
|
41
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
@@ -0,0 +1,189 @@
|
|
1
|
+
# Created by https://www.toptal.com/developers/gitignore/api/python
|
2
|
+
# Edit at https://www.toptal.com/developers/gitignore?templates=python
|
3
|
+
|
4
|
+
conda-recipe/
|
5
|
+
*.rst
|
6
|
+
docs/*
|
7
|
+
!docs/README_pypi.md
|
8
|
+
#README_pypi.md
|
9
|
+
figs
|
10
|
+
~$*
|
11
|
+
releases
|
12
|
+
advanced_usage.py
|
13
|
+
minimal_working_example.py
|
14
|
+
COSMOSAC
|
15
|
+
figures
|
16
|
+
|
17
|
+
### Python ###
|
18
|
+
# Byte-compiled / optimized / DLL files
|
19
|
+
__pycache__/
|
20
|
+
*.py[cod]
|
21
|
+
*$py.class
|
22
|
+
|
23
|
+
# C extensions
|
24
|
+
*.so
|
25
|
+
|
26
|
+
# Distribution / packaging
|
27
|
+
.Python
|
28
|
+
build/
|
29
|
+
develop-eggs/
|
30
|
+
dist/
|
31
|
+
downloads/
|
32
|
+
eggs/
|
33
|
+
.eggs/
|
34
|
+
lib/
|
35
|
+
lib64/
|
36
|
+
parts/
|
37
|
+
sdist/
|
38
|
+
var/
|
39
|
+
wheels/
|
40
|
+
share/python-wheels/
|
41
|
+
*.egg-info/
|
42
|
+
.installed.cfg
|
43
|
+
*.egg
|
44
|
+
MANIFEST
|
45
|
+
|
46
|
+
# PyInstaller
|
47
|
+
# Usually these files are written by a python script from a template
|
48
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
49
|
+
*.manifest
|
50
|
+
*.spec
|
51
|
+
|
52
|
+
# Installer logs
|
53
|
+
pip-log.txt
|
54
|
+
pip-delete-this-directory.txt
|
55
|
+
|
56
|
+
# Unit test / coverage reports
|
57
|
+
htmlcov/
|
58
|
+
.tox/
|
59
|
+
.nox/
|
60
|
+
.coverage
|
61
|
+
.coverage.*
|
62
|
+
.cache
|
63
|
+
nosetests.xml
|
64
|
+
coverage.xml
|
65
|
+
*.cover
|
66
|
+
*.py,cover
|
67
|
+
.hypothesis/
|
68
|
+
.pytest_cache/
|
69
|
+
cover/
|
70
|
+
|
71
|
+
# Translations
|
72
|
+
*.mo
|
73
|
+
*.pot
|
74
|
+
|
75
|
+
# Django stuff:
|
76
|
+
*.log
|
77
|
+
local_settings.py
|
78
|
+
db.sqlite3
|
79
|
+
db.sqlite3-journal
|
80
|
+
|
81
|
+
# Flask stuff:
|
82
|
+
instance/
|
83
|
+
.webassets-cache
|
84
|
+
|
85
|
+
# Scrapy stuff:
|
86
|
+
.scrapy
|
87
|
+
|
88
|
+
# Sphinx documentation
|
89
|
+
docs/_build/
|
90
|
+
|
91
|
+
# PyBuilder
|
92
|
+
.pybuilder/
|
93
|
+
target/
|
94
|
+
|
95
|
+
# Jupyter Notebook
|
96
|
+
.ipynb_checkpoints
|
97
|
+
|
98
|
+
# IPython
|
99
|
+
profile_default/
|
100
|
+
ipython_config.py
|
101
|
+
|
102
|
+
# pyenv
|
103
|
+
# For a library or package, you might want to ignore these files since the code is
|
104
|
+
# intended to run in multiple environments; otherwise, check them in:
|
105
|
+
# .python-version
|
106
|
+
|
107
|
+
# pipenv
|
108
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
109
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
110
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
111
|
+
# install all needed dependencies.
|
112
|
+
#Pipfile.lock
|
113
|
+
|
114
|
+
# poetry
|
115
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
116
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
117
|
+
# commonly ignored for libraries.
|
118
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
119
|
+
#poetry.lock
|
120
|
+
|
121
|
+
# pdm
|
122
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
123
|
+
#pdm.lock
|
124
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
125
|
+
# in version control.
|
126
|
+
# https://pdm.fming.dev/#use-with-ide
|
127
|
+
.pdm.toml
|
128
|
+
|
129
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
130
|
+
__pypackages__/
|
131
|
+
|
132
|
+
# Celery stuff
|
133
|
+
celerybeat-schedule
|
134
|
+
celerybeat.pid
|
135
|
+
|
136
|
+
# SageMath parsed files
|
137
|
+
*.sage.py
|
138
|
+
|
139
|
+
# Environments
|
140
|
+
.env
|
141
|
+
.venv
|
142
|
+
env/
|
143
|
+
venv/
|
144
|
+
ENV/
|
145
|
+
env.bak/
|
146
|
+
venv.bak/
|
147
|
+
|
148
|
+
# Spyder project settings
|
149
|
+
.spyderproject
|
150
|
+
.spyproject
|
151
|
+
|
152
|
+
# Rope project settings
|
153
|
+
.ropeproject
|
154
|
+
|
155
|
+
# mkdocs documentation
|
156
|
+
/site
|
157
|
+
|
158
|
+
# mypy
|
159
|
+
.mypy_cache/
|
160
|
+
.dmypy.json
|
161
|
+
dmypy.json
|
162
|
+
|
163
|
+
# Pyre type checker
|
164
|
+
.pyre/
|
165
|
+
|
166
|
+
# pytype static type analyzer
|
167
|
+
.pytype/
|
168
|
+
|
169
|
+
# Cython debug symbols
|
170
|
+
cython_debug/
|
171
|
+
|
172
|
+
# PyCharm
|
173
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
174
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
175
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
176
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
177
|
+
#.idea/
|
178
|
+
|
179
|
+
### Python Patch ###
|
180
|
+
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
|
181
|
+
poetry.toml
|
182
|
+
|
183
|
+
# ruff
|
184
|
+
.ruff_cache/
|
185
|
+
|
186
|
+
# LSP config files
|
187
|
+
pyrightconfig.json
|
188
|
+
|
189
|
+
# End of https://www.toptal.com/developers/gitignore/api/python
|
@@ -0,0 +1,52 @@
|
|
1
|
+
cff-version: 1.2.0
|
2
|
+
message: "If you use COSMOPharm for your research, please cite the associated research article as follows."
|
3
|
+
|
4
|
+
# Preferred citation for the associated research article
|
5
|
+
preferred-citation:
|
6
|
+
type: article
|
7
|
+
authors:
|
8
|
+
- family-names: Antolovic
|
9
|
+
given-names: Ivan
|
10
|
+
- family-names: Vrabec
|
11
|
+
given-names: Jadran
|
12
|
+
- family-names: Klajmon
|
13
|
+
given-names: Martin
|
14
|
+
title: "COSMOPharm: Drug--Polymer Compatibility of Pharmaceutical Amorphous Solid Dispersions from COSMO-SAC"
|
15
|
+
journal: "Molecular Pharmaceutics"
|
16
|
+
doi: "10.1021/acs.molpharmaceut.3c12345"
|
17
|
+
year: 2024
|
18
|
+
month: 3
|
19
|
+
start: 1
|
20
|
+
end: 10
|
21
|
+
issue: 1
|
22
|
+
volume: 1
|
23
|
+
|
24
|
+
# Citation information for the COSMOPharm software
|
25
|
+
title: "COSMOPharm Tool: Computational Analysis of Drug-Polymer Compatibility"
|
26
|
+
version: "1.0.0"
|
27
|
+
doi: "10.5281/zenodo.10792203" # Replace with actual DOI if available
|
28
|
+
date-released: 2024-03-28
|
29
|
+
url: "https://github.com/ivanantolo/cosmopharm"
|
30
|
+
authors:
|
31
|
+
- family-names: Antolović
|
32
|
+
given-names: Ivan
|
33
|
+
affiliation: "Thermodynamics, Technische Universität Berlin, Ernst-Reuter-Platz 1, 10587 Berlin, Germany"
|
34
|
+
email: ivan.antolovic@tu-berlin.de
|
35
|
+
- family-names: Vrabec
|
36
|
+
given-names: Jadran
|
37
|
+
affiliation: "Thermodynamics, Technische Universität Berlin, Ernst-Reuter-Platz 1, 10587 Berlin, Germany"
|
38
|
+
- family-names: Klajmon
|
39
|
+
given-names: Martin
|
40
|
+
affiliation: "Department of Physical Chemistry, University of Chemistry and Technology, Prague, Technická 5, 166 28 Prague 6, Czechia"
|
41
|
+
email: martin.klajmon@vscht.cz
|
42
|
+
keywords:
|
43
|
+
- chemical-engineering
|
44
|
+
- phase-behavior
|
45
|
+
- cosmo-sac
|
46
|
+
- solubility-prediction
|
47
|
+
- pharmaceutical-science
|
48
|
+
- pharmaceutical-development
|
49
|
+
- drug-polymer-compatibility
|
50
|
+
- miscibility-analysis
|
51
|
+
- amorphous-solid-dispersions
|
52
|
+
- cosmopharm
|
Binary file
|
@@ -0,0 +1,81 @@
|
|
1
|
+
"""
|
2
|
+
Solubility & Miscibility calculations CLI
|
3
|
+
"""
|
4
|
+
|
5
|
+
import argparse
|
6
|
+
import cCOSMO
|
7
|
+
from cosmopharm import SLE, LLE, COSMOSAC
|
8
|
+
from cosmopharm.utils import create_components, read_params
|
9
|
+
try:
|
10
|
+
import matplotlib.pyplot as plt
|
11
|
+
except ImportError:
|
12
|
+
raise ImportError(
|
13
|
+
"This script requires matplotlib. Please install it with "
|
14
|
+
"'pip install matplotlib'."
|
15
|
+
)
|
16
|
+
|
17
|
+
def parse_args():
|
18
|
+
parser = argparse.ArgumentParser(description='Solubility & Miscibility Calculations CLI')
|
19
|
+
parser.add_argument('--names', nargs=2, default=['SIM', 'PLGA50'], help='Names of components e.g. SIM PLGA50')
|
20
|
+
parser.add_argument('--params_file', type=str, default="data/sle/table_params.xlsx", help='Path to parameters file')
|
21
|
+
parser.add_argument('--profile_path', type=str, default="./profiles/_import_methods/UD/", help='Path to COSMO profiles')
|
22
|
+
parser.add_argument('--fraction', type=str, default='w', choices=['w', 'x'], help='Fraction type for plotting (w = weight, x = mole)')
|
23
|
+
parser.add_argument('--output', type=str, default='basic_usage.png', help='Output file name for the plot')
|
24
|
+
return parser.parse_args()
|
25
|
+
|
26
|
+
def main():
|
27
|
+
args = parse_args()
|
28
|
+
|
29
|
+
# Create components and add parameters for SLE calculation
|
30
|
+
parameters = read_params(args.params_file)
|
31
|
+
components = create_components(args.names, parameters)
|
32
|
+
api, polymer = components[:2]
|
33
|
+
|
34
|
+
# Initialize COSMO-SAC model
|
35
|
+
db = cCOSMO.DelawareProfileDatabase(
|
36
|
+
f"{args.profile_path}/complist.txt",
|
37
|
+
f"{args.profile_path}/sigma3/")
|
38
|
+
|
39
|
+
for name in args.names:
|
40
|
+
iden = db.normalize_identifier(name)
|
41
|
+
db.add_profile(iden)
|
42
|
+
COSMO = cCOSMO.COSMO3(args.names, db)
|
43
|
+
|
44
|
+
# Add extended functionality to COSMO-SAC model (e.g. free volume, .. etc.)
|
45
|
+
actmodel = COSMOSAC(COSMO, mixture=components)
|
46
|
+
actmodel.combinatorial = 'FV' # Free-Volume (FV), Staverman-Guggenheim (SG)
|
47
|
+
actmodel.dispersion = True # Turn on/off the dispersion (optional)
|
48
|
+
|
49
|
+
# Calculate SLE (solubility)
|
50
|
+
sle = SLE(actmodel=actmodel)
|
51
|
+
ideal = sle.solubility(mix_type='ideal', show_progress=True) # ideal mixture (gamma=1)
|
52
|
+
real = sle.solubility(mix_type='real', show_progress=True) # real mixture (gamma=COSMO)
|
53
|
+
|
54
|
+
# Calculate LLE (miscibility)
|
55
|
+
lle = LLE(actmodel=actmodel)
|
56
|
+
options = dict(max_gap=0.1, dT=30, exponent=2.1, max_gap_type='weight')
|
57
|
+
miscibility = lle.miscibility(T=310, **options)
|
58
|
+
|
59
|
+
# =============================================================================
|
60
|
+
# Plot results
|
61
|
+
# =============================================================================
|
62
|
+
plt.figure()
|
63
|
+
plt.plot(*ideal[[args.fraction, 'T']].values.T, 'r.-', label='SLE (ideal)')
|
64
|
+
plt.plot(*real[[args.fraction, 'T']].values.T, 'k.-', label='SLE (real)')
|
65
|
+
plt.plot(miscibility[args.fraction+'L1'], miscibility['T'], 'k.--', mfc='w', label='LLE')
|
66
|
+
plt.plot(miscibility[args.fraction+'L2'], miscibility['T'], 'k.--', mfc='w')
|
67
|
+
|
68
|
+
plt.xlim(0, 1)
|
69
|
+
plt.ylim(300, 500)
|
70
|
+
plt.title(f"{api} + {polymer}")
|
71
|
+
plt.ylabel("T / K")
|
72
|
+
xlabel = {'w': 'Weight', 'x': 'Mole'}
|
73
|
+
plt.xlabel(f"{xlabel[args.fraction]} fraction {api}")
|
74
|
+
plt.legend()
|
75
|
+
|
76
|
+
# Save the figure to a file
|
77
|
+
plt.savefig(args.output)
|
78
|
+
plt.show()
|
79
|
+
|
80
|
+
if __name__ == "__main__":
|
81
|
+
main()
|
Binary file
|
Binary file
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# COSMOPharm Data Sources
|
2
|
+
|
3
|
+
This document details the sources for the free-volume-related parameters (`v298`, `v_hc`) of APIs that are not covered in [our *Mol. Pharm.* paper](https://doi.org/10.1021/acs.molpharmaceut.4c00342). These specific parameters are included in the `table_params.xlsx` file. For the sources of other parameters, please refer to the above *Mol. Pharm.* paper or the publication by [Klajmon (2022)](https://doi.org/10.1021/acs.molpharmaceut.2c00573).
|
4
|
+
|
5
|
+
## Sources for `v298`
|
6
|
+
|
7
|
+
- **CBZ (Carbamazepine)**
|
8
|
+
- Liquid densities from [molecular dynamics simulations](https://doi.org/10.1021/acs.molpharmaceut.2c00573) extrapolated to 298 K.
|
9
|
+
|
10
|
+
- **RBV (Ribavirin) and VST (Valsartan)**
|
11
|
+
- As in case of GSF and SIM, estimated using a quantitative structure–property relationship (QSPR) approach implemented in the [Amsterdam Modeling Suite](https://www.scm.com/), version 2022.101. Should be taken with caution.
|
12
|
+
|
13
|
+
## Sources for `v_hc`
|
14
|
+
|
15
|
+
- **All APIs**
|
16
|
+
- `v_hc` based on Bondi atomic radii and calculated using the fast method proposed by [Zhao *et al.*](https://doi.org/10.1021/jo034808o)
|
17
|
+
|
18
|
+
Please make sure to refer to the `table_params.xlsx` for the detailed parameters and their respective values.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|