Skip to content

Instantly share code, notes, and snippets.

View timeu's full-sized avatar

Ümit Seren timeu

View GitHub Profile
@timeu
timeu / test.txt
Created August 30, 2016 08:09
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:07
test123
This is just a test
@timeu
timeu / test.txt
Created August 30, 2016 08:05
test123
This is just a test
h5 = h5py.File('my_file','r')
snps = h5['snps']
start = 0
end = END_OF_CHROMOSOME
# how many SNPs you want
chunk_size = 1000
for i in xrange(start,end,chunk_size):
stop_ix = min(i+chunk_size,end)
# this will return an array of 1000 snps
chunked_snps = snps[i:stop_ix]
@timeu
timeu / designer.html
Created October 17, 2014 08:26
designer
<link rel="import" href="../polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@timeu
timeu / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../core-animated-pages/core-animated-pages.html">
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
<link rel="import" href="../core-animated-pages/transitions/slide-down.html">
<link rel="import" href="../core-animated-pages/transitions/slide-up.html">
<link rel="import" href="../core-animated-pages/transitions/slide-from-right.html">
<link rel="import" href="../core-selector/core-selector.html">
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="timeu-wizard">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@timeu
timeu / index.html
Last active August 29, 2015 13:56 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<title>Force-Directed Graph</title>
<style>
.node {
cursor: pointer;
stroke: #3182bd;
stroke-width: 1.5px;
}
@timeu
timeu / 1001.json
Last active January 4, 2016 19:19 — forked from kueda/d3.phylogram.js
(((((((((((((((((((((((((((2285:0.00000,(2240:0.00000,(2239:0.00000,(2212:0.00000,(2191:0.00000,(2166:0.00000,(2159:0.00000,(2141:0.00000,(2108:0.00000,(2106:0.00000,(2091:0.00000,(2081:0.00000,(2053:0.00000,(2031:0.00000,(2017:0.00000,(1943:0.00000,(1942:0.00000,((7515:0.00000,7475:0.00017)Inner1161:0.00000,(1820:0.00000,(1819:0.00000,(1797:0.00000,(1793:0.00000,(1757:0.00000,(1756:0.00000,(1741:0.00000,(1739:0.00000,(1684:0.00000,(((((((((((((((((((((((7566:0.00034,2057:0.00034)Inner1125:0.00011,(8077:0.00072,((1852:0.00011,531:0.00000)Inner1127:0.00002,(7356:0.00105,((7416:0.00171,(2276:0.00146,(2278:0.00006,1853:0.00074)Inner883:0.00001)Inner902:0.00004)Inner1123:0.00004,((1954:0.00045,((2202:0.00136,2016:0.00124)Inner224:0.00093,1925:0.00076)Inner402:0.00068)Inner718:0.00037,(1829:0.00191,((9920:0.00072,((8171:0.00051,(2317:0.00180,2171:0.00131)Inner359:0.00056)Inner498:0.00043,((7530:0.00000,7529:0.00000)Inner388:0.00051,(((8132:0.00039,7947:0.00068)Inner360:0.00034,(7525:0.00000,7524:0.00000)Inner344:0