hemopimod2 1.0__py3-none-any.whl
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.
- hemopimod2/__init__.py +7 -0
- hemopimod2/python_scripts/__init__.py +3 -0
- hemopimod2/python_scripts/__pycache__/stitch.cpython-311.pyc +0 -0
- hemopimod2/python_scripts/config/INSTALLATION.txt +77 -0
- hemopimod2/python_scripts/config/environment.yml +17 -0
- hemopimod2/python_scripts/config/requirements.txt +19 -0
- hemopimod2/python_scripts/data/merged_final_data.json +15900 -0
- hemopimod2/python_scripts/hemopimod2.py +1040 -0
- hemopimod2/python_scripts/models/chemical_model.pkl +0 -0
- hemopimod2/python_scripts/models/sequence_model.pkl +4 -0
- hemopimod2/python_scripts/models/structure_model.pkl +0 -0
- hemopimod2/python_scripts/stitch.py +642 -0
- hemopimod2-1.0.dist-info/LICENSE.txt +674 -0
- hemopimod2-1.0.dist-info/METADATA +347 -0
- hemopimod2-1.0.dist-info/RECORD +18 -0
- hemopimod2-1.0.dist-info/WHEEL +5 -0
- hemopimod2-1.0.dist-info/entry_points.txt +2 -0
- hemopimod2-1.0.dist-info/top_level.txt +1 -0
hemopimod2/__init__.py
ADDED
|
Binary file
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# 🛠️ Installation Guide for HemoPI-MOD2
|
|
2
|
+
|
|
3
|
+
## 🔹 Standalone Installation
|
|
4
|
+
|
|
5
|
+
HemoPI-MOD2 is written in **Python 3** and requires the following
|
|
6
|
+
dependencies:
|
|
7
|
+
|
|
8
|
+
### ✅ Required Libraries
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
python>=3.9
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Core packages, needed by every model:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install scikit-learn==1.6.1
|
|
18
|
+
pip install xgboost==3.2.0
|
|
19
|
+
pip install "numpy>=1.23,<2.0"
|
|
20
|
+
pip install pandas
|
|
21
|
+
pip install joblib
|
|
22
|
+
pip install scipy
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Needed only for the Chemical (-m 2) and Structure (-m 3) models:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install rdkit
|
|
29
|
+
pip install mordred==1.2.0
|
|
30
|
+
pip install "networkx>=2.8,<3.0"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or install everything at once:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install -r requirements.txt
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## 🔹 Installation using environment.yml
|
|
40
|
+
|
|
41
|
+
1. Create a new Conda environment:
|
|
42
|
+
```bash
|
|
43
|
+
conda env create -f environment.yml
|
|
44
|
+
```
|
|
45
|
+
2. Activate the environment:
|
|
46
|
+
```bash
|
|
47
|
+
conda activate HemoPI-MOD2
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## ⚠️ Important Note-1
|
|
51
|
+
|
|
52
|
+
- scikit-learn and xgboost are PINNED on purpose. The three model files in
|
|
53
|
+
models/ were fitted with scikit-learn 1.6.1, and chemical_model.pkl holds a
|
|
54
|
+
serialized XGBoost regressor. Loading either under a different version
|
|
55
|
+
prints a version warning and is not guaranteed to reproduce the published
|
|
56
|
+
numbers.
|
|
57
|
+
|
|
58
|
+
## ⚠️ Important Note-2
|
|
59
|
+
|
|
60
|
+
- The model files ship inside this package, in the models/ directory. Nothing
|
|
61
|
+
needs to be downloaded or extracted.
|
|
62
|
+
- The Sequence model (-m 1) and the Design module (-j 2) run without RDKit and
|
|
63
|
+
Mordred. Install those two only if you need the Chemical or Structure model.
|
|
64
|
+
|
|
65
|
+
## 🔹 Checking the installation
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
python HemoPI_MOD2.py -h
|
|
69
|
+
python HemoPI_MOD2.py -i example_sequence.fasta -o output.csv
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The second command should print a table of five peptides with their predicted
|
|
73
|
+
HC50 values and write output.csv.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
🚀 **You are now ready to use HemoPI-MOD2!**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: HemoPI-MOD2
|
|
2
|
+
channels:
|
|
3
|
+
- defaults
|
|
4
|
+
- conda-forge
|
|
5
|
+
dependencies:
|
|
6
|
+
- python=3.10
|
|
7
|
+
- numpy=1.26.4
|
|
8
|
+
- pandas=2.2.3
|
|
9
|
+
- scipy
|
|
10
|
+
- joblib=1.4.2
|
|
11
|
+
- scikit-learn=1.6.1
|
|
12
|
+
- rdkit
|
|
13
|
+
- networkx=2.8.8
|
|
14
|
+
- pip
|
|
15
|
+
- pip:
|
|
16
|
+
- xgboost==3.2.0
|
|
17
|
+
- mordred==1.2.0
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# HemoPI-MOD2 standalone — Python dependencies (Python 3.9 or newer)
|
|
2
|
+
#
|
|
3
|
+
# scikit-learn and xgboost are PINNED on purpose. The three model files in
|
|
4
|
+
# models/ were fitted with scikit-learn 1.6.1, and chemical_model.pkl holds a
|
|
5
|
+
# serialized XGBoost regressor. Other versions usually load, but are not
|
|
6
|
+
# guaranteed to reproduce the published numbers.
|
|
7
|
+
|
|
8
|
+
numpy>=1.23,<2.0
|
|
9
|
+
pandas>=1.5
|
|
10
|
+
scipy>=1.9
|
|
11
|
+
joblib>=1.2
|
|
12
|
+
scikit-learn==1.6.1
|
|
13
|
+
xgboost==3.2.0
|
|
14
|
+
|
|
15
|
+
# Chemical (-m 2) and Structure (-m 3) models only.
|
|
16
|
+
# Mordred 1.2.0 needs networkx<3.
|
|
17
|
+
rdkit>=2022.9
|
|
18
|
+
mordred==1.2.0
|
|
19
|
+
networkx>=2.8,<3.0
|