jbrowse-plugin-graphgenomeviewer
v10.15.0
Published
JBrowse 2 graph genome (pangenome) view: rGFA reference-anchored layouts, the Bandage force-directed engine, and haplotype lanes read from a gbz-base database
Maintainers
Readme
jbrowse-plugin-graphgenomeviewer
- In: one of
- a gfa-to-tabix walk file
(
<prefix>.<sample>.walks.gzbeside its directory.walks.gz.idx), opened with File → Open track - a gfa-to-tabix graph index (
<prefix>.graph.bed.gzbeside its.tbi, or format 1's.segs.bed.gzand.links.bed.gzpair), opened the same way - a gbz-base database (
.gbz.db), opened the same way - a GFA file (
.gfaor.gfa.gz), opened whole with Add → Graph genome view
- a gfa-to-tabix walk file
(
- Out: a graph track in a linear view, or a separate graph genome view, with haplotypes, bubbles and genes marked
Each walk runs a thread per pass round the syng graph's ring, so the threads count RCCX modules: GRCh38 (grey) has two and HG01978#2 (blue) three. HG01952#1 (orange) cuts across the HERV-K loop, and its callset row above shows a 6.4 kb deletion in C4A and another in C4B, so both its C4 copies are short.
Quick start
Add the plugin to your JBrowse 5.0.0-beta.20 or later config:
{ "plugins": [ { "name": "GraphGenomeView", "esmUrl": "https://jbrowse.org/plugins/jbrowse-plugin-graphgenomeviewer/latest/dist/jbrowse-plugin-graphgenomeviewer.esm.js" } ] }Write a walk file from a base-level GFA with W or P lines (
vg convert -f graph.gbzwrites one):gfa-to-tabix chr22.gfa --walks --refs GRCh38 -o chr22In an hg38 session, File → Open track on the url of
chr22.GRCh38.walks.gz. The track redraws the graph for the view's window as you pan. docs/data.md covers the other formats and the track configExplore:
- Pick a layout from the track menu: force-directed, ordered, anchored, sample rows, walk rows or tube map (docs/layouts.md)
- Lift haplotypes or show a panel per haplotype (docs/haplotypes.md)
- Launch → Graph genome view on a track opens its cut as a view, where hovering a node bands its bp in the linear view
- Export SVG from the track or the view
The JBrowse tutorials walk through the whole process with commands you can run.
Tutorials
In the JBrowse 2 docs:
- Hosting your own graph: start here
- pggb and Minigraph-Cactus
- Cattle and mouse
- HPRC release 2: graph alleles, haplotypes, repeat lengths
- User guide
Docs
In reading order:
- Data and track config: index a graph and write the track
- Layouts, bubbles and genes: the seven layouts, the reference strip, bubble halos, gene outlines, export
- Haplotypes: lifting, panels, colouring, walk rows
- Tube maps: axes, box colour, panels, routes, reads
- Maize NAM founders: MaizeGDB's graph of one gene and a Minigraph-Cactus graph of chr8, with links that open each view
- syng graphs from impg: build C4 as a syng graph and draw it
with
bandage-figure - Developing: build, test, release
Gallery
See also
- BandageJS: standalone page with the same layouts
- sequenceTubeMap, MemPanG26 edition: our fork of the tube map app
Supporting utility libraries
- @jbrowse/bandage-core (npm): bandage layout and drawing engine
- @jbrowse/tubemap-core (npm): tube map layout
- @gmod/gfa-tabix (npm): walk file reader
- @gmod/gbz-base (npm):
.gbz.dbreader
Supporting graph layout libraries
Supporting data preparation toolkits
- gfa-to-tabix: writes walk files and segment indexes from a GFA
- gbz-haplotype-index: names every walk in a gbz-base cut
- gfa-to-pairwise-paf: graph to PAF, for synteny views
Standalone R packages
Technical note: the plugin runs the same JavaScript as BandageJS and ggbandage. graph-fmmm-layout holds Bandage's own force-directed layout (FMMM), compiled from C++ to wasm. bandage-core bundles it next to the reference-anchored layouts from bandage-core and graph-stress-layout.
License
GPL-3.0-or-later, based on work from Bandage and OGDF, both GPL.

