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')
def test_partof_entity_not(): assert not bio_ontology.partof('FPLX', 'HIF1', 'FPLX', 'HIF_alpha')
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')
def test_partof_entity(): assert bio_ontology.partof('FPLX', 'HIF_alpha', 'FPLX', 'HIF')