# solgenomics/vigs architecture

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

- Interactive diagram: https://gitdiagram.com/solgenomics/vigs
- Repository: https://github.com/solgenomics/vigs

## Overview

VIGS is a standalone web tool for working with VIGS sequence datasets. The README documents dataset preparation and indexing for BLAST and Bowtie2, but the supplied tree is dominated by vendored browser libraries; it does not expose the server-side application or enough source to verify the search workflow. The graph therefore separates documented sequence resources from the visible frontend assets and represents uncertain runtime wiring as unverified. The upload and UI-library nodes describe shipped capabilities, not confirmed VIGS-specific usage.

Main entry points: [`root/static/js/vigs.js`](https://github.com/solgenomics/vigs/blob/master/root/static/js/vigs.js) (VIGS browser code), [`root/static/js/jqueryfileupload/js/jquery.fileupload.js`](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload.js) (Upload engine), [`root/static/js/jqueryui/i18n/jquery-ui-i18n.js`](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryui/i18n/jquery-ui-i18n.js) (Datepicker locales), [`root/static/js/jqueryfileupload/js/jquery.fileupload-ui.js`](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload-ui.js) (Upload interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["VIGS interface"]
  node_frontend_app["VIGS browser code<br/>[vigs.js]"]
  node_markup["Markup handling<br/>[Markup.js]"]
end

subgraph group_sequence["Sequence resources"]
  node_sequence_files["Sequence files"]
  node_blast_index[("BLAST index")]
  node_bowtie_index[("Bowtie2 index")]
end

subgraph group_frontend["Browser libraries"]
  node_jquery["jQuery<br/>[jquery.js]"]
  node_jquery_ui["jQuery UI<br/>[jqueryui.js]"]
  node_jquery_ui_locales["Datepicker locales<br/>[jquery-ui-i18n.js]"]
  node_bootstrap["Bootstrap<br/>[bootstrap.js]"]
end

subgraph group_upload["File upload"]
  node_upload_core["Upload engine"]
  node_upload_ui["Upload interface"]
  node_iframe_transport["Iframe transport"]
end

node_user(("VIGS user"))
node_dataset_admin(("Dataset administrator"))

node_user -.->|"uses"| node_frontend_app
node_dataset_admin -->|"adds dataset"| node_sequence_files
node_sequence_files -->|"indexes for BLAST"| node_blast_index
node_sequence_files -->|"indexes for Bowtie2"| node_bowtie_index
node_frontend_app -.->|"accesses sequences"| node_sequence_files
node_upload_ui -.->|"uses"| node_upload_core
node_upload_core -.->|"may dispatch"| node_iframe_transport
node_jquery_ui_locales -.->|"sets locales"| node_jquery_ui

click node_frontend_app "https://github.com/solgenomics/vigs/blob/master/root/static/js/vigs.js"
click node_markup "https://github.com/solgenomics/vigs/blob/master/root/static/js/Text/Markup.js"
click node_jquery "https://github.com/solgenomics/vigs/blob/master/root/static/js/jquery.js"
click node_jquery_ui "https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryui.js"
click node_jquery_ui_locales "https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryui/i18n/jquery-ui-i18n.js"
click node_bootstrap "https://github.com/solgenomics/vigs/blob/master/root/static/js/bootstrap-3.3.5-dist/js/bootstrap.js"
click node_upload_core "https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload.js"
click node_upload_ui "https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload-ui.js"
click node_iframe_transport "https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/jquery.iframe-transport.js"

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_frontend_app,node_markup,node_user toneBlue
class node_sequence_files,node_blast_index,node_bowtie_index toneAmber
class node_jquery,node_jquery_ui,node_jquery_ui_locales,node_bootstrap toneMint
class node_upload_core,node_upload_ui,node_iframe_transport toneRose
class node_dataset_admin toneIndigo
```

## Components

### VIGS interface

- [VIGS browser code](https://github.com/solgenomics/vigs/blob/master/root/static/js/vigs.js): `root/static/js/vigs.js`
- [Markup handling](https://github.com/solgenomics/vigs/blob/master/root/static/js/Text/Markup.js): `root/static/js/Text/Markup.js`

### Sequence resources

- **Sequence files**
- **BLAST index**
- **Bowtie2 index**

### Browser libraries

- [jQuery](https://github.com/solgenomics/vigs/blob/master/root/static/js/jquery.js): `root/static/js/jquery.js`
- [jQuery UI](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryui.js): `root/static/js/jqueryui.js`
- [Datepicker locales](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryui/i18n/jquery-ui-i18n.js): `root/static/js/jqueryui/i18n/jquery-ui-i18n.js`
- [Bootstrap](https://github.com/solgenomics/vigs/blob/master/root/static/js/bootstrap-3.3.5-dist/js/bootstrap.js): `root/static/js/bootstrap-3.3.5-dist/js/bootstrap.js`

### File upload

- [Upload engine](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload.js): `root/static/js/jqueryfileupload/js/jquery.fileupload.js`
- [Upload interface](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/js/jquery.fileupload-ui.js): `root/static/js/jqueryfileupload/js/jquery.fileupload-ui.js`
- [Iframe transport](https://github.com/solgenomics/vigs/blob/master/root/static/js/jqueryfileupload/jquery.iframe-transport.js): `root/static/js/jqueryfileupload/jquery.iframe-transport.js`

### Other components

- **VIGS user**
- **Dataset administrator**

## Connections

- VIGS user → VIGS browser code: uses
- Dataset administrator → Sequence files: adds dataset (evidence: `README`)
- Sequence files → BLAST index: indexes for BLAST (evidence: `README`)
- Sequence files → Bowtie2 index: indexes for Bowtie2 (evidence: `README`)
- VIGS browser code → Sequence files: accesses sequences
- Upload interface → Upload engine: uses
- Upload engine → Iframe transport: may dispatch
- Datepicker locales → jQuery UI: sets locales
