How clinical-genomics/cg works
Main Components Identification
The system should be divided into these major components:
a. Core Services Layer:
• Database Service (using SQLAlchemy, evident from alembic migrations)
• REST API Service (for web portal integration)
• CLI Service (for command-line operations)
b. Integration Services Layer:
• Illumina Sequencing Service
• PacBio Sequencing Service
• File Management Services
• Analysis Pipeline Services
• Quality Control Services
• Delivery Services
c. External Systems Integration:
• Scout (variant visualization)
• Housekeeper (file management)
• Trailblazer (analysis tracking)
• LIMS Integration
• Web Portal Integration
Relationships and Data Flow
• CLI/API → Core Services → Integration Services
• Integration Services ↔ External Systems
• All components ↔ Database Service
Detailed Component Breakdown
For each major component, include subcomponents:
a. File Management:
• Compression Service
• Backup Service
• Archive Service
• Transfer Service
b. Analysis Workflows:
• MIP Pipeline
• BALSAMIC Pipeline
• RareDiseases Pipeline
• RNA Fusion Pipeline
• Microsalt Pipeline
c. Quality Control:
• Sequencing QC
• Analysis QC
• Delivery QC
Specific Implementation Details
• The modular structure (evident from the /cg/apps/ directory)
• The workflow management system (visible in /cg/meta/workflow/)
• The multi-database architecture (shown in store/models.py)
• The extensive API integration capabilities (seen in /cg/apps/ structure)
Storage Layer
Remember to include version control integration points and deployment paths, as indicated by the presence of GitHub workflows in the repository.