Skip to content

Instantly share code, notes, and snippets.

View cbkmephisto's full-sized avatar

Hailin Su cbkmephisto

  • STgenetics
  • College Station, TX
View GitHub Profile

How to add a title to Seaborn Facet Plot

Reference link

import seaborn as sns
from matplotlib import pyplot as plt

# load data and plot using sns
@cbkmephisto
cbkmephisto / install_docker_ubuntu.sh
Last active May 25, 2018 15:02
Shell script to install docker on ubuntu
#!/bin/bash
sudo bash -c "
# Update the apt package index:
apt-get update
# Install packages to allow apt to use a repository over HTTPS:
apt-get install -y apt-transport-https ca-certificates curl software-properties-common
# Add Docker’s official GPG key:
@cbkmephisto
cbkmephisto / getABG_SNP_IDs.sh
Last active December 19, 2016 00:26
Get SNP_ID list from a ab-genotype file
#!/bin/bash
[ ! $# -eq 1 ] && echo $0 ab-genotype_file \# print SNP_IDs of the abg to screen. && exit
head -n1 $1 | awk -F\# '{for(i=3;i<=NF;++i)print $i}'