Skip to content

Instantly share code, notes, and snippets.

View danvk's full-sized avatar

Dan Vanderkam danvk

View GitHub Profile
##fileformat=VCFv4.1
##source=VarScan2
##INFO=<ID=DP,Number=1,Type=Integer,Description="Total depth of quality bases">
##INFO=<ID=SOMATIC,Number=0,Type=Flag,Description="Indicates if record is a somatic mutation">
##INFO=<ID=SS,Number=1,Type=String,Description="Somatic status of variant (0=Reference,1=Germline,2=Somatic,3=LOH, or 5=Unknown)">
##INFO=<ID=SSC,Number=1,Type=String,Description="Somatic score in Phred scale (0-255) derived from somatic p-value">
##INFO=<ID=GPV,Number=1,Type=Float,Description="Fisher's Exact Test P-value of tumor+normal versus no variant for Germline calls">
##INFO=<ID=SPV,Number=1,Type=Float,Description="Fisher's Exact Test P-value of tumor versus normal for Somatic/LOH calls">
##FILTER=<ID=str10,Description="Less than 10% or more than 90% of variant supporting reads on one strand">
##FILTER=<ID=indelError,Description="Likely artifact due to indel reads at this position">
Date/Time Open PRs Open Issues
2014-11-04T20:11:31.611119 8 126
2014-11-10T10:46:55.208083 6 123
//
// This file is part of Smoothie.
//
// Copyright (C) 2013,14 Torben Haase, Flowy Apps (torben@flowyapps.com)
//
// Smoothie is free software: you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License as published by the Free
// Software Foundation, either version 3 of the License, or (at your option) any
// later version.
//
#!/usr/bin/env python
import re
import sys
from bs4 import BeautifulSoup
if len(sys.argv)>1:
stream = open(sys.argv[1])
else:
<style>
input{font-size: x-large;}
</style>
<img src="${input1}" /><br>
<input type="text" name="line1" size=60 /><br>
<img src="${input2}" /><br>
<input type="text" name="line2" size=60 /><br>
#!/bin/bash
set -o errexit
if [[ $# -ne 1 ]]; then
>&2 echo "Wrong # of arguments"
exit 1
fi
draft=$1
if [ ! -f $draft ]; then
#!/usr/bin/env python
"""Train an LSTM network to recognize the embedded Reber grammar."""
import random
import numpy as np
import ocrolib
# State transition table
TRANSITIONS = [
#!/bin/bash
set -o errexit
for model in *.pyrnn.gz; do
out=stats/errs.$(basename $model).txt
if [ ! -f $out ]; then
echo $model $out
rm ??????b-crop-??????.txt || true
ocropus-rpred -n -Q 4 -m $model *.png
@danvk
danvk / q.js
Created February 18, 2015 18:38
declare function Q<T>(value: T): Promise<T>;
type IPromise<T> = {
then<U>(onFulfill?: (value: T) => U | IPromise<U>, onReject?: (error: any) => U | IPromise<U>): IPromise<U>;
};
type Deferred<T> = {
promise: Promise<T>;
resolve(value: T): void;
reject(reason: any): void;
@danvk
danvk / -
Created February 18, 2015 18:56
/Users/danvk/github/pileup.js/src/remotefile.js: inconsistent use of library definitions /Users/danvk/github/pileup.js/lib/q.js:233:32,37: number This type is incompatible with /Users/danvk/github/pileup.js/lib/q.js:29:5,154:5: Promise