How reeper316099/resistancescope works
ResistanceScope is an offline desktop explorer for antibiotic-resistance data. Its data workflow turns public NCBI files into normalized, aggregated, validated JSON; the app embeds that data, serves Go-backed queries and statistics, and presents organism, gene, drug-class, and overview views for users. The graph keeps the Python data pipeline distinct from the desktop runtime and groups related core calculations. Some pipeline and core modules were not excerpted, so their relationships are shown only where the README or indexed references support them.
Main entry points: api.go Shell API · app.js Web app controller · aggregate.py Aggregate isolates · api.js Page API client
Components 31
Data pipeline
- Download inputs
pipeline/download.py - Parse records
pipeline/parse_pathogen.py - Parse gene catalog
pipeline/parse_catalog.py - Normalize data
pipeline/normalizers.py - Aggregate isolates
pipeline/aggregate.py - Country mapping
pipeline/countries.py - Validate outputs
pipeline/validate.py - Shipped JSON data
pipeline/config.py
Go data and analysis
- Data store
go/core/store.go - Data validation
go/core/validate.go - Query and statistics
go/core/queries.go - Organism analysis
go/core/organismview.go - Gene analysis
go/core/geneview.go - Overview analysis
go/core/overview.go - Search
go/core/search.go - CSV export
go/core/export.go - Narrative summaries
go/core/narrative.go - Map and country data
go/core/worldmap.go
Desktop runtime
- Embedded data access
go/embeddata/embed.go - Shell API
go/shell/api.go - Wails desktop app
go/main.go
Explorer interface
- Web app controller
go/frontend/web/app.js - Page API client
go/frontend/web/api.js - Organism view
go/frontend/web/views/organism.js - Gene view
go/frontend/web/views/gene.js - Drug class view
go/frontend/web/views/drugClass.js - Overview view
go/frontend/web/views/overview.js - Charts and visuals
go/frontend/web/charts - Local preferences
go/frontend/web/storage.js
Other components
- Explorer user
- NCBI data
Connections 35
- NCBI data → Download inputs: provides files
README.md - Download inputs → Parse records: feeds records
- Parse records → Aggregate isolates: yields isolates
pipeline/aggregate.py - Parse gene catalog → Aggregate isolates: supplies catalog
pipeline/aggregate.py - Normalize data → Aggregate isolates: filters calls
pipeline/aggregate.py - Country mapping → Normalize data: maps countries
pipeline/normalizers.py - Aggregate isolates → Validate outputs: checks output
- Aggregate isolates → Shipped JSON data: writes JSON
pipeline/aggregate.py - Validate outputs → Shipped JSON data: validates files
pipeline/validate.py - Shipped JSON data → Embedded data access: ships within app
README.md - Embedded data access → Data store: loads data
- Data store → Data validation: validates dataset
- Wails desktop app → Shell API: creates API
go/main.go - Shell API → Data store: uses data store
- Shell API → Query and statistics: serves queries
go/shell/api.go - Shell API → Organism analysis: serves organism data
- Shell API → Gene analysis: serves gene data
- Shell API → Overview analysis: serves overview
- Shell API → Search: serves search
- Shell API → CSV export: serves exports
- Shell API → Narrative summaries: serves summaries
- Shell API → Map and country data: serves map data
- Explorer user → Web app controller: explores data
README.md - Web app controller → Page API client: routes requests
go/frontend/web/app.js - Page API client → Shell API: calls methods
go/frontend/web/api.js - Web app controller → Organism view: renders view
go/frontend/web/app.js - Web app controller → Gene view: renders view
go/frontend/web/app.js - Web app controller → Drug class view: renders view
go/frontend/web/app.js - Web app controller → Overview view: renders view
go/frontend/web/app.js - Organism view → Page API client: requests data
go/frontend/web/views/organism.js - Gene view → Page API client: requests data
go/frontend/web/views/gene.js - Organism view → Charts and visuals: renders charts
go/frontend/web/views/organism.js - Gene view → Charts and visuals: renders charts
go/frontend/web/views/gene.js - Web app controller → Local preferences: reads preferences
go/frontend/web/app.js - Explorer user → Wails desktop app: opens app
README.md