Skip to content

Instantly share code, notes, and snippets.

View aziele's full-sized avatar

Andrzej Zielezinski aziele

View GitHub Profile
# This module is for handling BLAST output lists (in -outfmt 6/ -m8 format).
from itertools import groupby
class Hsp:
"""Store information about single HSP in an alignment hit.
Members:
qid Query Id
sid Subject Id
#This software is a free software. Thus, it is licensed under GNU General Public License.
#Python implementation to Smith-Waterman Algorithm for Homework 1 of Bioinformatics class.
#Forrest Bao, Sept. 26 <http://fsbao.net> <forrest.bao aT gmail.com>
# zeros() was origianlly from NumPy.
# This version is implemented by alevchuk 2011-04-10
def zeros(shape):
retval = []
for x in range(shape[0]):
retval.append([])