Spaces:
Sleeping
Sleeping
File size: 12,659 Bytes
84766d8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | # ๐ 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
|