Пример #1
0
def test_gff_node():

    node_gen = GFFNode.yield_nodes(GFF)
    n = node_gen.next()
    assert len(n.nodes) == 0

    n = node_gen.next()
    assert n.parent.start == 3631, n.parent
    assert len(list(n.nodes)) == 12, list(n.nodes)

    n = node_gen.next()
    assert n.parent.attrs["ID"] == "thaliana_1_6160_6269", n.parent

    n = node_gen.next()
    assert n.parent.end == 8737, n.parent
Пример #2
0
def test_gff_node():

    node_gen = GFFNode.yield_nodes(GFF)
    n = node_gen.next()
    assert len(n.nodes) == 0

    n = node_gen.next()
    assert n.parent.start == 3631, n.parent
    assert len(list(n.nodes)) == 12, list(n.nodes)

    n = node_gen.next()
    assert n.parent.attrs["ID"] == "thaliana_1_6160_6269", n.parent

    n = node_gen.next()
    assert n.parent.end == 8737, n.parent
Пример #3
0
def test_gff_line():
    line_gen = GFFNode.yield_nodes(GFF)
Пример #4
0
def test_gff_all():
    for f in GFFNode.yield_nodes(GFF):
        pass
Пример #5
0
def test_gff_line():
    line_gen = GFFNode.yield_nodes(GFF)
Пример #6
0
def test_gff_all():
    for f in GFFNode.yield_nodes(GFF): pass