Skip to content

Instantly share code, notes, and snippets.

View kantale's full-sized avatar

Alexandros Kanterakis kantale

View GitHub Profile
(for i in `seq 1 280` ; do curl -s "http://www.myexperiment.org/workflows?order=latest&page=$i" | grep "Created" | awk '{print $2}' ; done) > results.txt
@kantale
kantale / Categorical_Decision_Tree_rules.ipynb
Created July 23, 2016 21:20
Rule extraction from a Decision Tree with Categorical data through scikit-learn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <stdio.h>
/*
/A\
//A\\
///A\\\
\\\A///
\\A//
\A/
@kantale
kantale / lesson_1.ipynb
Last active November 2, 2016 12:54
Εισαγωγή στον προγραμματισμό με τη γλώσσα python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesso1.md
Created October 23, 2016 08:48
Τίτλος

Με αυτόν τον τρόπο εγκαθιστούμε την R 3.3.1 από source σε Linux

configureDir=`pwd`/R_3_3_1

if [ ! -f $configureDir/bin/R ]; then

    sudo apt-get -y install gcc gfortran g++ 
    sudo apt-get -y install libreadline6 libreadline6-dev 
 sudo apt-get -y install unzip zlib1g-dev zlibc zlib1g libbz2-dev liblzma-dev 
@kantale
kantale / jupyter_help.ipynb
Last active November 1, 2016 13:06
Οδηγίες για το Jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
input_vcf_not_gds=$1
cat > convertVCFtoGDS.r << EOF
library(gdsfmt)
library(SNPRelate)
vcf.fn <- Sys.getenv("input_vcf_not_gds")
gds.fn <- paste(vcf.fn, ".gds", sep="")
@kantale
kantale / myExperiment.py
Last active January 16, 2017 10:34
Number of new workflows submitted per year in the myExperiment platform
# Fetch data with:
# wget -O myExperiment.html "http://www.myexperiment.org/workflows?num=10000"
# Resulted plot: http://imgur.com/a/7Zzlu
import re
import datetime
import matplotlib.pyplot as plt
import seaborn
<script type="text/javascript">
Bokeh.$(function() {
var modelid = "8ee676f0-74a4-4002-9744-d0c18df3a02f";
var modeltype = "PlotContext";
var elementid = "60b0cc6a-d20e-4a93-af82-7396e00b3f84";
Bokeh.logger.info("Realizing plot:")
Bokeh.logger.info(" - modeltype: PlotContext");
Bokeh.logger.info(" - modelid: 8ee676f0-74a4-4002-9744-d0c18df3a02f");
Bokeh.logger.info(" - elementid: 60b0cc6a-d20e-4a93-af82-7396e00b3f84");
var all_models = [{"attributes": {"doc": "ffcdb53b-cd55-4479-b330-32210b90f3ea", "id": "ed22826d-9e86-4c6b-be56-2cbb8852e67d", "tags": []}, "type": "BasicTickFormatter", "id": "ed22826d-9e86-4c6b-be56-2cbb8852e67d"}, {"attributes": {"line_color": {"value": "#1f77b4"}, "line_alpha": {"units": "data", "value": 0.1}, "tags": [], "doc": "ffcdb53b-cd55-4479-b330-32210b90f3ea", "y1": {"units": "data", "field": "y1"}, "y0": {"units": "data", "field": "y0"}, "x0": {"units": "data", "field": "x0"}, "x1": {"units": "data", "field": "x1"}
[{"Creditor":"International Monetary Fund","Due Date":1423699200000,"Amount":747695915,"Description":"Loan under the IMF's first bailout program for Greece, in 2010.","Rate":"","Overdue":0,"Repaid":true},{"Creditor":"International Monetary Fund","Due Date":1425600000000,"Amount":299084589,"Description":"Loan under the IMF's first bailout program for Greece, in 2010.","Rate":"","Overdue":0,"Repaid":true},{"Creditor":"International Monetary Fund","Due Date":1426204800000,"Amount":336470163,"Description":"Loan under the IMF's first bailout program for Greece, in 2010.","Rate":"","Overdue":0,"Repaid":true},{"Creditor":"International Monetary Fund","Due Date":1426464000000,"Amount":560783604,"Description":"Loan under the IMF's first bailout program for Greece, in 2010.","Rate":"","Overdue":0,"Repaid":true},{"Creditor":"International Monetary Fund","Due Date":1426809600000,"Amount":336470163,"Description":"Loan under the IMF's first bailout program for Greece, in 2010.","Rate":"","Overdue":0,"Repaid":true},{"Credit