Skip to content

Instantly share code, notes, and snippets.

View dereneaton's full-sized avatar

Deren Eaton dereneaton

View GitHub Profile
@dereneaton
dereneaton / R-amova.ipynb
Created September 5, 2017 15:17
R-amova-tutorial
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dereneaton
dereneaton / install_bpp_conda.sh
Last active September 12, 2018 17:25
Install bpp 3.3 into your conda dir
## save our current directory so we can return to it
CURDIR=$(pwd)
## find the path to our conda bin dir (this _should_ be in our PATH)
CONDADIR=$(which conda)
CONDABIN=$(dirname $CONDADIR)
CONDAPKG=$(dirname $CONDABIN)/pkgs
## download bpp source into the conda pkgs dir
cd $CONDAPKG/
@dereneaton
dereneaton / PE-GBS_empirical.ipynb
Last active April 16, 2018 21:04
** PERMALINKED **
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dereneaton
dereneaton / install_clumpp_conda.sh
Created February 13, 2017 23:29
Install clumpp v1.1.2 binary into your conda dir
## save our current directory so we can return to it
CURDIR=$(pwd)
## find the path to our conda bin dir (this _should_ be in our PATH)
CONDADIR=$(which conda)
CONDABIN=$(dirname $CONDADIR)
CONDAPKG=$(dirname $CONDABIN)/pkgs
## download linux CLUMPP into the conda pkgs dir
cd $CONDAPKG/
@dereneaton
dereneaton / install_structure_conda.sh
Last active February 13, 2017 23:26
installs structure 2.3.4. into your conda dir
## save our current directory so we can return to it
CURDIR=$(pwd)
## find the path to our conda bin dir (this _should_ be in our PATH)
CONDADIR=$(which conda)
CONDABIN=$(dirname $CONDADIR)
CONDAPKG=$(dirname $CONDABIN)/pkgs
## download linux no-console version into the conda pkgs dir
cd $CONDAPKG/
## save our current directory so we can return to it
CURDIR=$(pwd)
## find the path to our conda bin dir (this _should_ be in our PATH)
CONDADIR=$(which conda)
CONDABIN=$(dirname $CONDADIR)
CONDAPKG=$(dirname $CONDABIN)/pkgs
## download bpp source into the conda pkgs dir
cd $CONDAPKG/
@dereneaton
dereneaton / install_ibpp.sh
Last active December 3, 2016 18:46
Download and install iBPP (v.2.1) into ~/local/src/iBPP/src
## save our current directory so we can come back here when we're done
WORKDIR=$(pwd)
## To install local software I keep a directory in my home dir called 'local/'
## the command below will make this dir if it does not already exist.
mkdir -p ~/local/src/
## move into your local/src directory
cd ~/local/src
@dereneaton
dereneaton / install_bpp.sh
Last active December 3, 2016 18:45
Download and install bpp (v.3.3) locally (into ~/local/src/bpp/src)
## save our current directory so we can come back here when we're done
WORKDIR=$(pwd)
## To install local software I keep a directory in my home dir called 'local/'
## the command below will make this dir if it does not already exist.
mkdir -p ~/local/src/
## move into your local/src directory
cd ~/local/src
#!/bin/bash
## reload .bashrc b/c I'm not sure it's reloaded on UW's Condor
source /mnt/gluster/jlmcdaniel/.bashrc
## change into the directory with your params file
cd /mnt/gluster/jlmcdaniel/ipyrad/porroglossum
## call ipyrad to run some step, by default it will use all available cores
@dereneaton
dereneaton / gist:7031947
Created October 17, 2013 20:48
PyRAD manuscript supplemental materials notebook
{
"metadata": {
"name": "PyRAD_STACKS"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{