Example #1
0
def main():
    s, t = parse_fasta('problem_datasets/rosalind_gaff.txt', True)
    alignment = global_align_with_affine(s, t, BLOSUM62(), -11, -1)

    with open('output/rosalind_gaff_out.txt', 'w') as f:
        f.write('\n'.join(alignment))

    print('Maximum alignment score =', alignment[0])
Example #2
0
def main():
    s, t = parse_fasta('problem_datasets/rosalind_gcon.txt')
    max_score = global_align(s, t, BLOSUM62(), -5)

    print(max_score)