Exemple #1
0
 def test_remove_gaps_double_nested(self):
     genes = 'gene_a or (- or (- or gene_b))'
     self.assertEqual(psammotate.remove_gap(genes), 'gene_a or ((gene_b))')
Exemple #2
0
 def test_remove_gaps_and_missing_nested(self):
     genes = 'gene_a and (- or -)'
     self.assertEqual(psammotate.remove_gap(genes), 'gene_a and -')
Exemple #3
0
 def test_remove_gaps_and(self):
     genes = 'gene_a and gene_b'
     self.assertEqual(psammotate.remove_gap(genes), 'gene_a and gene_b')
Exemple #4
0
 def test_remove_gaps_or_missing_nested(self):
     genes = 'gene_a or (- or -)'
     self.assertEqual(psammotate.remove_gap(genes), 'gene_a')
Exemple #5
0
 def test_remove_gaps_single(self):
     genes = 'gene_a'
     self.assertEqual(psammotate.remove_gap(genes), 'gene_a')