Skip to content

Instantly share code, notes, and snippets.

@martijnvermaat
martijnvermaat / profiling.ipynb
Last active December 30, 2015 00:29
Profiling k-mer pairwise comparison
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@martijnvermaat
martijnvermaat / fix_sslv3.sh
Last active January 5, 2016 10:07
Fix curl/gnutls SSLv3 on Ubuntu 14.04
#!/bin/bash
# Fix curl/gnutls SSLv3 on Ubuntu 14.04
#
# The curl version on Ubuntu 14.04 Trusty Tahr has a bug (through gnutls) in
# its SSLv3 support. This also affects git.
#
# http://sourceforge.net/p/curl/bugs/1319/
#
# This downgrades curl to 7.32 (from Ubuntu 13.12), which does not have the
# bug. It also uninstalls the landscape-client and python-pycurl packages
@martijnvermaat
martijnvermaat / index.html
Created February 29, 2016 16:12
Merge rules with vendor-specific pseudo-element selectors
<!doctype html>
<style>
#original input[type=range] {
-webkit-appearance: none !important;
}
#original input[type=range]::-webkit-slider-runnable-track {
height: 2px;
width: 100px;
background: red;
@martijnvermaat
martijnvermaat / manual.md
Created April 18, 2016 09:07
Nested Manual

Quick introduction

Initial screen

When the program is started, the user is presented with a minimal pedigree consisting of a father, a mother and a child. On the left of the screen there is a slider for zooming in and zooming out.

In the top left corner three buttons can be seen, two of them (undo and redo) are greyed out. The third button is for downloading the pedigree.

In the top right corner two buttons can be seen, the left one (drawing view) is

@martijnvermaat
martijnvermaat / README.md
Last active April 28, 2016 13:55
Genomic GenBank files and transcript identifiers

Genomic GenBank files and transcript identifiers

Using the attached script we check all genomic GenBank files in the server cache for the transcript_id field in their mRNA features.

Using the cache from mutalyzer.nl

Category Files checked Transcripts With ID Without ID %
NG_ 3076 5989 5978 11 0.2 %
@martijnvermaat
martijnvermaat / README.md
Last active April 29, 2016 12:35
Vagrant configurations

Default Vagrant configurations.

Application IP SSH forward HTTP forward HTTPS forward
Mutalyzer 192.168.111.222 2522 8088 8089
Base server 192.168.111.223 2523
Varda 192.168.111.224 2524 8090 8091
ELK 192.168.111.225 2525 8092 8093
logstash-forwarder 192.168.111.226 2526
Jenkins 192.168.111.227 2527 8094
@martijnvermaat
martijnvermaat / auto-ssh-aliases.bash
Created May 11, 2016 13:55
Auto SSH session aliases for hosts configured in ~/.ssh/config
# Auto SSH session aliases for hosts configured in ~/.ssh/config.
command_not_found_handle() {
if [[ ! "$1" ]] ; then
return 127
fi
if ! grep -q "^Host $1\$" ~/.ssh/config; then
return 127
fi
ssh $*
}
@martijnvermaat
martijnvermaat / plink_dbsnp.md
Last active May 30, 2016 16:02
Rename Plink SNPs to their dbSNP rs#
@martijnvermaat
martijnvermaat / hgvs.md
Last active May 30, 2016 19:44
Operational semantics for HGVS

Operational semantics for HGVS

This formalisation is based on the idea that the meaning of a variant description is a set of fixed sequences projected on the referencesequence. (We call them replacements, but they can also be identities.) We explicitely do not mean the result (sequence) of applying these replacements. At least in my understanding, that is not how HGVS is intended to interpreted (and would also make it impossible to combine variants; how do you combine two plain sequences?).

Keybase proof

I hereby claim:

  • I am martijnvermaat on github.
  • I am martijnvermaat (https://keybase.io/martijnvermaat) on keybase.
  • I have a public key ASBU9sNz9RzOg8_nT4dssYbLszQejvkoSlY84KZDTpH_Dwo

To claim this, I am signing this object: