Skip to content

Instantly share code, notes, and snippets.

View andremrsantos's full-sized avatar
🏙️
NYU

André M. Ribeiro-dos-Santos andremrsantos

🏙️
NYU
  • Maurano Lab
  • New York, NY
View GitHub Profile
@andremrsantos
andremrsantos / parse_burden.nim
Created January 24, 2019 14:24
Parsing gene mutation burden fails on -d:release
import os
import tables
import strutils
import sequtils
import algorithm
import streams
import hts
proc main() =
## Open VCF file
### Keybase proof
I hereby claim:
* I am andremrsantos on github.
* I am andremr (https://keybase.io/andremr) on keybase.
* I have a public key ASCOYFzPxb17gJ7cQICAVQI9bHZdqOg4Ez9mmk5LDEXr8wo
To claim this, I am signing this object:
require "webmock"
require "http/client"
require "xml"
# Mocking the web request
WebMock.stub(:get, "mymock.com/index").to_return(body: "")
client = HTTP::Client.new("mymock.com").tap do |c|
c.connect_timeout = 30.seconds
c.dns_timeout = 10.seconds