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

No public facing method for closing Fai file

NatPRoach opened this issue · comments

Hello,
I may be missing something obvious but the documentation doesn't seem to have a method for closing an Fai object once you've opened it. Is that intentional or is there anyway to expose such a method?
Thanks a bunch for the library, it's been super helpful!

Hi, I didn't expose that. It gets closed when the fai object gets garbage collected. I have just added it in case you really need to keep filehandles closed without depending on GC.

Glad to hear it's useful!

BTW, I added your project here: https://github.com/brentp/hts-nim/wiki/Example-uses-of-hts-nim
Nice work!

Thanks a bunch for the fast turn around on this issue and for adding conduit to the wiki! I appreciate it!