Skip to content

Instantly share code, notes, and snippets.

View bergeycm's full-sized avatar

Christina Bergey bergeycm

View GitHub Profile
@andrewparkermorgan
andrewparkermorgan / gist:457106d6dd429332b59c
Last active March 28, 2019 13:05
Create haplotype bifurcation plot with rehh and ggplot2
#' Draw a haplotype bifurcation diagram
#'
#' @param hh an object of class `haplohh` (from rehh package)
#' @param focal genomic position of the focal site
#' @param left extend haplotypes this many (variant) sites to the left of the focal site
#' @param right extend haplotypes this many (variant) sites to the right of the focal site
#' @param palette name of an RColorBrewer palette used for colors
#' @param reverse logical; if `TRUE`, put derived allele in upper panel
#' @param relabel a named list to use for re-labelling panels; default labels are 'ancestral' and 'derived'
#' @param ... other arguments passed through to rehh::bifurcation.diagram()
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git