# alema91/monkey-pox-str architecture

> Architecture diagram of the GitHub repository alema91/monkey-pox-str, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alema91/monkey-pox-str
- Repository: https://github.com/alema91/monkey-pox-str

## Overview

##### Project type and purpose
- This is a data-analysis “pipeline” repository focused on STR (short tandem repeat) analysis of Monkey Pox sequencing data.
- The goal is to ingest raw data, run an R script for analysis, extract summary tables via Python, and generate plots.

##### File structure
- bin/_01_analysis.R
– Primary R script that reads raw data, performs statistical/compositional analyses, and writes intermediate results.
- bin/get_tables.py
– Python script that reads the R-output (e.g., CSVs or RDS files), formats summary tables, and may produce machine-readable tables.
- plots/
– Output directory where all generated figures (PNG, PDF, etc.) live.
- .gitignore & README.md
– Version-control settings and project documentation.

##### README for additional insights
- Confirms that “bin” is the workspace for all analysis scripts.
- Specifies the Conda environment dependencies: Python, pandas, composition_stats (and implicitly R and any R-package dependencies).

## Diagram (Mermaid)

```mermaid
graph TB
    DataInput["Raw Sequencing Data\n(FASTQ/CSV)"]:::data
    subgraph "Conda Environment" 
        Env["Conda Environment\n(Python + R runtimes,\npandas, composition_stats,\nR-library stack)"]:::env
        A["_01_analysis.R\n(R Analysis)"]:::rscript
        B["get_tables.py\n(Python Extraction)"]:::py
    end
    subgraph "Project Root"
        VC[".gitignore"]:::doc
        Doc["README.md"]:::doc
    end
    Intermediate["Intermediate Data Files\n(CSV/RDS)"]:::data
    Summary["Summary Tables\n(CSV/TSV)"]:::data
    Plots["plots/\n(Generated Figures)"]:::data

    DataInput -->|ingested by| A
    A -->|writes intermediate files| Intermediate
    Intermediate -->|consumed by| B
    B -->|writes tables| Summary
    A -->|generates plots| Plots
    Doc -->|documents env & usage| Env
    VC -.->|tracks code & outputs| A

    click A "https://github.com/alema91/monkey-pox-str/blob/main/bin/_01_analysis.R"
    click B "https://github.com/alema91/monkey-pox-str/blob/main/bin/get_tables.py"
    click Plots "https://github.com/alema91/monkey-pox-str/tree/main/plots/"
    click VC "https://github.com/alema91/monkey-pox-str/blob/main/.gitignore"
    click Doc "https://github.com/alema91/monkey-pox-str/blob/main/README.md"

    classDef rscript fill:#cce5ff,stroke:#339,stroke-width:1px
    classDef py fill:#cce5ff,stroke:#339,stroke-width:1px
    classDef data fill:#d4edda,stroke:#273,stroke-width:1px
    classDef env fill:#ffe5b4,stroke:#e68a00,stroke-width:1px
    classDef doc fill:#f8f9fa,stroke:#6c757d,stroke-width:1px
```
