Skip to content

Instantly share code, notes, and snippets.

View kantale's full-sized avatar

Alexandros Kanterakis kantale

View GitHub Profile
@kantale
kantale / lesson_7.ipynb
Created December 5, 2016 22:54
Εισαγωγή στον προγραμματισμό με τη γλώσσα python, Διάλεξη 7, data visualization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_9.ipynb
Created December 15, 2016 17:02
Εισαγωγή στον προγραμματισμό με τη γλώσσα python, Διάλεξη 9, pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / python_project.ipynb
Created December 30, 2016 09:30
Εισαγωγή στον προγραμματισμό με τη γλώσσα python, Project εξαμήνου
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kantale
kantale / lesson_10.ipynb
Created February 1, 2017 10:06
Εισαγωγή στον προγραμματισμό με τη γλώσσα python, Διάλεξη 10, πρόσβαση σε online βάσεις γενομικών δεδομένων
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import re
import sys
import json
import urllib
import requests
headers = {
"Host": "www.disease-ontology.org",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:51.0) Gecko/20100101 Firefox/51.0",
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
'''
Copyright (c) 2017, Alexandros Kanterakis kantale@ics.forth.gr
All rights reserved.
Simplified BSD License:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
@kantale
kantale / gen_2_tped.py
Created March 7, 2017 09:09
convert HAPGEN2 files to PLINK's tped
# GEN
# snp_0 rs6078030 9098 C T 1 0 0 0 1 0 0 1 0 0
# TPED
# 1 snp1 0 5000650 A A A C C C A C C C C C
# TFAM
# 1 1 0 0 1 1
# 4 1 0 0 1 2
@kantale
kantale / python_2016_2017.md
Last active October 11, 2018 07:36
Υλικό για το μάθημα BIO102: Introduction to Programming

BIO102: Introduction to Programming
http://bioinfo-grad.gr/plirofories-tou-p-m-s/prosferomena-mathimata

@kantale
kantale / install.sh
Last active May 2, 2017 15:54
MOLGENIS 4.0 in Ubuntu 16.04
sudo apt-get update
sudo apt-get -y install maven
# sudo apt-get install postgresql postgresql-contrib
# requires 9.6 or higher
# https://askubuntu.com/questions/831292/how-to-install-postgresql-9-6-on-any-ubuntu-version
# For 16.04
@kantale
kantale / lesson_1.ipynb
Created October 14, 2017 09:51
2017, Προγραμματισμός με python, διάλεξη 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.