AI-Powered Genomics Analysis using AWS Bedrock Multi-Model Architecture
Biomerkin is an advanced genomics analysis platform that leverages multiple AI models through AWS Bedrock to provide comprehensive, validated genomic insights. The system uses a multi-model consensus approach with Amazon Nova Pro, OpenAI GPT-OSS 120B, and OpenAI GPT-OSS 20B to ensure high-confidence results.
- π€ Multi-Model AI Analysis - 3 AI models validate each other for 95%+ confidence
- β‘ Real-Time Processing - Live progress updates during analysis
- π¬ Comprehensive Genomics - Gene identification, variant detection, clinical significance
- π§ͺ Proteomics Integration - Protein structure prediction and function analysis
- π Literature Research - Automated scientific literature review
- π Drug Discovery - Treatment recommendations and clinical trial matching
- π₯ Medical Reports - AI-generated comprehensive medical reports
- βοΈ Cloud-Native - Fully deployed on AWS infrastructure
- React App: http://biomerkin-frontend-20251018-013734.s3-website.ap-south-1.amazonaws.com
- Test Page: http://biomerkin-frontend-20251018-013734.s3-website.ap-south-1.amazonaws.com/test.html
https://zb9j38oxx5.execute-api.us-east-1.amazonaws.com/prod/analyze
curl -X POST https://zb9j38oxx5.execute-api.us-east-1.amazonaws.com/prod/analyze \
-H "Content-Type: application/json" \
-d '{
"sequence": "ATGGATTTATCTGCTCTTCGCGTTGAAGAAGTACAAAATGTCATTAATGCTATGCAGAAAATCTTAGAGTGTCCCATCTGTCTGGAGTTGATCAAGGAACCTGTCTCCACAAAGTGTGACCACATATTTTGCAAAT",
"analysis_type": "genomics",
"use_multi_model": true,
"real_time": true
}'βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β User Browser β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Frontend (React + S3) β
β - Modern UI with real-time updates β
β - Sample data loader β
β - Progress visualization β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
β HTTPS
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β API Gateway (us-east-1) β
β - RESTful API β
β - CORS enabled β
β - /analyze endpoint β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
β AWS Lambda Proxy
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Lambda Function (Python 3.11) β
β - Multi-model orchestration β
β - Real-time progress tracking β
β - Error handling & recovery β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
β Bedrock API
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AWS Bedrock (us-east-1) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β 1. Amazon Nova Pro (Primary Analysis) β β
β β - Deep genomic sequence analysis β β
β β - Variant detection β β
β β - Clinical significance assessment β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β 2. OpenAI GPT-OSS 120B (Validation) β β
β β - Secondary validation β β
β β - Literature context β β
β β - Alternative interpretations β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β 3. OpenAI GPT-OSS 20B (Synthesis) β β
β β - Multi-model consensus β β
β β - Executive summary β β
β β - Actionable recommendations β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
biomerkin/
βββ frontend/ # React frontend application
β βββ src/
β β βββ components/ # React components
β β βββ pages/ # Page components
β β βββ services/ # API services
β β βββ App.js # Main app component
β βββ public/ # Static assets
β βββ .env # Environment variables
β βββ package.json # Dependencies
β
βββ lambda_functions/ # AWS Lambda functions
β βββ multi_model_orchestrator.py # Main multi-model handler
β βββ enhanced_bedrock_orchestrator.py # Advanced orchestration
β βββ genomics_handler.py # Genomics agent
β βββ proteomics_handler.py # Proteomics agent
β βββ decision_handler.py # Decision agent
β βββ bedrock_literature_action.py # Literature research
β βββ bedrock_drug_action.py # Drug discovery
β
βββ biomerkin/ # Python package
β βββ agents/ # Agent implementations
β β βββ genomics_agent.py
β β βββ proteomics_agent.py
β β βββ literature_agent.py
β β βββ drug_agent.py
β β βββ decision_agent.py
β βββ services/ # Service modules
β βββ bedrock_agent_service.py
β βββ bedrock_orchestration_service.py
β βββ bedrock_optimization_service.py
β
βββ scripts/ # Deployment & utility scripts
β βββ deploy_everything_us_east_1.py # Main deployment
β βββ deploy_cors_fix.py # CORS configuration
β βββ fix_api_gateway_cors.py # API Gateway CORS
β
βββ demo/ # Demo scripts
β βββ autonomous_bedrock_demo.py
β βββ judge_demo_runner.py
β βββ DEMO_VIDEO_SCRIPT.md
β
βββ .kiro/specs/ # Feature specifications
β βββ biomerkin-multi-agent-system/
β βββ requirements.md
β βββ design.md
β βββ tasks.md
β
βββ README.md # This file
βββ TECHNICAL_DOCUMENTATION.md # Technical details
βββ HACKATHON_PRESENTATION.md # Presentation guide
βββ BEDROCK_AGENTS_EXPLANATION.md # Bedrock agents guide
βββ BEDROCK_AGENTS_QUICK_REFERENCE.md # Quick reference
βββ AWS_SETUP_GUIDE_FOR_BEGINNERS.md # AWS setup guide
- React 18 - Modern UI framework
- Axios - HTTP client
- Framer Motion - Animations
- Lucide React - Icons
- Tailwind CSS - Styling
- AWS Lambda - Serverless compute
- AWS API Gateway - RESTful API
- AWS Bedrock - AI model access
- Python 3.11 - Runtime
- Amazon Nova Pro - Primary analysis
- OpenAI GPT-OSS 120B - Validation
- OpenAI GPT-OSS 20B - Synthesis
- AWS S3 - Frontend hosting
- AWS IAM - Access management
- AWS CloudWatch - Monitoring
- AWS Account with Bedrock access
- Node.js 16+ and npm
- Python 3.11+
- AWS CLI configured
- Clone the repository
git clone https://github.com/yourusername/biomerkin.git
cd biomerkin- Install frontend dependencies
cd frontend
npm install- Configure environment
# frontend/.env
REACT_APP_API_URL=https://zb9j38oxx5.execute-api.us-east-1.amazonaws.com/prod- Run frontend locally
npm start- Install Python dependencies
cd ..
pip install -r requirements.txt- Deploy Lambda function
python scripts/deploy_everything_us_east_1.py- Build and deploy frontend
cd frontend
npm run build
aws s3 sync build/ s3://your-bucket-name/ --delete- Open the React app in your browser
- Choose input method:
- Upload a FASTA file
- Enter DNA sequence text
- Use sample data
- Click "Start Analysis"
- Watch real-time progress as 3 AI models analyze your data
- View comprehensive results with multi-model consensus
import requests
url = "https://zb9j38oxx5.execute-api.us-east-1.amazonaws.com/prod/analyze"
payload = {
"sequence": "ATGGATTTATCTGCTCTTCGCGTTGAAGAAGTACAAAATGTCATTAATGCTATGCAGAAAATCTTAGAGTGTCCCATCTGTCTGGAGTTGATCAAGGAACCTGTCTCCACAAAGTGTGACCACATATTTTGCAAAT",
"analysis_type": "genomics",
"use_multi_model": True,
"real_time": True
}
response = requests.post(url, json=payload)
results = response.json()
print(f"Models used: {results['models_used']}")
print(f"Confidence: {results['confidence']}")
print(f"Summary: {results['executive_summary']}")- Deep genomic sequence analysis
- Gene identification
- Variant detection
- Clinical significance assessment
- Validates primary findings
- Adds scientific literature context
- Provides alternative interpretations
- Identifies potential concerns
- Creates unified summary
- Highlights consensus findings
- Notes any discrepancies
- Provides actionable recommendations
- 95%+ confidence through multi-model consensus
- Comprehensive insights from multiple perspectives
- Validated results with cross-model verification
- β DNA sequence analysis
- β Gene identification
- β Variant detection (SNPs, indels)
- β Clinical significance assessment
- β Pathogenicity prediction
- β Protein structure prediction
- β Functional annotation
- β Binding site identification
- β Post-translational modifications
- β Automated PubMed search
- β Relevant paper identification
- β Key findings extraction
- β Research recommendations
- β Treatment recommendations
- β Drug-gene interactions
- β Clinical trial matching
- β Pharmacogenomics insights
- β Comprehensive medical reports
- β Risk assessment
- β Treatment options
- β Follow-up recommendations
- β CORS configured for secure cross-origin requests
- β IAM roles with least-privilege access
- β No data storage - analysis is real-time only
- β HTTPS only - encrypted communication
- β AWS security - leverages AWS security best practices
- Technical Documentation - Detailed technical guide
- Hackathon Presentation - Presentation guide
- Bedrock Agents Guide - AWS Bedrock agents
- Quick Reference - Quick reference guide
- AWS Setup Guide - AWS setup for beginners
- Demo Script - Demo video script
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- AWS Bedrock for providing access to multiple AI models
- Amazon Nova Pro for powerful genomics analysis
- OpenAI GPT-OSS models for validation and synthesis
- React community for excellent frontend tools
- AWS community for serverless best practices
For questions, issues, or collaboration opportunities:
- GitHub Issues: Create an issue
- Email: your.email@example.com
This project was built for [Hackathon Name] and demonstrates:
- β Multi-model AI - Innovative use of multiple AI models
- β Real-world application - Practical genomics analysis
- β Production-ready - Fully deployed on AWS
- β Scalable architecture - Serverless and cloud-native
- β User-friendly - Intuitive interface with real-time feedback
Built with β€οΈ using AWS Bedrock, React, and Python
Last Updated: January 2025