File: test_pbcore_io_BasH5Collection.py

package info (click to toggle)
python-pbcore 1.2.11%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,612 kB
  • ctags: 5,336
  • sloc: python: 22,160; xml: 2,667; makefile: 239
file content (28 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from nose.tools import assert_equal, assert_true, assert_false
from numpy.testing import assert_array_equal
from StringIO import StringIO

from pbcore.io import BasH5Collection
from pbcore import data

def lookupSomeReadsByName(bc):
    pass

def test():
    for fofn in data.getFofns():
        bc = BasH5Collection(fofn)

        for zmw in bc:
            zmwAgain = bc[zmw.zmwName]
            assert_equal(zmw.zmwName, zmwAgain.zmwName)



def test_read_iterators():
    for fofn in data.getFofns():
        bc = BasH5Collection(fofn)

        # TODO Add some meaningful tests here
        list(bc.subreads())
        list(bc.reads())
        list(bc.ccsReads())