Exemple #1
0
def test_mtorc_transitive_closure():
    assert bio_ontology.partof('HGNC', hgnc_client.get_hgnc_id('RICTOR'),
                               'FPLX', 'mTORC2')
    assert not bio_ontology.partof('HGNC', hgnc_client.get_hgnc_id('RPTOR'),
                                   'FPLX', 'mTORC2')
Exemple #2
0
def test_partof_entity_not():
    assert not bio_ontology.partof('FPLX', 'HIF1', 'FPLX', 'HIF_alpha')
Exemple #3
0
def test_chebi_refinements():
    assert bio_ontology.partof('CHEBI', 'CHEBI:136692', 'CHEBI', 'CHEBI:365')
    assert not bio_ontology.partof('CHEBI', 'CHEBI:365', 'CHEBI',
                                   'CHEBI:136692')
Exemple #4
0
def test_partof_entity():
    assert bio_ontology.partof('FPLX', 'HIF_alpha', 'FPLX', 'HIF')