def is_human_protein(bio_ontology, node): if bio_ontology.get_ns(node) in {'HGNC', 'FPLX'}: return True elif bio_ontology.get_ns(node) == 'UP' and \ uniprot_client.is_human(bio_ontology.get_id(node)): return True return False
def is_human_protein(bio_ontology, node): """Return True if the given ontology node is a human protein.""" if bio_ontology.get_ns(node) == 'HGNC': return True elif bio_ontology.get_ns(node) == 'UP' and \ uniprot_client.is_human(bio_ontology.get_id(node)): return True return False
def is_non_human_protein(bio_ontology, node): if bio_ontology.get_ns(node) == 'UP' and \ not uniprot_client.is_human(bio_ontology.get_id(node)): return True return False