Cheminformatics toolkit for property calculation, filtering, and QSAR modeling
Project description
Pharmalyzer
Pharmalyzer is a Python package for data preprocessing, screening, and early-stage analysis of chemical datasets. It provides a set of rule-based and RDKit-powered tools for screening, filtering, and assessing compounds' ADME properties.It enables fast and reliable computation of physicochemical and pharmacokinetic properties from SMILES strings, supporting cheminformatics and drug discovery workflows.
Features
- Physicochemical Properties: MW, LogP, TPSA, H-bond donors/acceptors, etc.
- ADME Prediction: GI absorption, BBB permeability, logKp, excretion
- Rule-Based Filtering: Lipinski, Veber, Ghose, PAINS, Brenk filters
- QSAR Modeling Tools: Encoding, feature selection, scaling, outlier detection
- Similarity & Integration: Compound comparison, data merging
- ChEMBL Integration: Fetch data directly from the ChEMBL database
Installation
pip install Pharmalyzer-0.1-py3-none-any.whl
---
## 🧪 Quickstart Example
```python
from Pharmalyzer import cleaner, Drug_rules, ADME
# Load a sample CSV file containing SMILES
import pandas as pd
df = pd.read_csv("Pharmalyzer/Pharmalyzer/sample_data.csv")
# Clean the data
df_clean = cleaner.clean_smiles(df, smiles_col="SMILES")
# Apply Lipinski rule filter
df_lipinski = Drug_rules.lipinski_filter(df_clean)
# Calculate ADME properties
df_adme = ADME.calculate_properties(df_lipinski)
print(df_adme.head())
🧰 Module Overview
| Module | Description |
|---|---|
cleaner.py |
Standardizes, removes salts, and cleans SMILES strings |
Drug_rules.py |
Filters compounds using rules like Lipinski, Ghose, PAINS |
ADME.py |
Computes key ADME properties and predictions |
toxicity.py |
Predicts potential toxicity risks |
qsar.py |
Builds and evaluates QSAR models |
encoder.py, scaler.py |
Preprocessing tools for ML pipelines |
chembl_client.py |
Fetches compound data from ChEMBL |
feature_selection.py |
Feature reduction and selection techniques |
filtering.py, outliers.py |
Additional data cleaning tools |
integrate.py, similarity.py |
Merging datasets, Tanimoto similarity calculations |
🖼️ Before vs After Cleaning (Example Visualization)
(Replace with actual plot)
from Pharmalyzer import cleaner
import matplotlib.pyplot as plt
# Before cleaning
df = pd.read_csv("sample_data.csv")
print("Before:", len(df))
# After cleaning
df_clean = cleaner.clean_smiles(df)
print("After:", len(df_clean))
License
MIT License
Author
Created by [Your Name]
📧 s.hassani@alum.semnan.ac.ir & sorour.hasani@gmail.com
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
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
File details
Details for the file pharmalyzer-0.1.0.tar.gz.
File metadata
- Download URL: pharmalyzer-0.1.0.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daff1ee2727f136f0054dd437811af00fce9c93dccc90a6aab76832025b1f231
|
|
| MD5 |
3f5e8e7cc3c674d8d068198d0d2d2d54
|
|
| BLAKE2b-256 |
80c26737d4efafeccedc2678eb994ae0d3fc036bd08d5e984c9031b9d9328fc5
|
File details
Details for the file pharmalyzer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pharmalyzer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1385ee14c2f793daa2fe1bd4d03317bce6e6bb45e3a265d09fcbb98ab0c2fb84
|
|
| MD5 |
817678d7d5c0e6b9922c2605004d63cf
|
|
| BLAKE2b-256 |
6a3debf32d655a3fdee0cfc6c1678d0e05f1d3a8628ab122fefb728a32163b54
|