gfapy
gfapy copied to clipboard
Feature: converting graphs to GFA
Thank you for your work on gfapy
;
In the documentation, I could not find a function to convert well-known graph data structures like igraph
or networkx
to gfa
. Assume that we worked on a graph in Python
and then we want to print it to a gfa
file. One way is to iterate over the graph and add lines to a gfa
instance, but it would probably be very useful and more convenient to have this implemented within gfapy
.
Also, in a more general way, would be nice if we could have access to functions like add_graph_node()
or add_graph_edge
, that add the lines for nodes and edges without the user spelling the full line using add_line
Hi @aafshinfard, for sure it would be interesting to implement automatic conversion.
It is probably not so difficult to add basic functionality for it. Unfortunately I have not much time for that at the moment, since I am too busy with other projects.