Пример #1
0
 def test_qc_warnings_2(self):
     # Large assembly size.
     warnings = get_qc_warnings(10000000, 250000, 'no', True)
     self.assertEqual(warnings, 'total_size')
Пример #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')
Пример #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, '-')
Пример #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')
Пример #5
0
 def test_qc_warnings_6(self):
     # Small N50.
     warnings = get_qc_warnings(5500000, 1000, 'no', True)
     self.assertEqual(warnings, 'N50')
Пример #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, '-')
Пример #7
0
 def test_qc_warnings_4(self):
     # Small assembly size.
     warnings = get_qc_warnings(2000000, 250000, 'no', True)
     self.assertEqual(warnings, 'total_size')
Пример #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, '-')