Ejemplo n.º 1
0
def test_splices():
    t = Transfrag(chrom='chrTest',
                  strand=Strand.POS,
                  exons=[Exon(0, 10), Exon(20, 30),
                         Exon(40, 50)])
    splice_sites = frozenset(t.itersplices())
    assert len(splice_sites) == 4
    assert splice_sites == frozenset((10, 20, 30, 40))
Ejemplo n.º 2
0
def test_splices():
    t = Transfrag(chrom='chrTest', strand=Strand.POS,
                  exons=[Exon(0, 10), Exon(20, 30), Exon(40, 50)])
    splice_sites = frozenset(t.itersplices())
    assert len(splice_sites) == 4
    assert splice_sites == frozenset((10, 20, 30, 40))