Save yourself a few keystrokes. Follow the steps below:
-
Run this Bash script on your laptop:
#!/usr/bin/env bash
#!/usr/bin/env python | |
""" | |
HapMap.py | |
Kamil Slowikowski | |
February 25, 2014 | |
# Quickly read the data and automatically compute allele frequencies. | |
>>> from HapMap import HapMap | |
>>> ceu = HapMap("CEU", "/media/blue/data/EPI511/HapMap3/") |
I want to open pdf files with program A unless it is stored in Zotero, in which case I want to open it program B.
Below, I use playonlinux to launch Foxit Reader for my Zotero pdf files because Foxit has nice highlighting and annotation features that I like to use on scientific articles. I use [evince][4] for all other pdf files (figures, books, documents, etc.)
#' Create a quantile-quantile plot with ggplot2. | |
#' | |
#' Assumptions: | |
#' - Expected P values are uniformly distributed. | |
#' - Confidence intervals assume independence between tests. | |
#' We expect deviations past the confidence intervals if the tests are | |
#' not independent. | |
#' For example, in a genome-wide association study, the genotype at any | |
#' position is correlated to nearby positions. Tests of nearby genotypes | |
#' will result in similar test statistics. |
#!/usr/bin/env python | |
""" | |
freq.py | |
Kamil Slowikowski | |
March 31, 2014 | |
For each SNP, compute the reference allele frequency in all continental | |
populations and also in all subpopulations. | |
This script reads BEAGLE formatted genotypes from the 1000 Genomes Project. |
#!/usr/bin/env python | |
""" | |
gists.py | |
Kamil Slowikowski | |
April 1, 2014 | |
Print an HTML list of your gists: | |
./gists.py |
function cd_dir_history() | |
{ | |
OLDPWD="$PWD" | |
echo "# $(date) $USER -> $@" >> "$HISTFILE" | |
command cd "$@" | |
# If this directory is writable then write to directory-based history file | |
# otherwise write history in the usual home-based history file. | |
touch "$PWD/.dir_bash_history" 2>/dev/null \ |
#!/usr/bin/env bash | |
# notify-toggle.sh | |
# Kamil Slowikowski | |
# May 31, 2014 | |
# | |
# Toggle libnotify notification bubbles that appear in the top-right corner | |
# of your screen. | |
# You can uncomment some lines to mute and unmute sound, too. | |
# | |
# Works on: |