Example #1
0
 def test_align_clustal_3(self):
     # prepare alignment
     clustal_report = alignment.align_clustal(self.seq_file_3)
     self.assertIsNot(clustal_report['output'], '')
     self.assertIsNone(clustal_report['error'])
     # test aligned output
     aligned = AlignIO.read(open(self.aln_file_3), 'clustal')
     aln_length = aligned.get_alignment_length()
     self.assertIs(aln_length, 50)
Example #2
0
 def test_parse_clustal_idstars_3(self):
     alignment.align_clustal(self.seq_file_3)
     idntot = alignment.parse_clustal_idstars(self.aln_file_3)
     self.assertIs(idntot, 30)