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 | |
| ```bash | |
| 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+) | |
| 1. **Select Input Mode:** "Common Molecules" | |
| 2. **Choose Category:** "CNS Drugs" | |
| 3. **Select Molecule:** "Caffeine" | |
| 4. **Click:** "๐ฎ Predict BBB Permeability" | |
| 5. **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-) | |
| 1. **Select Category:** "Simple Molecules" | |
| 2. **Select Molecule:** "Glucose" | |
| 3. **Click Predict** | |
| 4. **See Results:** | |
| - โ **BBB-** in red box | |
| - **Score: 0.109** | |
| - Gauge shows in red zone | |
| - Multiple warnings | |
| ### Custom SMILES Input | |
| 1. **Select Input Mode:** "SMILES String" | |
| 2. **Paste SMILES:** `c1ccccc1` (Benzene) | |
| 3. **Click Predict** | |
| 4. **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) | |
| 1. Caffeine - Stimulant | |
| 2. Cocaine - Stimulant | |
| 3. Morphine - Opioid | |
| 4. Nicotine - Stimulant | |
| 5. Aspirin - Pain reliever | |
| 6. Ibuprofen - Anti-inflammatory | |
| 7. Acetaminophen - Pain reliever | |
| 8. Propranolol - Beta blocker | |
| ### Simple Molecules (4) | |
| 1. Ethanol - Alcohol | |
| 2. Benzene - Aromatic | |
| 3. Toluene - Solvent | |
| 4. Glucose - Sugar | |
| ### Amino Acids (3) | |
| 1. Glycine - Simplest amino acid | |
| 2. Alanine - Small amino acid | |
| 3. Tryptophan - Aromatic amino acid | |
| ### Neurotransmitters (3) | |
| 1. Dopamine - Reward neurotransmitter | |
| 2. Serotonin - Mood neurotransmitter | |
| 3. 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 | |
| ```batch | |
| cd C:\Users\nakhi\BBB_System | |
| START_HERE.bat | |
| ``` | |
| ### Linux/Mac | |
| ```bash | |
| cd /path/to/BBB_System | |
| export KMP_DUPLICATE_LIB_OK=TRUE | |
| streamlit run app.py | |
| ``` | |
| ### Custom Port | |
| ```bash | |
| streamlit run app.py --server.port 8502 | |
| ``` | |
| --- | |
| ## ๐ธ Screenshot Guide | |
| When you open the app, you'll see: | |
| 1. **Top:** Blue gradient header with title | |
| 2. **Left:** Sidebar with settings and info | |
| 3. **Center:** Molecule selection area | |
| 4. **Bottom:** Large predict button | |
| 5. **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: | |
| 1. Double-click **START_HERE.bat** | |
| 2. Browser opens automatically | |
| 3. Select Caffeine from dropdown | |
| 4. Click predict | |
| 5. See beautiful results! | |
| **Enjoy your BBB Permeability Predictor!** ๐งฌโจ | |
| --- | |
| **Questions?** Check: | |
| - [QUICK_START.md](QUICK_START.md) - User guide | |
| - [WEB_INTERFACE.md](WEB_INTERFACE.md) - Technical details | |
| - [README.md](README.md) - Full documentation | |