pmelsted / bifrost

Bifrost: Highly parallel construction and indexing of colored and compacted de Bruijn graphs
BSD 2-Clause "Simplified" License
201 stars 25 forks source link

Using CompactedDBG cpp object to fetch name of contig in GFA #68

Open rlorigro opened 1 year ago

rlorigro commented 1 year ago

Hi,

I linked your library and I'm able to use a combination of a KmerIterator and your CompactedDBG class to query k-mers in a de Bruijn graph I have stored on my disk as a GFA. However I am looking for a way to map the query results back to the name or index of each contig ("segment" in GFA terminology). Is there an existing way to do this? If not in Bifrost, is there an easy way to adapt it? or would you recommend a different method entirely?

Thanks