Adme property predictor

From aipoch/medical-research-skills · View interactive version

Adme property predictor is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Analyze data with `adme-property-predictor` using a reproducible workflow, explicit validation, and structured outputs for review-ready interpretation.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

ADME Property Predictor

When to Use

Key Features

Dependencies

Example Usage

cd "20260318/scientific-skills/Data Analytics/adme-property-predictor"
python -m py_compile scripts/main.py
python scripts/main.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/main.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

See ## Workflow above for related details.

Quick Check

Use this command to verify that the packaged script entry point can be parsed before deeper execution.

python -m py_compile scripts/main.py

Audit-Ready Commands

Use these concrete commands for validation. They are intentionally self-contained and avoid placeholder paths.

python -m py_compile scripts/main.py

# Example invocation: python scripts/main.py --help

# Example invocation: python scripts/main.py --input "Audit validation sample with explicit symptoms, history, assessment, and next-step plan." --format json

Workflow

  1. Confirm the user objective, required inputs, and non-negotiable constraints before doing detailed work.
  2. Validate that the request matches the documented scope and stop early if the task would require unsupported assumptions.
  3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.
  4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.
  5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.

Overview

Comprehensive pharmacokinetic prediction tool that assesses drug-likeness and ADME properties of small molecules using validated cheminformatics models, molecular descriptors, and structure-property relationships.

Key Capabilities:

Integration with Other Skills

Upstream Skills:

Downstream Skills:

Complete Workflow:

Chemical Structure Converter (prepare structures) → 
  Lipinski Rule Filter (initial filtering) → 
    ADME Property Predictor (this skill, detailed PK) → 
      Drug Candidate Evaluator (integrated scoring) → 
        Toxicity Structure Alert (safety check)

Core Capabilities

1. Absorption (A) Prediction

Predict intestinal absorption, solubility, and permeability:

from scripts.adme_predictor import ADMEPredictor

predictor = ADMEPredictor()

# Predict absorption properties
absorption = predictor.predict_absorption(
    smiles="CC(=O)Oc1ccccc1C(=O)O",  # Aspirin
    properties=["all"]  # or specific: ["hia", "caco2", "solubility"]
)

print(absorption.summary())

Predicted Properties:

| Property | Model | Units | Interpretation |

|----------|-------|-------|----------------|

| HIA | ML + physicochemical | % | Human intestinal absorption; >80% good |

| Caco-2 | QSPR | 10⁻⁶ cm/s | Permeability; >70 high, <25 low |

| Solubility | QSPR | mg/mL | Aqueous solubility; >0.1 mg/mL acceptable |

| LogS | QSPR | unitless | Intrinsic solubility; >-4 acceptable |

| Lipinski Pass | Rule-based | boolean | Passes all 5 rules |

| Veber Pass | Rule-based | boolean | PSA <140, rotatable bonds <10 |

Best Practices:

Common Issues and Solutions:

Issue: Lipinski pass but poor solubility

Issue: Caco-2 predicts high absorption but HIA low

2. Distribution (D) Prediction

Predict tissue distribution, protein binding, and brain penetration:


# Predict distribution properties
distribution = predictor.predict_distribution(
    smiles="CC(=O)Oc1ccccc1C(=O)O",
    properties=["vd", "ppb", "bbb"]
)

# Access specific predictions
vd = distribution.volume_of_distribution
bbb = distribution.blood_brain_barrier
ppb = distribution.plasma_protein_binding

Predicted Properties:

| Property | Model | Units | Interpretation |

|----------|-------|-------|----------------|

| Vd | QSPR | L/kg | Volume of distribution; 0.1-10 typical |

| PPB | ML | % | Plasma protein binding; >90% high, <50% low |

| BBB | LogBB | unitless | Brain penetration; >0.3 penetrant |

| fu | Calculated | fraction | Free (unbound) fraction; 1 - PPB/100 |

Best Practices:

Common Issues and Solutions:

