Esempio n. 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
Esempio n. 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
Esempio n. 3
0
def test_gff_line():
    line_gen = GFFNode.yield_nodes(GFF)
Esempio n. 4
0
def test_gff_all():
    for f in GFFNode.yield_nodes(GFF):
        pass
Esempio n. 5
0
def test_gff_line():
    line_gen = GFFNode.yield_nodes(GFF)
Esempio n. 6
0
def test_gff_all():
    for f in GFFNode.yield_nodes(GFF): pass