This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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([]) |