Skip to content

Instantly share code, notes, and snippets.

View ngcrawford's full-sized avatar

Nick Crawford ngcrawford

View GitHub Profile
@ngcrawford
ngcrawford / base_percentages_from_bam.py
Last active December 24, 2015 12:19
Simple script to calculate base percentages from a BAM file.
import pysam
import argparse
from collections import Counter
def get_args():
"""Parse sys.argv"""
parser = argparse.ArgumentParser()
parser.add_argument('--bam',
required=True,
"""""""""""""""""VIMRC"""""""""""""""
""" Nick Crawford (mod from Ben Pote)
"""Last updated 5.28.14
"""""""""""""""""""""""""""""""""""""
""""""Vundle!
set nocompatible " be iMproved, required
filetype off " required