#20 chords A simple chord diagram for amino-acid relationships ##Usage
The input data should be a 20x20 table with tabs as separators.
To run the thing, do this (uses firefox)
git clone https://gist.github.com/ivan-kryukov/c265c9df6bfeda28abc8
package Imports; | |
strict->import(); | |
warnings->import(qw(FATAL)); | |
5.010_000->import(); | |
utf8->import(); | |
1; |
typedef struct datum { | |
int number; | |
} datum; | |
typedef datum * table; | |
TYPEMAP: <<END | |
table T_PTRREF | |
END |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
/** | |
* Median calculation | |
* This program takes an input file with one number per line and calculates mean and median. |
1 | 1 | 0 | |
---|---|---|---|
1 | 2 | 0 | |
1 | 3 | 0 | |
2 | 1 | 0 | |
2 | 2 | 0 | |
2 | 3 | 0 | |
4 | 1 | 1 | |
4 | 2 | 1 | |
4 | 3 | 1 | |
5 | 1 | 1 |
#20 chords A simple chord diagram for amino-acid relationships ##Usage
The input data should be a 20x20 table with tabs as separators.
To run the thing, do this (uses firefox)
git clone https://gist.github.com/ivan-kryukov/c265c9df6bfeda28abc8
#Custom Keymap (Lenovo T430)
This will apply settings for both system console and Xorg
server.
CapsLock
will become an extra Esc
Home
will be switched with PageUp
End
will be switched with PageDown
This makes sense for the Lenovo T430, where PageUp
and PageDown
are right next to the arrow keys.
#Randomization script
The idea is to do bootstrap resampling on the control dataset to make sure it is appropriate as a control dataset.
#Usage
python randomize.py <input.csv> <resample_times>
>sequence 1 | |
ACTG |
#Get repo list, filter git urls | |
GITHUB_NAME=octocat | |
curl https://api.github.com/users/$GITHUB_NAME/repos > github_response | |
for repo in `cat github_response | jq -r '.[] | .git_url'`; do; | |
git clone $repo; | |
done |
# Use dots (.) instead of ($) | |
R_ify <- function(expr) eval(parse(text= | |
gsub("\\.","$",substitute(expr)))) | |
R_ify(mtcars.mpg) |