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