Exemplo n.º 1
0
 def test_bgzf(self):
     with File._open_for_random_access(
             "Quality/example.fastq.bgz") as handle:
         self.assertIsInstance(handle, bgzf.BgzfReader)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
 def test_bgzf(self):
     with File._open_for_random_access("Quality/example.fastq.bgz") as handle:
         self.assertIsInstance(handle, bgzf.BgzfReader)
Exemplo n.º 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)