# manoj914822/glioma-project architecture

> Architecture diagram of the GitHub repository manoj914822/glioma-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/manoj914822/glioma-project
- Repository: https://github.com/manoj914822/glioma-project

## Overview

GLIOMA is a local Flask application for brain-scan tumor analysis, account-based history, and supporting medical guidance. The documented user flow is to upload a scan, analyze it, and review predictions and visualizations; the app also documents analytics, reports, a chatbot, and collaboration. The sampled code confirms Flask routes, SQLite prediction persistence, and chatbot handling. Other feature connections follow the README, since the relevant app sections and templates were not fully sampled.

Main entry points: [`app.py`](https://github.com/manoj914822/glioma-project/blob/main/app.py) (Scan analysis flow), [`templates`](https://github.com/manoj914822/glioma-project/tree/main/templates) (Web interface), [`static/uploads`](https://github.com/manoj914822/glioma-project/tree/main/static/uploads) (Uploaded scans), [`Imageprocesing`](https://github.com/manoj914822/glioma-project/tree/main/Imageprocesing) (Image processing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_webapp["Flask application<br/>[app.py]"]
  node_interface["Web interface"]
  node_uploads["Uploaded scans"]
end

subgraph group_analysis["Scan analysis"]
  node_analysis_route["Scan analysis flow<br/>[app.py]"]
  node_image_processing["Image processing"]
  node_classifier["Tumor classification<br/>[app.py]"]
  node_gradcam["Grad-CAM views<br/>[app.py]"]
  node_result["Analysis results<br/>[app.py]"]
end

subgraph group_history["Records and insights"]
  node_database[("SQLite records<br/>[app.py]")]
  node_analytics["Performance analytics<br/>[app.py]"]
  node_reports["Downloadable reports<br/>[app.py]"]
end

subgraph group_support["Medical support"]
  node_chatbot["Medical chatbot<br/>[app.py]"]
  node_collaboration["Scan collaboration<br/>[app.py]"]
end

node_patient(("Patient or clinician"))

node_patient -->|"uses"| node_interface
node_interface -->|"submits requests"| node_webapp
node_webapp -->|"dispatches analysis"| node_analysis_route
node_analysis_route -->|"stores scan"| node_uploads
node_analysis_route -->|"processes image"| node_image_processing
node_analysis_route -->|"runs classification"| node_classifier
node_analysis_route -->|"generates visualization"| node_gradcam
node_analysis_route -->|"saves prediction"| node_database
node_analysis_route -->|"returns findings"| node_result
node_interface -->|"displays results"| node_result
node_webapp -->|"reads prediction history"| node_database
node_webapp -->|"builds charts"| node_analytics
node_webapp -->|"creates reports"| node_reports
node_interface -->|"sends questions"| node_chatbot
node_interface -->|"opens scan collaboration"| node_collaboration

click node_webapp "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_interface "https://github.com/manoj914822/glioma-project/tree/main/templates"
click node_uploads "https://github.com/manoj914822/glioma-project/tree/main/static/uploads"
click node_analysis_route "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_image_processing "https://github.com/manoj914822/glioma-project/tree/main/Imageprocesing"
click node_classifier "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_gradcam "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_result "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_database "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_analytics "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_reports "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_chatbot "https://github.com/manoj914822/glioma-project/blob/main/app.py"
click node_collaboration "https://github.com/manoj914822/glioma-project/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_webapp,node_interface,node_uploads toneBlue
class node_analysis_route,node_image_processing,node_classifier,node_gradcam,node_result toneAmber
class node_database,node_analytics,node_reports toneMint
class node_chatbot,node_collaboration toneRose
class node_patient toneIndigo
```

## Components

### Web experience

- [Flask application](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Web interface](https://github.com/manoj914822/glioma-project/tree/main/templates): `templates`
- [Uploaded scans](https://github.com/manoj914822/glioma-project/tree/main/static/uploads): `static/uploads`

### Scan analysis

- [Scan analysis flow](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Image processing](https://github.com/manoj914822/glioma-project/tree/main/Imageprocesing): `Imageprocesing`
- [Tumor classification](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Grad-CAM views](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Analysis results](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`

### Records and insights

- [SQLite records](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Performance analytics](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Downloadable reports](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`

### Medical support

- [Medical chatbot](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`
- [Scan collaboration](https://github.com/manoj914822/glioma-project/blob/main/app.py): `app.py`

### Other components

- **Patient or clinician**

## Connections

- Patient or clinician → Web interface: uses
- Web interface → Flask application: submits requests
- Flask application → Scan analysis flow: dispatches analysis
- Scan analysis flow → Uploaded scans: stores scan
- Scan analysis flow → Image processing: processes image
- Scan analysis flow → Tumor classification: runs classification
- Scan analysis flow → Grad-CAM views: generates visualization
- Scan analysis flow → SQLite records: saves prediction
- Scan analysis flow → Analysis results: returns findings
- Web interface → Analysis results: displays results
- Flask application → SQLite records: reads prediction history
- Flask application → Performance analytics: builds charts
- Flask application → Downloadable reports: creates reports
- Web interface → Medical chatbot: sends questions
- Web interface → Scan collaboration: opens scan collaboration
