예제 #1
0
def test_gene_loading():
    g = session.query(KnownGene).limit(1).first()
    print g
    assert g

    c = session.query(CcdsGene).limit(1).first()
    print c
    assert c

    r = session.query(RefGene).limit(1).first()
    print r
    assert r
예제 #2
0
def test_gene_loading():
    g = session.query(KnownGene).limit(1).first()
    print g
    assert g

    c =  session.query(CcdsGene).limit(1).first()
    print c
    assert c

    r =  session.query(RefGene).limit(1).first()
    print r
    assert r
예제 #3
0
def test_chainself():
    link = session.query(ChainSelfLink).first()
    print link
    print link.chain
    testint = config.genome.interval(10905, 11067, chrom='chr1')

    print ChainSelf.for_interval(testint)
    for link in ChainSelfLink.for_interval(testint):

        print link
        print link.source.sequence, link.source
        print link.dest.sequence, link.dest
예제 #4
0
def test_chainself():
    link = session.query(ChainSelfLink).first()
    print link
    print link.chain
    testint = config.genome.interval(10905, 11067, chrom='chr1')

    print ChainSelf.for_interval(testint)
    for link in ChainSelfLink.for_interval(testint):

        print link
        print link.source.sequence, link.source
        print link.dest.sequence, link.dest
예제 #5
0
 def get_snp(name):
     return session.query(CommonSnp).filter(CommonSnp.name == name).first()
예제 #6
0
def test_snp_loading():
    g = session.query(KnownGene).limit(1).first()
    assert len(Snp.for_interval(g.transcript))
예제 #7
0
    def get_snp(name):return session.query(CommonSnp).filter(CommonSnp.name==name).first()

    #### normal snp in + orientation
    snp  = get_snp('rs117577454')
예제 #8
0
def test_snp_loading():
    g = session.query(KnownGene).limit(1).first()
    assert len(Snp.for_interval(g.transcript))