Esempio n. 1
0
def test_populate_genes(connection, genes):
    populate_genes(
        connection=connection, 
        genes=genes, 
    )

    cursor = get_cursor(connection=connection)
    
    cursor.execute("SELECT * from gene where ensembl_id = 'ENSG00000070814'")

    for row in cursor.fetchmany():
        assert row['hgnc_symbol'] == "TCOF1"
Esempio n. 2
0
def test_populate_genes(connection, genes):
    populate_genes(
        connection=connection,
        genes=genes,
    )

    cursor = get_cursor(connection=connection)

    cursor.execute("SELECT * from gene where ensembl_id = 'ENSG00000070814'")

    for row in cursor.fetchmany():
        assert row['hgnc_symbol'] == "TCOF1"
Esempio n. 3
0
def database(request, connection, hpo_terms, mim_terms, genes):
    """Return a populated database"""
    
    populate_hpo(
        connection=connection, 
        hpo_terms=hpo_terms, 
    )
    
    populate_disease(
        connection=connection, 
        disease_terms=mim_terms
    )    

    populate_genes(
        connection=connection, 
        genes=genes
    )    

    return connection