How keerthannuu/diseasegene works
FinalDiseaseGene is a genomic disease–gene exploration and analytics platform with a Next.js web client, a Capacitor Android wrapper, and a FastAPI/SQLAlchemy backend. The principal workflow is to search or browse genomic entities, inspect their relationships and evidence, and view analytics; account and administration features support that use. The README also describes AI literature insights, citations and exports, and ETL ingestion. Backend routes and core wiring are evidenced by the supplied excerpts and index; several frontend integrations and unsampled features are documented only at product level.
Main entry points: router.py API route registry · models.py Relational data models · page.tsx Web application · search.py Global search
Components 27
User interfaces
- Web application
frontend/app/page.tsx - Genomic explorer
frontend/app/explorer/page.tsx - Entity detail pages
frontend/app/genes/[id]/page.js - Analytics views
frontend/app/analytics/page.tsx - AI insights view
frontend/app/ai-insights/page.tsx - Android client
frontend/capacitor.config.ts
API capabilities
- FastAPI application
backend/app/main.py - API route registry
backend/app/api/v1/router.py - Global search
backend/app/api/v1/endpoints/search.py - Entity endpoints
backend/app/api/v1/endpoints/genes.py - Association endpoints
backend/app/api/v1/endpoints/associations.py - Drug endpoints
backend/app/api/v1/endpoints/drugs.py - Publication endpoints
backend/app/api/v1/endpoints/publications.py - Statistics endpoint
backend/app/main.py - Literature insights
frontend/app/ai-insights/page.tsx - Citation and exports
frontend/app/database/page.tsx
Data and services
- Relational data models
backend/app/db/models.py - Database session
backend/app/db/session.py - Relational database
- Elasticsearch
- Data ingestion
backend/app/scripts/ingest.py
Accounts and operations
- Authentication and roles
backend/app/api/v1/endpoints/auth.py - Token security
backend/app/services/security.py - Email notifications
backend/app/services/email_service.py - Admin controls
backend/app/api/v1/endpoints/admin.py
Other components
- Researcher
- Email provider
Connections 34
- Researcher → Web application: uses
README.md - Researcher → Android client: uses
README.md - Web application → FastAPI application: requests API
README.md - Android client → FastAPI application: requests API
README.md - FastAPI application → API route registry: mounts routes
backend/app/main.py - API route registry → Global search: registers
backend/app/api/v1/router.py - API route registry → Entity endpoints: registers
backend/app/api/v1/router.py - API route registry → Association endpoints: registers
backend/app/api/v1/router.py - API route registry → Drug endpoints: registers
backend/app/api/v1/router.py - API route registry → Publication endpoints: registers
backend/app/api/v1/router.py - API route registry → Statistics endpoint: registers
backend/app/api/v1/router.py - API route registry → Authentication and roles: registers
backend/app/api/v1/router.py - API route registry → Admin controls: registers
backend/app/api/v1/router.py - Global search → Elasticsearch: queries optionally
backend/app/api/v1/endpoints/search.py - Global search → Relational database: queries fallback
backend/app/api/v1/endpoints/search.py - Global search → Relational data models: queries entities
backend/app/api/v1/endpoints/search.py - Entity endpoints → Relational data models: queries entities
backend/app/api/v1/endpoints/genes.py - Association endpoints → Relational data models: queries associations
backend/app/api/v1/endpoints/associations.py - Drug endpoints → Relational data models: queries data
backend/app/api/v1/endpoints/drugs.py - Publication endpoints → Relational data models: queries data
backend/app/api/v1/endpoints/publications.py - Statistics endpoint → Relational data models: aggregates counts
backend/app/main.py - Relational data models → Relational database: persists records
- Database session → Relational database: opens sessions
backend/app/db/session.py - FastAPI application → Database session: creates tables
backend/app/main.py - Data ingestion → Relational database: loads datasets
README.md - Authentication and roles → Token security: hashes and signs
backend/app/api/v1/endpoints/auth.py - Authentication and roles → Email notifications: sends reset email
backend/app/api/v1/endpoints/auth.py - Email notifications → Email provider: sends messages
backend/app/services/email_service.py - Admin controls → Relational data models: manages users
backend/app/api/v1/endpoints/admin.py - Genomic explorer → Entity detail pages: opens details
README.md - Web application → Analytics views: views analytics
README.md - Web application → AI insights view: opens insights
README.md - AI insights view → Literature insights: requests summaries
README.md - Web application → Citation and exports: exports results
README.md