cucapra / pollen

generating hardware accelerators for pangenomic graph queries
MIT License
24 stars 1 forks source link

mygfa: Parse CIGAR alignment strings #21

Closed sampsyo closed 1 year ago

sampsyo commented 1 year ago

I previously didn't really know what alignment strings were saying, so I just preserved them as strings in the mygfa parser. But @anshumanmohan found a nice explanation that made it clearer. So while we still don't really do anything with the alignment information, this PR makes mygfa at least parse the strings into a structured format.

This also adds a way to print the parsed data structures back to a GFA text format by sprinkling in __str__ methods throughout.

anshumanmohan commented 1 year ago

Thanks Adrian!