Skip to content

Instantly share code, notes, and snippets.

View mbrockman1's full-sized avatar
💭
Confused

Michael mbrockman1

💭
Confused
  • The Ohio State University
View GitHub Profile
@num3ric
num3ric / seqalignment.py
Created September 16, 2011 18:26
Sequence alignment - Dynamic programming algorithm
#!/usr/bin/python -O
import numpy as np
from numpy import array
A, C, G, T = 0, 1, 2, 3
int_to_char = {0:'A', 1:'C', 2:'G', 3:'T'}
#indel = -1
#scoring = array([[1,-1,-1,-1],
#[-1,1,-1,-1],