Spaces:
Sleeping
Sleeping
๐ BBB Web Interface - Visual Guide
๐ How to Launch
Method 1: Double-Click (Easiest!)
๐ C:\Users\nakhi\BBB_System\
๐ START_HERE.bat โ DOUBLE-CLICK THIS FILE!
Method 2: Command Line
cd C:\Users\nakhi\BBB_System
streamlit run app.py
The interface will automatically open at: http://localhost:8501
๐จ What You'll See
HEADER (Top of Page)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ ๐งฌ BBB Permeability Predictor โ
โ โ
โ Graph Neural Network powered Blood-Brain Barrier โ
โ prediction โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
(Beautiful blue gradient background)
SIDEBAR (Left Panel)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ๏ธ Settings โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Input Mode: โ
โ โ Common Molecules โ
โ โ SMILES String โ
โ โ Molecule Name (Beta) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ Model Info โ
โ Validation MAE: 0.0967 โ
โ Parameters: 649,345 โ
โ Architecture: GAT+SAGE โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ ๐ Categories โ
โ โ
BBB+ (โฅ0.6): High permeabilityโ
โ โ ๏ธ BBBยฑ (0.4-0.6): Moderate โ
โ โ BBB- (<0.4): Low permeability โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โน๏ธ About โ
โ This tool uses a hybrid Graph โ
โ Attention Network... โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MAIN PANEL (Center)
Step 1: Select Molecule
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Select a Common Molecule โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ Category: [CNS Drugs โผ] โ
โ โ
โ Molecule: [Caffeine โผ] โ
โ Options: โ
โ - Caffeine โ
โ - Cocaine โ
โ - Morphine โ
โ - Nicotine โ
โ - Aspirin โ
โ - Ibuprofen โ
โ - Acetaminophen โ
โ - Propranolol โ
โ โ
โ SMILES: CN1C=NC2=C1C(=O)N(C(=O)N2C)C โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Step 2: Predict Button
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฎ Predict BBB Permeability โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
(Large blue gradient button)
RESULTS DISPLAY
Prediction Box (After clicking predict)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โ
BBB+ โ
โ โ
โ HIGH BBB permeability โ
โ โ
โ 0.782 โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
(Green gradient for BBB+, Red for BBB-, Orange for BBBยฑ)
Visualizations Side-by-Side
Left Side: Gauge Chart
BBB Permeability Score
โโโโโโโโโโโโโโโโโโโ
โฑ โฒ
โฑ ๐ด Red ๐ก ๐ข โฒ
โ 0.0 0.4 0.6 1.0โ
โฒ โ โฑ
โฒ 0.782 โฑ
โโโโโโโโโโโโโโโโโโโ
(Needle points to green zone)
Right Side: Radar Chart
MW Score
โฑโฒ
โฑ โฒ
H-Acc โฑ โฒ LogP
โฑ โฌก โฒ
โฑ โฒ
โฑโโโโโโโโโโโฒ
TPSA H-Donors
Metrics Cards
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโ
โ Molecular โ LogP โ TPSA โ BBB Rules โ
โ Weight โ โ โ โ
โ 194.1 Da โ -1.03 โ 61.8 Aยฒ โ โ No โ
โโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโ
Properties Table
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Hydrogen Bonding โ Structure โ
โ โข H-bond Donors: 0 (โค3) โ โข Rotatable Bonds: 0 โ
โ โข H-bond Acceptors: 6 (โค7) โ โข Aromatic Rings: 2 โ
โ โ โข Total Atoms: 14 โ
โ Drug-likeness โ BBB Rules Criteria โ
โ โข Lipinski Violations: 0/4 โ โข MW: 150-450 Da โ
โ โข BBB Compliance: โ No โ โข LogP: 1-5 โ
โ โ โข TPSA: <90 Aยฒ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Warnings Section (if any)
โ ๏ธ Warnings:
- LogP outside optimal range (1-5): -1.03
Bar Chart (Molecular Properties)
Molecular Properties
MW โโโโโโโโโโ 194.2
LogP โโโโโโโโโ -1.03
TPSA โโโโโโโโโ 61.8
H-D โโโโโโโโโ 0
H-A โโโโโโโโโ 6
Rot โโโโโโโโโ 0
0 50 100 150 200
Download Buttons
โโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ฅ Download Results (CSV)โ ๐ฅ Download Results (JSON)โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ Example Walkthrough
Testing Caffeine (BBB+)
- Select Input Mode: "Common Molecules"
- Choose Category: "CNS Drugs"
- Select Molecule: "Caffeine"
- Click: "๐ฎ Predict BBB Permeability"
- See Results:
- โ BBB+ in green box
- Score: 0.782
- Gauge shows in green zone
- Radar shows drug profile
- Warning: LogP outside range
Testing Glucose (BBB-)
- Select Category: "Simple Molecules"
- Select Molecule: "Glucose"
- Click Predict
- See Results:
- โ BBB- in red box
- Score: 0.109
- Gauge shows in red zone
- Multiple warnings
Custom SMILES Input
- Select Input Mode: "SMILES String"
- Paste SMILES:
c1ccccc1(Benzene) - Click Predict
- See Results:
- โ BBB+ with score 0.802
๐จ Color Guide
Category Colors
- ๐ข Green (BBB+): High permeability, good for CNS drugs
- ๐ Orange (BBBยฑ): Moderate permeability, uncertain
- ๐ด Red (BBB-): Low permeability, won't cross BBB
Gauge Zones
- ๐ด Red (0.0-0.4): BBB- zone
- ๐ก Yellow (0.4-0.6): BBBยฑ zone
- ๐ข Green (0.6-1.0): BBB+ zone
๐ All Available Molecules
CNS Drugs (8)
- Caffeine - Stimulant
- Cocaine - Stimulant
- Morphine - Opioid
- Nicotine - Stimulant
- Aspirin - Pain reliever
- Ibuprofen - Anti-inflammatory
- Acetaminophen - Pain reliever
- Propranolol - Beta blocker
Simple Molecules (4)
- Ethanol - Alcohol
- Benzene - Aromatic
- Toluene - Solvent
- Glucose - Sugar
Amino Acids (3)
- Glycine - Simplest amino acid
- Alanine - Small amino acid
- Tryptophan - Aromatic amino acid
Neurotransmitters (3)
- Dopamine - Reward neurotransmitter
- Serotonin - Mood neurotransmitter
- GABA - Inhibitory neurotransmitter
๐ก Tips for Best Experience
1. Start with Common Molecules
- Try Caffeine first (BBB+)
- Then try Glucose (BBB-)
- Compare the differences!
2. Use SMILES for Custom Molecules
- Get SMILES from PubChem
- Paste directly into input
- Get instant predictions
3. Read the Warnings
- Understand why predictions are made
- Learn about molecular properties
- Optimize your drug candidates
4. Export Results
- Download as CSV for Excel
- Download as JSON for programming
- Keep records of predictions
5. Compare Molecules
- Try multiple molecules
- Look at property patterns
- Understand structure-activity relationships
๐ฅ๏ธ System Requirements
- Browser: Chrome, Firefox, Edge, Safari
- Internet: Not required (runs locally)
- RAM: 2GB minimum
- Storage: Model file ~7.5 MB
๐ฌ Quick Start Commands
Windows
cd C:\Users\nakhi\BBB_System
START_HERE.bat
Linux/Mac
cd /path/to/BBB_System
export KMP_DUPLICATE_LIB_OK=TRUE
streamlit run app.py
Custom Port
streamlit run app.py --server.port 8502
๐ธ Screenshot Guide
When you open the app, you'll see:
- Top: Blue gradient header with title
- Left: Sidebar with settings and info
- Center: Molecule selection area
- Bottom: Large predict button
- After prediction: Colorful results with charts
The entire interface is:
- Responsive - Works on any screen size
- Interactive - Hover for tooltips
- Beautiful - Professional gradients
- Fast - Predictions in <1 second
๐ You're Ready!
To start:
- Double-click START_HERE.bat
- Browser opens automatically
- Select Caffeine from dropdown
- Click predict
- See beautiful results!
Enjoy your BBB Permeability Predictor! ๐งฌโจ
Questions? Check:
- QUICK_START.md - User guide
- WEB_INTERFACE.md - Technical details
- README.md - Full documentation