Skip to content

Instantly share code, notes, and snippets.

View ngcrawford's full-sized avatar

Nick Crawford ngcrawford

View GitHub Profile
anonymous
anonymous / PyMC_tutorial.py
Created December 30, 2012 18:27
Conversion of the tutorial code example in PyMC to an ipython notebook
{
"metadata": {
"name": "PyMC Example"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@brantfaircloth
brantfaircloth / mpi_file_passing.py
Created April 13, 2012 19:43
mpi4py "file-passing" scatter/gather example
import os
import tempfile
from mpi4py import MPI
comm = MPI.COMM_WORLD
size = comm.Get_size()
rank = comm.Get_rank()
mode = MPI.MODE_RDONLY
@ngcrawford
ngcrawford / interleave_fastq.py
Last active March 8, 2021 19:15
Interleave paired end fastq files
#!/usr/bin/env python
# encoding: utf-8
import sys
import argparse
def interface():
parser = argparse.ArgumentParser()
parser.add_argument('--rm-short-reads',
@huyng
huyng / matplotlibrc
Created February 8, 2011 15:50
my default matplotlib settings
### MATPLOTLIBRC FORMAT
# This is a sample matplotlib configuration file - you can find a copy
# of it on your system in
# site-packages/matplotlib/mpl-data/matplotlibrc. If you edit it
# there, please note that it will be overridden in your next install.
# If you want to keep a permanent local copy that will not be
# over-written, place it in HOME/.matplotlib/matplotlibrc (unix/linux
# like systems) and C:\Documents and Settings\yourname\.matplotlib
# (win32 systems).