How samsraina/rene works
ReMediX is a drug-repurposing analysis web app. Users search for a compound by name or SMILES, inspect its PubChem profile and ChEMBL bioactivity, then compare its targets with a disease signature to view therapeutic scoring results. The API also exposes DrugBank lookup, CREEDS gene matching, gene-expression data, and PPI Excel browsing. The map follows documented capabilities and sampled calls; unsampled route wiring is shown only where README or excerpts support it.
Main entry points: api_handlers.py Endpoint handlers · App.tsx React app routes · api.ts API client · data Provisioned datasets
Components 20
Web interface
- React app routes
frontend/src/App.tsx - Compound search
frontend/src/pages/HomePage.tsx - Gene matching
frontend/src/pages/GeneMatchPage.tsx - Scoring results
frontend/src/pages/ScoringResultsPage.tsx - Data browsers
frontend/src/pages/GeneExpressionsPage.tsx - API client
frontend/src/lib/api.ts
API layer
- FastAPI app
main.py - API routes
src/routers/api.py - Endpoint handlers
src/routers/api_handlers.py - Dataset checks
src/data_availability.py
Analysis and data
- Disease signatures
src/clients/creeds_client.py - Therapeutic scoring
src/utils/remedix_scoring.py - Gene and PPI data
src/utils/final_gene_score.py - Provisioned datasets
src/data
Data integrations
- Bioactivity and targets
src/clients/chembl_client.py - Compound lookup
src/clients/pubchem_client.py - DrugBank lookup
src/clients/drugbank_client.py
Other components
- Researcher
- PubChem
- ChEMBL
Connections 27
- Researcher → React app routes: uses
- React app routes → Compound search: routes to
- React app routes → Gene matching: routes to
- React app routes → Scoring results: routes to
- React app routes → Data browsers: routes to
- Compound search → API client: requests data
- Gene matching → API client: requests data
- Scoring results → API client: requests data
- Data browsers → API client: requests data
- API client → FastAPI app: calls API
- FastAPI app → API routes: mounts
- API routes → Endpoint handlers: dispatches
- Endpoint handlers → Compound lookup: looks up compounds
- Compound lookup → PubChem: queries
- Endpoint handlers → Bioactivity and targets: fetches bioactivity
- Bioactivity and targets → ChEMBL: queries
- Endpoint handlers → DrugBank lookup: searches drugs
- Endpoint handlers → Therapeutic scoring: calculates score
- Therapeutic scoring → Bioactivity and targets: uses targets
- Therapeutic scoring → Disease signatures: loads disease consensus
- Endpoint handlers → Disease signatures: matches genes
- Endpoint handlers → Gene and PPI data: loads gene and PPI data
- Endpoint handlers → Dataset checks: checks datasets
- Dataset checks → Provisioned datasets: checks presence
- Disease signatures → Provisioned datasets: reads signatures
- DrugBank lookup → Provisioned datasets: reads XML
- Gene and PPI data → Provisioned datasets: reads spreadsheets