Пример #1
0
 def test_bgzf(self):
     with File._open_for_random_access(
             "Quality/example.fastq.bgz") as handle:
         self.assertIsInstance(handle, bgzf.BgzfReader)
Пример #2
0
 def test_plain(self):
     with File._open_for_random_access("Quality/example.fastq") as handle:
         self.assertTrue("r" in handle.mode)
         self.assertTrue("b" in handle.mode)
Пример #3
0
 def test_plain(self):
     with File._open_for_random_access("Quality/example.fastq") as handle:
         self.assertTrue("r" in handle.mode)
         self.assertTrue("b" in handle.mode)
Пример #4
0
 def test_bgzf(self):
     with File._open_for_random_access("Quality/example.fastq.bgz") as handle:
         self.assertIsInstance(handle, bgzf.BgzfReader)
Пример #5
0
 def test_plain(self):
     """Test plain text file."""
     with File._open_for_random_access("Quality/example.fastq") as handle:
         self.assertIn("r", handle.mode)
         self.assertIn("b", handle.mode)