Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andreaguarracino/rs-spodgi

Line-by-line converter from GFA to RDF (turtle)
https://github.com/andreaguarracino/rs-spodgi

bioinformatics gfa variationgraphs

Last synced: about 1 month ago
JSON representation

Line-by-line converter from GFA to RDF (turtle)

Awesome Lists containing this project

README

        

# rs-spodgi

A(n incomplete) counterpart of [spodgi](https://github.com/pangenome/spodgi) implemented in Rust.

The functionality implemented is a line-by-line converter from [GFA](https://github.com/GFA-spec/GFA-spec/blob/master/GFA1.md) to [RDF (turtle)](https://www.w3.org/TR/turtle/), which avoids loading the entire input graph in memory.

### How to build
```
git clone --recursive https://github.com/AndreaGuarracino/rs-spodgi
cd rs-spodgi
cargo build --release
./target/release/rs-spodgi -h
```
```
gfa2rdf 0.1.0
Andrea Guarracino
GFA to RDF converter

USAGE:
rs-spodgi --gfa

FLAGS:
-h, --help Prints help information
-V, --version Prints version information

OPTIONS:
-g, --gfa GFA input file to convert
```

### How to run

```
./target/release/rs-spodgi -g test/t_small.gfa > t_small.ttl
```

### docker

You can build a docker image locally using the `Dockerfile`:

```
git clone --recursive https://github.com/AndreaGuarracino/rs-spodgi
cd rs-spodgi
docker build . --file Dockerfile --tag rs_spodgi_img
```

and run it with

```
docker run --rm -it -v ${PWD}/test/:/test rs_spodgi_img rs-spodgi --gfa test/t.gfa
```