Skip to content

Instantly share code, notes, and snippets.

View bryan-lunt's full-sized avatar

Bryan Lunt bryan-lunt

  • Department of Computer Science, UC San Diego
  • Urbana, Illinois
View GitHub Profile
@bryan-lunt
bryan-lunt / privatemodules
Last active January 4, 2016 01:19
A replacement for the "use.own" module that allows one to separate their private modules by cluster. The advantage of using this instead of just making a conditional "module use --append $CLUSTER_SPECIFIC_PATH" in your .profile is that you can turn this off and on with "module load privatemodules" and "module unload privatemodules" INSTALLATION:…
#%Module1.0#####################################################################
##
## privatemodules modulefile
##
## An alternative to use.own that lets you have a per-cluster private module directory,
## and automatically loads the appropriate one.
##
## Expects to be installed in ~/.privatemodules/base/privatemodules
##
proc ModulesHelp { } {
@bryan-lunt
bryan-lunt / gist:5695194
Created June 2, 2013 22:33
Patch to fix bad printf strings in jnet.c
diff --git a/src/jnet.c b/src/jnet.c
index e0cd13e..81df7a9 100644
--- a/src/jnet.c
+++ b/src/jnet.c
@@ -1144,7 +1144,7 @@ void dopred(alldata *data[],int count,int printsty)
if (nohmm == 1 && nopsi == 1){
- fprintf (stderr, "\nWARNING!: Only using the sequence alignment\n Accuracy will average 71.6%\n\n");
+ fprintf (stderr, "\nWARNING!: Only using the sequence alignment\n Accuracy will average 71.6%%\n\n");
#!/usr/bin/env python
'''
Created on Jan 18, 2013
@author: lunt
'''
import sys
import Bio.pairwise2 as PW
@bryan-lunt
bryan-lunt / matrixDisplay.py
Created September 12, 2012 20:07
Display A Matrix in Pylab, with custom tics.
'''
Created on Jun 1, 2012
@author: lunt
SOME CODE TAKEN FROM: http://stackoverflow.com/questions/3529666/matplotlib-matshow-labels
'''
import pylab
'''
Created on Jun 29, 2010
@author: lunt@ctbp.ucsd.edu
'''
from Bio.Seq import Seq
import Bio.PDB as PDB
import Bio.PDB.Polypeptide as PP
from itertools import izip, count