Skip to content

Instantly share code, notes, and snippets.

View mcolic's full-sized avatar

Medina Colic mcolic

  • University of Texas MD Anderson Cancer Center and UTHealth GSBS
  • Houston, TX
View GitHub Profile
@sokrato
sokrato / postfix_calculator.py
Last active March 14, 2016 11:03
Postfix calculator implementation in Python, infix to postfix transformation, for theories, see http://www.smccd.net/accounts/hasson/C++2Notes/ArithmeticParsing.html
'''
Infix calculator
First tokenize infix expression,
then transform it into postfix,
then calculate it.
E.g.:
9 - 5 + 2 * 3
=> 9 5 - 2 3 * +
'''
import re
@ericminikel
ericminikel / human-bodymap2.0-fpkms.bash
Created November 18, 2013 18:56
Bash script to calculate FPKMs from the Human BodyMap 2.0 mRNA-seq data.
# Eric Minikel
# CureFFI.org
# 2013-07-04
# Bash script to generate FPKMs from Ensembl Human Bodymap 2.0 RNA-seq data
# Announcement of Human BodyMap 2.0 data availability: http://www.ensembl.info/blog/2011/05/24/human-bodymap-2-0-data-from-illumina/
# BAM list: ftp://ftp.ensembl.org/pub/release-70/bam/homo_sapiens/genebuild/
# STEP 1: DOWNLOAD THE BAMS FROM ENSEMBL