lh3 / gfa1

This repo is deprecated. Please use gfatools instead.
https://github.com/lh3/gfatools
16 stars 3 forks source link

notation for mapping segments to arcs #3

Closed zeeev closed 6 years ago

zeeev commented 6 years ago

Dear Heng,

Thank you for writing this very useful code. I'm trying to figure out the mapping between the vertex id and segment ids.

Given a gfa_seg_t how do you get all the associated gfa_arc_t?

Would it be: g->arcs[vid>>1]?

I suppose I'm confused because there are many more vertex_ids than segment_ids?

How is the inverse operation done?

Thank you for any information you can supply.