Issue: BBB predictions unreliable for certain chemotypes

Issue: PPB overestimated for acidic drugs

3. Metabolism (M) Prediction

Predict metabolic stability, CYP interactions, and liability sites:


# Predict metabolism properties
metabolism = predictor.predict_metabolism(
    smiles="CC(=O)Oc1ccccc1C(=O)O",
    include_site_prediction=True
)

# Check CYP interactions
cyp_profile = metabolism.cyp_profile
stability = metabolism.metabolic_stability

Predicted Properties:

| Property | Model | Output | Interpretation |

|----------|-------|--------|----------------|

| CYP Inhibition | ML | IC50 or class | Potential DDI; <1 μM high risk |

| CYP Substrate | Classification | Boolean/Probability | Metabolized by specific CYP |

| Stability | ML | T1/2 or class | Microsomal/ hepatocyte stability |

| Liability Sites | Reactivity models | Atom indices | Soft spots for metabolism |

| MAO Substrate | Classification | Boolean | Monoamine oxidase substrate |

Best Practices:

Common Issues and Solutions:

Issue: False negatives for time-dependent inhibition (TDI)

Issue: Metabolic site prediction shows multiple hotspots

4. Excretion (E) Prediction

Predict clearance routes and elimination kinetics:


# Predict excretion properties
excretion = predictor.predict_excretion(
    smiles="CC(=O)Oc1ccccc1C(=O)O",
    properties=["clearance", "half_life", "route"]
)

# Access predictions
clearance = excretion.clearance_ml_min_kg
t12 = excretion.half_life_hours
route = excretion.primary_route

Predicted Properties:

| Property | Model | Units | Interpretation |

|----------|-------|-------|----------------|

| CL | QSPR | mL/min/kg | Clearance; <5 low, 5-15 moderate, >15 high |

| T1/2 | QSPR | hours | Half-life; 2-8h typical for oral drugs |

| Route | Classification | renal/biliary/mixed | Primary excretion pathway |

| LogD | QSPR | unitless | Distribution coefficient; affects clearance |

Best Practices:

Common Issues and Solutions:

Issue: Clearance predictions highly variable

Issue: Route prediction contradicts structure

5. Integrated Drug-Likeness Scoring

Overall assessment combining all ADME properties:


# Generate comprehensive drug-likeness score
druglikeness = predictor.calculate_druglikeness(
    smiles="CC(=O)Oc1ccccc1C(=O)O",
    methods=["qed", "muegge", "golden_triangle"]
)

# Multi-parameter optimization
mpo_score = predictor.mpo_score(
    smiles="CC(=O)Oc1ccccc1C(=O)O",
    target_profile={"hia": >80, "bbb": <0.3, "t12": "2-8h"}
)

Scoring Methods:

| Method | Description | Range | Good Score |

|--------|-------------|-------|------------|

| QED | Quantitative Estimation of Drug-likeness | 0-1 | >0.6 |

| Muegge | Bioavailability score | 0-6 | >4 |

| MPO | Multi-Parameter Optimization | 0-10 | >6 |

Best Practices:

Common Issues and Solutions:

Issue: Drug-likeness score conflicts with project needs

6. Batch Processing and Library Screening

Analyze compound libraries efficiently:


# Batch process library
results = predictor.batch_predict(
    input_file="library.smi",  # SMILES file
    properties=["all"],
    output_format="csv",
    n_workers=4  # Parallel processing
)

# Filter by criteria
filtered = results.filter(
    lipinski_pass=True,
    hia__gt=80,
    t12__between=(2, 8)
)

# Rank by multi-parameter score
ranked = results.rank(by="mpo_score", ascending=False)

Best Practices:

Common Issues and Solutions:

Issue: Batch processing runs out of memory

Issue: Some compounds fail prediction

Complete Workflow Example

From SMILES to prioritized candidates:


# Step 1: Predict ADME for single compound

