Skip to content

Instantly share code, notes, and snippets.

View kmhernan's full-sized avatar
😮
Why is R 1-indexed?

Kyle Hernandez kmhernan

😮
Why is R 1-indexed?
View GitHub Profile
@kmhernan
kmhernan / poc_nim_flagstat.nim
Last active January 12, 2019 02:33
Proof of concept of me playing around with hts-nim via implementing samtools flagstat. This is not production. This was just late night playing around.
# Proof-of-concept test of hts-nim flagstat. Not a production piece.
# Nim Compiler Version 0.19.0
# nim c -d:realease
import hts
import strutils
type
CountArray = array[0..1, int]
proc main(): int =
# Why does this give a circular dependency error?
dep( [C, D] <- [A, B] ) { sys do something }
dep( E <- [C, D] { sys do something }
goal( E )
# When this does NOT give a circular dependency error!
dep( C <- [A, B] ) { sys do something }
dep( E <- C ) { sys do something }
goal( E )