Protein solubility prediction toolkit
Project description
# SolvNet
**Protein Solubility Prediction Toolkit**
**SolvNet** is a Python toolkit for predicting protein solubility from amino acid sequences. It provides easy-to-use functions to generate embeddings and predict solubility with confidence estimates.
---
## Installation
```bash
pip install SolvNet
```
### Step 0: Prepare Data
* Prepare your dataset or load a test dataset from pbdsolv.
```python
from SolvNet import load_pdb
df = load_pdb()
```
* The dataset should be a pandas DataFrame with the following columns:
| Column | Description |
|---------|-------------------------------------------------------|
| name | Protein name |
| aa_seq | Amino acid sequence |
| label | Binary solubility label (`0`: insoluble, `1`: soluble) |
### Step 1: Generate ESMC Embeddings
Generate ESMC embeddings for the protein sequences:
```python
from SolvNet import esmc_embeddings
data = esmc_embeddings(df_test)
```
Parameters:
* `df_test`: Dataframe from step 0.
### Step 2: Predict Solubility
Use the generated embeddings to predict protein solubility:
```python
from SolvNet import Predict
labels, preds, confs, probs = Predict(
data=data,
percentage=0.85,
batch_size=64
)
```
Parameters:
* `data:` ESMC embeddings.
* `percentage:` The top percentage of most confident predictions to return (default 0.85).
* `batch_size:` Batch size for prediction (default 64).
Returns:
* `labels:` True labels for the top percentage% most confident proteins.
* `preds:` Predicted labels for the top percentage%.
* `confs:` Confidence scores for predictions.
* `probs:` Predicted probabilities.
## Example Workflow
```python
from SolvNet import *
# Step 0: Load pdb dataset:
df = load_pdb()
# Step 1: Generate embeddings
data = esmc_embeddings(df)
# Step 2: Make predictions
labels, preds, confs, probs = Predict(
data_pkl_path=data,
percentage=0.85,
batch_size=64
)
```
___
## License
MIT License © 2025 Thao Nguyen et al.
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
solvnet-1.0.14.tar.gz
(101.0 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
solvnet-1.0.14-py3-none-any.whl
(101.0 MB
view details)
File details
Details for the file solvnet-1.0.14.tar.gz.
File metadata
- Download URL: solvnet-1.0.14.tar.gz
- Upload date:
- Size: 101.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5fa48739393da611da8529a0cca0c43333fe489c5faa940534dc22f8c60b209
|
|
| MD5 |
fe7086bffabcf5bd0ce286ae276c1b04
|
|
| BLAKE2b-256 |
3a9d8651ef32ac26b81b1e8cd07847cdc6d6adcf4e182db27a641e48ffbeee41
|
File details
Details for the file solvnet-1.0.14-py3-none-any.whl.
File metadata
- Download URL: solvnet-1.0.14-py3-none-any.whl
- Upload date:
- Size: 101.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d80c6b28a3b014a6dc95fc18fba5ee198e7849a15421678d0e477a7f0848b6
|
|
| MD5 |
cc33d0895dbd5eed6a508f68ee208f9b
|
|
| BLAKE2b-256 |
50e0650f845128bf60c02eb91f48c86e9005bbdc869266efc3af0c0d112979ca
|