I was missing a few of the fields from the mappy interface so I thought I'd try to implement them. I'm a rust novice so any feedback would be appreciated.
I added the above fields based and also implemented the is_primary logic from mappy. Some notes:
Mappy has a cigar which is a list of tuples which is then converted to a cigar_str. I've included both but that might not be necessary.
For cigar_str, cs, md I've used the string without the SAM tag prefix as that's what mappy does, but I can add them back in if you think that's better.
I also added a test file from the minimap2 repo to test that the output was consistent, but that might be adding too much bloat.
Hi Joseph,
Thanks so much for creating this crate!
I was missing a few of the fields from the mappy interface so I thought I'd try to implement them. I'm a rust novice so any feedback would be appreciated.
I added the above fields based and also implemented the
is_primary
logic from mappy. Some notes:cigar
which is a list of tuples which is then converted to a cigar_str. I've included both but that might not be necessary.I also added a test file from the minimap2 repo to test that the output was consistent, but that might be adding too much bloat.
Thanks again, Eoghan