Esempio n. 1
0
def test_describe_get_tissue_expression_unknown():
    """Check that an unknown gene raises an error from get_tissue_expression."""
    gene_name = 'foo'
    desc = describe.Describer(identifier='symbol')
    try:
        expression = desc.get_tissue_expression(gene_name)
    except KeyError:
        return
    assert False
Esempio n. 2
0
def test_describe_construct():
    """Try to construct a Describer object."""
    desc = describe.Describer(identifier='symbol')
    desc.close()
Esempio n. 3
0
def test_describe_get_gene_info():
    """Try to get name and GO info for a given gene."""
    gene_name = 'TP53'
    desc = describe.Describer(identifier='symbol')
    gene_info = desc.get_gene_info(gene_name)
Esempio n. 4
0
def test_describe_get_tissue_expression():
    """Try to get the tissue expression statistics for a given gene."""
    gene_name = 'TP53'
    desc = describe.Describer(identifier='symbol')
    expression = desc.get_tissue_expression(gene_name)