Exemplo n.º 1
0
 def test_qc_warnings_2(self):
     # Large assembly size.
     warnings = get_qc_warnings(10000000, 250000, 'no', True)
     self.assertEqual(warnings, 'total_size')
Exemplo n.º 2
0
 def test_qc_warnings_8(self):
     # All three warnings.
     warnings = get_qc_warnings(2000000, 1000, 'yes (1000)', True)
     self.assertEqual(warnings, 'total_size,N50,ambiguous_bases')
Exemplo n.º 3
0
 def test_qc_warnings_1(self):
     # A perfectly nice assembly - yields no warnings.
     warnings = get_qc_warnings(5500000, 250000, 'no', True)
     self.assertEqual(warnings, '-')
Exemplo n.º 4
0
 def test_qc_warnings_7(self):
     # Has ambiguous bases
     warnings = get_qc_warnings(5500000, 250000, 'yes (50)', True)
     self.assertEqual(warnings, 'ambiguous_bases')
Exemplo n.º 5
0
 def test_qc_warnings_6(self):
     # Small N50.
     warnings = get_qc_warnings(5500000, 1000, 'no', True)
     self.assertEqual(warnings, 'N50')
Exemplo n.º 6
0
 def test_qc_warnings_5(self):
     # Small assembly size, but not KpSC so no warning.
     warnings = get_qc_warnings(2000000, 250000, 'no', False)
     self.assertEqual(warnings, '-')
Exemplo n.º 7
0
 def test_qc_warnings_4(self):
     # Small assembly size.
     warnings = get_qc_warnings(2000000, 250000, 'no', True)
     self.assertEqual(warnings, 'total_size')
Exemplo n.º 8
0
 def test_qc_warnings_3(self):
     # Large assembly size, but not KpSC so no warning.
     warnings = get_qc_warnings(10000000, 250000, 'no', False)
     self.assertEqual(warnings, '-')