vgteam / libhandlegraph

Library for the Handle Graph abstraction
MIT License
21 stars 5 forks source link

Copy method #24

Closed glennhickey closed 5 years ago

glennhickey commented 5 years ago

Adding copy() method. This is to be able to convert from one graph implementation to another.

(I previously pushed this to master due to git failure. Reverted that and am PRing the reversion of reversion).

Is there laready a CLI for converting one graph to another? If not, how are people testing? I have a vg convert in a local branch of vg (using this libhandlegraph) that I will PR as a strawman, but I think this would eventually belong in sglib

glennhickey commented 5 years ago

Just noticed these functions were already tucked away in vg here https://github.com/vgteam/vg/blob/master/src/convert_handle.hpp. Not sure that's where they belong though...