Skip to content

Instantly share code, notes, and snippets.

View cfriedline's full-sized avatar

Chris Friedline cfriedline

View GitHub Profile

Keybase proof

I hereby claim:

  • I am cfriedline on github.
  • I am cfriedline (https://keybase.io/cfriedline) on keybase.
  • I have a public key whose fingerprint is 8B92 BFB7 6CF4 A9CC EA1E 3CDB 5264 26F1 AA63 7684

To claim this, I am signing this object:

.react-grid-Container {
box-sizing: border-box;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
padding: 0;
margin: 0;
}
.react-grid-Container *, :before, :after {
box-sizing: border-box;
@cfriedline
cfriedline / csv_to_shp.ipynb
Last active August 16, 2016 17:19
csv_to_shp.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfriedline
cfriedline / RefMapOpt.diff
Last active August 2, 2016 17:26
RefMapOpt.sh changes for SE
diff --git a/RefMapOpt.sh.1 b/RefMapOpt.sh
index 47f8f02..ce0e168 100644
--- a/RefMapOpt.sh.1
+++ b/RefMapOpt.sh
@@ -11,9 +11,9 @@ if find ${PATH//:/ } -maxdepth 1 -name trimmomatic*jar 2> /dev/null| grep -q 'tr
echo "The dependency trimmomatic is not installed or is not in your" '$PATH'"."
NUMDEP=$((NUMDEP + 1))
fi
-
-if find ${PATH//:/ } -maxdepth 1 -name TruSeq2-PE.fa 2> /dev/null | grep -q 'Tru' ; then

Keybase proof

I hereby claim:

  • I am cfriedline on github.
  • I am cfriedline (https://keybase.io/cfriedline) on keybase.
  • I have a public key whose fingerprint is 3C2C 239D 0900 DDD4 A400 947B 30AF D124 9085 9AFF

To claim this, I am signing this object:

@cfriedline
cfriedline / 2to3_nb.py
Created December 18, 2015 00:25 — forked from takluyver/2to3_nb.py
Run 2to3 on IPython notebooks
#!/usr/bin/env python3
"""
To run: python3 nb2to3.py notebook-or-directory
"""
# Authors: Thomas Kluyver, Fernando Perez
# See: https://gist.github.com/takluyver/c8839593c615bb2f6e80
import argparse
import pathlib
from nbformat import read, write
@cfriedline
cfriedline / error.txt
Created August 14, 2015 15:05
ipython module error using "!" (e.g., !ls)
/bin/sh: module: line 1: syntax error: unexpected end of file
/bin/sh: error importing function definition for `module'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cfriedline
cfriedline / r_configure.sh
Created May 21, 2015 16:04
install R on godel
./configure --prefix=/home/cfriedline/g/R3 \
--enable-R-shlib \
--without-x \
--with-blas='lf77blas -latlas' \
--with-tcltk \
--with-tk-config=/home/cfriedline/lib/tkConfig.sh \
--with-tcl-config=/home/cfriedline/lib/tclConfig.sh \
CPPFLAGS="-I$HOME/include" LDFLAGS="-L$HOME/include"
get_varcomp = function(x) {
library(hierfstat)
loci = data.frame(x)
res <- varcomp(cbind(levels, loci),diploid=T)$overall
}
finish_varcomp = function(m) {
tot <- apply(m, 2, sum, na.rm = TRUE)
nblevels <- length(tot)
f <- matrix(rep(0, (nblevels - 1)^2), ncol = (nblevels -