How abishekvijay05/gdsc works
RepurposeAI is a web-based drug-repurposing research platform. Its principal workflow takes a molecule search through clinical, patent, market, and regulatory research, then synthesizes findings into a report; the README also documents a no-key fallback for AI synthesis. Separate capabilities include disease-first hypothesis generation and conversational follow-up. The Flask app is identified as the server, but its source was not sampled, so app-level orchestration and frontend-to-backend links are shown only as unverified. Domain integrations and major analysis modules are retained; the available excerpts do not establish every internal call.
Main entry points: app.py Flask server · main.js Web interface · hypothesis_generator.py Hypothesis generator · synthesizer.py Report synthesis
Components 26
User interface
- Web interface
frontend/static/js/main.js - Flask server
backend/app.py
Research evidence
- Clinical trials
backend/modules/clinical.py - Patent research
backend/modules/patents.py - Market data
backend/modules/market.py - Regulatory data
backend/modules/regulatory.py - Literature search
backend/modules/pubmed.py - Drug mechanism
backend/modules/mechanism.py
Analysis engines
- Clinical context
backend/modules/context_memory.py - Pathway overlap
backend/modules/overlap_engine.py - Drug similarity
backend/modules/similarity_engine.py - Disease hypotheses
backend/modules/hypothesis.py - Hypothesis generator
backend/modules/hypothesis_generator.py - Confidence scoring
backend/modules/scorer.py - Report synthesis
backend/modules/synthesizer.py - Token tracking
backend/modules/token_tracker.py
Conversation and state
- Intent translation
backend/modules/intent_translator.py - Follow-up answers
backend/modules/followup.py - Conversation state
backend/modules/conversation_state.py - Failure analysis
backend/modules/failure_analysis.py - Research database
backend/modules/database.py
Other components
- Researcher
- ClinicalTrials.gov
- PubChem
- OpenFDA
- AI service
Connections 27
- Researcher → Web interface: submits search
README.md - Web interface → Flask server: sends requests
- Flask server → Clinical trials: dispatches research
- Flask server → Patent research: dispatches research
- Flask server → Market data: dispatches research
- Flask server → Regulatory data: dispatches research
- Clinical trials → ClinicalTrials.gov: fetches trials
README.md - Patent research → PubChem: fetches patents
README.md - Market data → OpenFDA: fetches market data
README.md - Regulatory data → OpenFDA: fetches labels
README.md - Flask server → Literature search: dispatches research
- Flask server → Drug mechanism: dispatches research
- Flask server → Clinical context: builds context
- Flask server → Confidence scoring: scores evidence
- Flask server → Report synthesis: requests synthesis
- Report synthesis → AI service: generates report
- Flask server → Disease hypotheses: runs disease search
- Flask server → Hypothesis generator: runs disease search
- Hypothesis generator → Pathway overlap: computes overlap
backend/modules/hypothesis_generator.py - Hypothesis generator → Drug similarity: uses drug classes
backend/modules/hypothesis_generator.py - Report synthesis → Token tracking: records usage
backend/modules/synthesizer.py - Intent translation → Token tracking: records usage
backend/modules/intent_translator.py - Follow-up answers → Token tracking: records usage
backend/modules/followup.py - Web interface → Intent translation: sends feedback
- Web interface → Follow-up answers: asks questions
- Flask server → Conversation state: manages sessions
- Flask server → Research database: stores research state