# haruosuz/vfdb architecture

> Architecture diagram of the GitHub repository haruosuz/vfdb, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/haruosuz/vfdb
- Repository: https://github.com/haruosuz/vfdb

## Overview

This repository documents a small VFDB sequence-analysis workflow: run the driver to download inputs, analyze protein and coding-region nucleotide sequences with R/SeqinR, and perform BLAST analysis. The README identifies the data and analysis directories, but they are absent from the supplied tree; their paths are therefore left null. Source excerpts were unavailable, so the relationships shown are limited to those documented in the README.

Main entry points: [`scripts/run.sh`](https://github.com/haruosuz/vfdb/blob/master/scripts/run.sh) (Workflow driver), [`scripts/my_faa.R`](https://github.com/haruosuz/vfdb/blob/master/scripts/my_faa.R) (Protein analysis), [`scripts/my_ffn.R`](https://github.com/haruosuz/vfdb/blob/master/scripts/my_ffn.R) (Nucleotide analysis), [`scripts/run_blast.sh`](https://github.com/haruosuz/vfdb/blob/master/scripts/run_blast.sh) (BLAST workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Workflow"]
  node_driver["Workflow driver<br/>[run.sh]"]
  node_data[("Downloaded inputs")]
  node_results["Analysis results"]
end

subgraph group_analysis["Sequence Analysis"]
  node_protein["Protein analysis<br/>[my_faa.R]"]
  node_nucleotide["Nucleotide analysis<br/>[my_ffn.R]"]
  node_blastscript["BLAST workflow<br/>[run_blast.sh]"]
end

node_user(("Project user"))
node_vfdb[("VFDB sequences")]
node_seqinr["SeqinR package"]
node_blast["BLAST program"]

node_user -->|"runs"| node_driver
node_driver -->|"downloads sequences"| node_vfdb
node_driver -->|"downloads inputs"| node_data
node_driver -->|"runs"| node_protein
node_driver -->|"runs"| node_nucleotide
node_driver -->|"runs"| node_blastscript
node_protein -->|"uses"| node_seqinr
node_nucleotide -->|"uses"| node_seqinr
node_blastscript -->|"performs analysis"| node_blast
node_protein -.->|"produces analyses"| node_results
node_nucleotide -.->|"produces analyses"| node_results
node_blastscript -.->|"produces analyses"| node_results

click node_driver "https://github.com/haruosuz/vfdb/blob/master/scripts/run.sh"
click node_protein "https://github.com/haruosuz/vfdb/blob/master/scripts/my_faa.R"
click node_nucleotide "https://github.com/haruosuz/vfdb/blob/master/scripts/my_ffn.R"
click node_blastscript "https://github.com/haruosuz/vfdb/blob/master/scripts/run_blast.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_driver,node_data,node_results,node_user toneBlue
class node_protein,node_nucleotide,node_blastscript,node_vfdb toneAmber
class node_seqinr,node_blast toneIndigo
```

## Components

### Workflow

- [Workflow driver](https://github.com/haruosuz/vfdb/blob/master/scripts/run.sh): `scripts/run.sh`
- **Downloaded inputs**
- **Analysis results**

### Sequence Analysis

- [Protein analysis](https://github.com/haruosuz/vfdb/blob/master/scripts/my_faa.R): `scripts/my_faa.R`
- [Nucleotide analysis](https://github.com/haruosuz/vfdb/blob/master/scripts/my_ffn.R): `scripts/my_ffn.R`
- [BLAST workflow](https://github.com/haruosuz/vfdb/blob/master/scripts/run_blast.sh): `scripts/run_blast.sh`

### Other components

- **Project user**
- **VFDB sequences**
- **SeqinR package**
- **BLAST program**

## Connections

- Project user → Workflow driver: runs (evidence: `README.md`)
- Workflow driver → VFDB sequences: downloads sequences (evidence: `README.md`)
- Workflow driver → Downloaded inputs: downloads inputs (evidence: `README.md`)
- Workflow driver → Protein analysis: runs (evidence: `README.md`)
- Workflow driver → Nucleotide analysis: runs (evidence: `README.md`)
- Workflow driver → BLAST workflow: runs (evidence: `README.md`)
- Protein analysis → SeqinR package: uses (evidence: `README.md`)
- Nucleotide analysis → SeqinR package: uses (evidence: `README.md`)
- BLAST workflow → BLAST program: performs analysis (evidence: `README.md`)
- Protein analysis → Analysis results: produces analyses
- Nucleotide analysis → Analysis results: produces analyses
- BLAST workflow → Analysis results: produces analyses
