How parthchhabra-wq/crispr_platform works
This is a FastAPI CRISPR guide RNA designer. Its principal workflow accepts and validates a DNA sequence, extracts SpCas9 guide candidates on both strands, scans a synthetic reference genome for near matches, scores and ranks candidates, then returns ranked guides and an explanation. Separate API capabilities expose genome metadata and health status. The shown sources establish the backend calls; the frontend contains only an index file in the supplied tree, so its behavior and connections cannot be determined.
Main entry points: main.py FastAPI endpoints · off_target_analysis.py Off-target scan · scoring.py Scoring and ranking · schemas.py Guide candidate
Components 10
API boundary
- FastAPI endpoints
backend/main.py
Guide design
- Guide extraction
backend/services/sequence_generator.py
Specificity analysis
- Off-target scan
backend/services/off_target_analysis.py - Synthetic genome
backend/services/genome_simulator.py - Scoring and ranking
backend/services/scoring.py
Data contracts
- Request validation
backend/models/schemas.py - Guide candidate
backend/models/schemas.py - Response models
backend/models/schemas.py
Other components
- API client
- Frontend shell
frontend/index.html
Connections 12
- API client → FastAPI endpoints: submits request
backend/main.py - FastAPI endpoints → Request validation: validates via
backend/main.py - FastAPI endpoints → Guide extraction: extracts guides
backend/main.py - Guide extraction → Guide candidate: creates candidates
backend/services/sequence_generator.py - FastAPI endpoints → Off-target scan: annotates candidates
backend/main.py - Off-target scan → Synthetic genome: reads genome
backend/services/off_target_analysis.py - Off-target scan → Guide candidate: updates hit counts
backend/services/off_target_analysis.py - FastAPI endpoints → Scoring and ranking: ranks candidates
backend/main.py - Scoring and ranking → Guide candidate: reads candidate fields
backend/services/scoring.py - FastAPI endpoints → Scoring and ranking: builds best explanation
backend/main.py - FastAPI endpoints → Response models: returns typed response
backend/main.py - FastAPI endpoints → Synthetic genome: gets metadata
backend/main.py