# Example invocation: python scripts/main.py \
  --smiles "CC(=O)Oc1ccccc1C(=O)O" \
  --properties all \
  --output aspirin_adme.json

# Step 2: Batch process compound library

# Example invocation: python scripts/main.py \
  --input library.smi \
  --properties absorption,distribution \
  --format csv \
  --output library_adme.csv

# Step 3: Filter and rank

# Example invocation: python scripts/main.py \
  --input library_adme.csv \
  --filter "lipinski_pass=True,hia>80" \
  --rank-by qed \
  --top-n 100 \
  --output top_candidates.csv

Python API Usage:

from scripts.adme_predictor import ADMEPredictor
from scripts.batch_processor import BatchProcessor

# Initialize
predictor = ADMEPredictor()
batch = BatchProcessor()

# Single compound analysis
aspirin = predictor.predict_all("CC(=O)Oc1ccccc1C(=O)O")
print(f"HIA: {aspirin.absorption.hia}%")
print(f"Half-life: {aspirin.excretion.t12} hours")

# Batch screening
results = batch.process(
    input_file="library.smi",
    predictor=predictor,
    properties=["absorption", "distribution"],
    n_workers=4
)

# Filter good candidates
good_candidates = results[
    (results.lipinski_pass == True) &
    (results.hia > 80) &
    (results.bbb < 0.3) &
    (results.t12.between(2, 8))
]

Expected Output Files:

output/
├── aspirin_adme.json           # Single compound detailed results
├── library_adme.csv            # Batch screening results
├── top_candidates.csv          # Filtered and ranked candidates

Quality Checklist

Pre-Prediction Checks:

During Prediction:

Post-Prediction Verification:

Before Making Decisions:

For Regulatory Submissions:

Common Pitfalls

Over-Reliance Issues:

Input Issues:

Interpretation Issues:

Domain Issues:

Workflow Issues:

Troubleshooting

Problem: All predictions show "out of domain" warning

Problem: Extreme predictions (negative solubility, >100% absorption)

Problem: Batch processing extremely slow

Problem: Inconsistent predictions across runs

Problem: Properties contradict each other

Problem: Cannot process certain file formats

References

Available in references/ directory:

Scripts

Located in scripts/ directory:

Performance and Resources

Prediction Speed:

| Task | Time | Hardware |

|------|------|----------|

| Single compound | 0.5-2 sec | CPU |

| 100 compounds | 30-60 sec | CPU |

| 1000 compounds | 5-10 min | CPU |

| 1000 compounds | 2-3 min | 4-core parallel |

| 10,000 compounds | 30-60 min | 4-core parallel |

System Requirements:

Optimization Tips:

Limitations

Model Accuracy (Typical):

Version History


⚠️ CRITICAL DISCLAIMER: These predictions are computational estimates for prioritization and guidance only. They do NOT replace experimental ADME studies required for regulatory submissions or clinical decision-making. Always validate predictions with appropriate in vitro and in vivo assays before advancing compounds.

Parameters

| Parameter | Type | Default | Description |

|-----------|------|---------|-------------|

| --smiles | str | Required | SMILES string of the molecule |

| --properties | str | ["all"] | Specific properties to calculate |

| --format | str | "json" | Output format |

| --input | str | Required | Input CSV file with SMILES column |

| --output | str | Required | Output file for results |

Output Requirements

Every final response should make these items explicit when they are relevant:

Error Handling

Input Validation

This skill accepts requests that match the documented purpose of adme-property-predictor and include enough context to complete the workflow safely.

Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:

adme-property-predictor only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.

Response Template

Use the following fixed structure for non-trivial requests:

  1. Objective
  2. Inputs Received
  3. Assumptions
  4. Workflow
  5. Deliverable
  6. Risks and Limits
  7. Next Checks

If the request is simple, you may compress the structure, but still keep assumptions and limits explicit when they affect correctness.

Inputs to Collect

Output Contract

Validation and Safety Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.