brentp / hts-nim-tools

useful command-line tools written to showcase hts-nim
https://github.com/brentp/hts-nim
MIT License
49 stars 6 forks source link

Opening BAMs doesn't appear to return bool #2

Closed nellore closed 6 years ago

nellore commented 6 years ago
var bam: Bam
assert open(bam, "myBam.bam", index = true)

gives

Error: type mismatch: got (void)
but expected one of: 
template assert(cond: bool; msg = "")

Am I missing something obvious? Thanks!

brentp commented 6 years ago

you can just use:

var bam: Bam
open(bam, "myBam.bam", index = true)

I have updated the remaining location in the docs that had the assert.

thanks for opening the issue and let me know any other problems.

nellore commented 6 years ago

Thanks!