Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chfi/waragraph
https://github.com/chfi/waragraph
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chfi/waragraph
- Owner: chfi
- Created: 2022-01-22T01:24:01.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-12T17:22:25.000Z (9 months ago)
- Last Synced: 2024-03-12T18:39:20.404Z (9 months ago)
- Language: Rust
- Size: 9.9 MB
- Stars: 19
- Watchers: 6
- Forks: 3
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-pangenomes - Waragraph
README
# Waragraph - a variation graph visualizer
## Usage
Build with `cargo`. Only the latest version of Rust is supported.
```rust
cargo build --release
```Run by providing a GFA file, and, optionally, a TSV layout file from [`odgi layout`](https://odgi.readthedocs.io/en/stable/rst/commands/odgi_layout.html).
A layout file can also be provided after the program has started, from the settings window.```sh
./target/release/waragraph graph.gfa layout.tsv
```Annotations can be loaded at startup using the `--bed` or `--gff` (in combination with `--gff-attr`) command line arguments.
When a GFF file is loaded, the attribute key from `--gff-attr` is used as the label.
4 column BED files are supported, with the 4th column being used as
the label. If the 4th column ends with a space followed by a hex-coded
color, e.g. “SomeGene #32ABCD”, that will be the annotation’s
highlight color.```sh
./target/release/waragraph graph.gfa layout.tsv --bed some.bed
```### Global
Press `Escape` to open and close the settings window. If not provided on startup, a TSV layout file
can be loaded under "Graph & Layout" in the "General" tab.### 1D
Scroll the path list by scrolling the mouse wheel with the cursor over the path names.
Zooming the view can be done by scrolling the wheel over the path visualizations.Right click on a node to pan the 2D view to that node. This does not zoom the 2D view.
Up and down arrow keys also scroll the list, and the left and right keys pan the view.
Press `Space` to reset the view.### 2D
Pan and zoom the view by clicking and dragging with the mouse, and scrolling the mouse wheel.
Right click on a node to pan the 1D view to that node. This does not
zoom the 1D view, so if the 1D view is fully zoomed out, nothing will
happen.If annotations are loaded, left clicking an annotation in the sidebar
list will pan the view to it, and right clicking it will toggle it so
that it’s always highlighted.Press `Space` to reset the view.
## Project structure
- `/lib` contains the core graph and related algorithms.
- `/app` contains the visualizer application.