edawson / gfakluge

A C++ library and utilities for manipulating the Graphical Fragment Assembly format.
http://edawson.github.io/gfakluge/
MIT License
51 stars 20 forks source link

Parse GFA from standard input when using dash as a filename #68

Closed cartoonist closed 3 years ago

cartoonist commented 3 years ago

This PR enables gfak to parse GFA from standard input by reserving - as a special filename. This feature comes in handy when piping another tool to gfak. For example:

$ vg construct -r x.fa -v x.vcf.gz | vg view - | gfak -S 2.0 - > graph-v2.gfa
edawson commented 3 years ago

Very nice, thank you for this @cartoonist !