def _align_seqs(self, seq1, seq2, match=1, mismatch=2, gap_open=4, gap_extend=1): pw_aligner = aligner.make_pairwise_aligner( seq1, match=match, mismatch=mismatch, gap_open_penalty=gap_open, gap_extend_penalty=gap_extend) return pw_aligner.align(seq2)