Skip to content

Instantly share code, notes, and snippets.

View liyu95's full-sized avatar

Yu Li liyu95

View GitHub Profile
@liyu95
liyu95 / seqalignment.py
Created May 24, 2017 18:58 — forked from num3ric/seqalignment.py
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],