Example #1
0
 def test_partial(self):
     result = transform.min_ungap_length_discard(self.sequences, 4)
     self.assertEqual([self.sequences[1], self.sequences[3]], list(result))
Example #2
0
 def test_none_pass(self):
     result = list(transform.min_ungap_length_discard(self.sequences, 8))
     self.assertEqual([], result)
Example #3
0
 def test_all_pass(self):
     result = list(transform.min_ungap_length_discard(self.sequences, 0))
     self.assertEqual(self.sequences, result)
Example #4
0
 def test_partial(self):
     result = transform.min_ungap_length_discard(self.sequences, 4)
     self.assertEqual([self.sequences[1], self.sequences[3]], list(result))
Example #5
0
 def test_all_pass(self):
     result = list(transform.min_ungap_length_discard(self.sequences, 0))
     self.assertEqual(self.sequences, result)
Example #6
0
 def test_none_pass(self):
     result = list(transform.min_ungap_length_discard(self.sequences, 8))
     self.assertEqual([], result)
Example #7
0
 def test_partial(self):
     result = transform.min_ungap_length_discard(self.sequences, 4)
     self.assertEqual(
         [self.sequences[1].seq, self.sequences[3].seq],
         [seq.seq for seq in result])
Example #8
0
 def test_partial(self):
     result = transform.min_ungap_length_discard(self.sequences, 4)
     self.assertEqual([self.sequences[1].seq, self.sequences[3].seq],
                      [seq.seq for seq in result])