Skip to content

Instantly share code, notes, and snippets.

@brentp
Created October 31, 2017 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentp/bb97f755387cc250f78015322baad22d to your computer and use it in GitHub Desktop.
Save brentp/bb97f755387cc250f78015322baad22d to your computer and use it in GitHub Desktop.
{.emit:"""
#define bam_get_qual(b) ((b)->data + ((b)->core.n_cigar<<2) + (b)->core.l_qname + (((b)->core.l_qseq + 1)>>1))
""".}
proc bam_get_qual*(b: ptr bam1_t): ptr uint8 {.importc, nodecl.}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment