src/etl/gene_descriptions_etl.py
def add_neo_term_to_ontobio_ontology_if_not_exists(term_id, term_label,
                                                       term_type, is_obsolete, ontology):
        """Add NEO Term to Ontobio Ontology If Not Exists."""
        if not ontology.has_node(term_id) and term_label:
            if is_obsolete in ["true", "True"]:
                meta = {"deprecated": True, "basicPropertyValues": [
                    {"pred": "OIO:hasOBONamespace", "val": term_type}]}
            else:
                meta = {"basicPropertyValues": [
                    {"pred": "OIO:hasOBONamespace", "val": term_type}]}
            ontology.add_node(id=term_id, label=term_label, meta=meta)
Add NEO Term to Ontobio Ontology If Not Exists.
Add NEO Term to Ontobio Ontology If Not Exists.
Add NEO Term to Ontobio Ontology If Not Exists .
def add_neo_term_to_ontobio_ontology_if_not_exists(term_id, term_label,
                                                       term_type, is_obsolete, ontology):
        if not ontology.has_node(term_id) and term_label:
            if is_obsolete in ["true", "True"]:
                meta = {"deprecated": True, "basicPropertyValues": [
                    {"pred": "OIO:hasOBONamespace", "val": term_type}]}
            else:
                meta = {"basicPropertyValues": [
                    {"pred": "OIO:hasOBONamespace", "val": term_type}]}
            ontology.add_node(id=term_id, label=term_label, meta=meta)
def add_neo_term_to_ontobio_ontology_if_not_exists ( term_id , term_label , term_type , is_obsolete , ontology ) : if not ontology . has_node ( term_id ) and term_label : if is_obsolete in [ "true" , "True" ] : meta = { "deprecated" : True , "basicPropertyValues" : [ { "pred" : "OIO:hasOBONamespace" , "val" : term_type } ] } else : meta = { "basicPropertyValues" : [ { "pred" : "OIO:hasOBONamespace" , "val" : term_type } ] } ontology . add_node ( id = term_id , label = term_label , meta = meta )
Add NEO Term to Ontobio Ontology If Not Exists.
Add NEO Term to Ontobio Ontology If Not Exists .
"""Add NEO Term to Ontobio Ontology If Not Exists."""
term_id
term_label
term_type
is_obsolete
ontology