brentp / hts-nim

nim wrapper for htslib for parsing genomics data files

Home Page:https://brentp.github.io/hts-nim/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does this library work with SAM files?

nellore opened this issue · comments

I seem to be running into the error at https://github.com/brentp/hts-nim/blob/master/src/hts/bam.nim#L242 when I try to open a SAM file. Am I doing something silly, or is SAM not supported yet?

Thanks!
A

thanks for reporting this. I hadn't noticed this but I just pushed a fix.
please let me know if you have any more issues or questions.

Thanks for getting on this so fast! I don't think the issue is resolved yet; I don't get any records when I try to iterate over a SAM. So the new test in bamtest.nim doesn't iterate over any records and necessarily succeeds, at least on my Macbook.

well, that was sloppy of me. It actually iterates now. thanks for persisting.

Woooorks! Thanks so much for this slice of awesome.

A

sure. let me know if you hit any other issues. there are definitely parts that have not been exercised.