# tseemann/prokka architecture

> Architecture diagram of the GitHub repository tseemann/prokka, 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/tseemann/prokka
- Repository: https://github.com/tseemann/prokka

## Overview

Prokka is a command-line tool for rapidly annotating bacterial, archaeal, and viral genomes. The documented workflow takes contig sequences, identifies and labels genomic features, and writes annotation files, including GFF3, GenBank, FASTA, and Sequin formats. Users can select a kingdom and provide curated proteins; installed databases are available for annotation. No source excerpts were provided, so the graph shows only relationships documented in the README, not internal implementation calls.

Main entry points: [`bin/prokka`](https://github.com/tseemann/prokka/blob/master/bin/prokka) (Prokka annotation), [`db`](https://github.com/tseemann/prokka/tree/master/db) (Installed databases)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_annotation["Genome annotation"]
  node_prokka["Prokka annotation"]
end

subgraph group_references["Reference data"]
  node_installed_db[("Installed databases")]
  node_custom_proteins["Curated proteins"]
end

subgraph group_results["Annotation outputs"]
  node_annotation_files["Annotation files"]
end

node_user(("Genome submitter"))
node_contigs["Contig sequences"]

node_user -->|"provides"| node_contigs
node_contigs -->|"annotates"| node_prokka
node_installed_db -->|"uses"| node_prokka
node_custom_proteins -->|"references"| node_prokka
node_prokka -->|"writes"| node_annotation_files

click node_prokka "https://github.com/tseemann/prokka/blob/master/bin/prokka"
click node_installed_db "https://github.com/tseemann/prokka/tree/master/db"

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_prokka toneBlue
class node_installed_db,node_custom_proteins toneAmber
class node_annotation_files toneMint
class node_user,node_contigs toneIndigo
```

## Components

### Genome annotation

- [Prokka annotation](https://github.com/tseemann/prokka/blob/master/bin/prokka): `bin/prokka`

### Reference data

- [Installed databases](https://github.com/tseemann/prokka/tree/master/db): `db`
- **Curated proteins**

### Annotation outputs

- **Annotation files**

### Other components

- **Genome submitter**
- **Contig sequences**

## Connections

- Genome submitter → Contig sequences: provides (evidence: `README.md`)
- Contig sequences → Prokka annotation: annotates (evidence: `README.md`)
- Installed databases → Prokka annotation: uses (evidence: `README.md`)
- Curated proteins → Prokka annotation: references (evidence: `README.md`)
- Prokka annotation → Annotation files: writes (evidence: `README.md`)
