# bismahghafoor/ai-for-structure-prediction architecture

> Architecture diagram of the GitHub repository bismahghafoor/ai-for-structure-prediction, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bismahghafoor/ai-for-structure-prediction
- Repository: https://github.com/bismahghafoor/ai-for-structure-prediction

## Overview

##### Main Components Organization

The system should be organized into three main processing layers:

a) Data Acquisition Layer
- Download scripts (downloadADdata.py, downloadEP300.sh, downloadTFs.sh, downloadZipfile.py)
- Data sources and input formats

b) Processing Layer
- Identification modules (AD_identification.py, DBD_identification.py)
- Analysis components (ActiveSite_p300.py, TAZ2_domain.py, Novel_ADs.py)
- Computational pipeline components

c) Prediction Layer
- AlphaFold2 integration
- Structure prediction workflow
- Results processing

##### Specific Component Details

a) Input Processing:
**[Download Scripts] → [Raw Data Storage] → [Data Preprocessing]**

b) Analysis Pipeline:
**[AD Identification] → [DBD Identification] → [TAZ2 Domain Analysis]**
- ↓
- [Novel ADs Discovery]

c) Structure Prediction:
**[Preprocessed Data] → [AlphaFold2 Integration] → [Structure Predictions]**

##### Integration Points

Clear integration points between:
- Data preprocessing and analysis modules
- Analysis results and prediction inputs
- AlphaFold2 submission system (submit_alphafold_predictions.sh)
- Alignment processing (submit_alphapulldown_alignments.sh)

##### Technical Details

Technical specifications for:
- Python version requirements
- HPC integration points
- AlphaFold2 configuration
- Data volume handling

##### Optimization Notes

Notes about:
- Parallel processing capabilities
- Resource allocation
- Data storage requirements
- Processing bottlenecks

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Styles
    classDef download fill:#3498db,stroke:#2980b9,color:white
    classDef processing fill:#2ecc71,stroke:#27ae60,color:white
    classDef prediction fill:#e67e22,stroke:#d35400,color:white
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:white
    classDef storage fill:#34495e,stroke:#2c3e50,color:white
    classDef utility fill:#9b59b6,stroke:#8e44ad,color:white

    %% Data Acquisition Layer
    subgraph DataAcquisition
        AD[AD Data Download]:::download
        EP[EP300 Download]:::download
        TF[TF Download]:::download
        ZIP[Zip Handler]:::download
        DS[(Raw Data Storage)]:::storage
    end

    %% Processing Layer
    subgraph Processing
        ADI[AD Identification]:::processing
        DBDI[DBD Identification]:::processing
        ASA[Active Site Analysis]:::processing
        TAZ[TAZ2 Domain Analysis]:::processing
        NAD[Novel ADs Discovery]:::processing
    end

    %% Prediction Layer
    subgraph Prediction
        AF2[AlphaFold2 Integration]:::prediction
        SAP[Structure Alignment]:::prediction
        AF2_EXT[AlphaFold2 Service]:::external
    end

    %% Utility Components
    subgraph Utilities
        FCF[File Filtering]:::utility
        LIS[LIS Processing]:::utility
        NB[Notebook Interface]:::utility
    end

    %% Relationships
    AD --> DS
    EP --> DS
    TF --> DS
    ZIP --> DS
    DS --> ADI
    DS --> DBDI
    ADI --> NAD
    DBDI --> NAD
    ADI --> ASA
    ASA --> TAZ
    NAD --> AF2
    TAZ --> AF2
    AF2 --> AF2_EXT
    AF2_EXT --> SAP
    FCF --> DS
    LIS --> Processing
    NB --> Processing

    %% Click Events
    click AD "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/downloadADdata.py"
    click EP "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/downloadEP300.sh"
    click TF "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/downloadTFs.sh"
    click ZIP "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/downloadZipfile.py"
    click ADI "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/AD_identification.py"
    click DBDI "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/DBD_identification.py"
    click ASA "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/ActiveSite_p300.py"
    click TAZ "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/TAZ2_domain.py"
    click NAD "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/Novel_ADs.py"
    click AF2 "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/submit_alphafold_predictions.sh"
    click SAP "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/submit_alphapulldown_alignments.sh"
    click FCF "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/filterCustomfile.py"
    click LIS "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/LIS.py"
    click NB "https://github.com/BismahGhafoor/AI-for-Structure-Prediction/blob/main/scripts/Notebook.py"

    %% Legend
    subgraph Legend
        L1[Download Components]:::download
        L2[Processing Components]:::processing
        L3[Prediction Components]:::prediction
        L4[External Services]:::external
        L5[(Storage)]:::storage
        L6[Utility Components]:::utility
    end
```
