Skip to content

in ARAX, in the KG, handle case of attribute_source being null #2707

@saramsey

Description

@saramsey

This issue is motivated by #2702

Sometimes a KP returns an edge to ARAX expand that has an edge attribute with attribute_source: null, like this:

            {
              "attribute_source": null,
              "attribute_type_id": "biolink:Attribute",
              "attributes": null,
              "description": null,
              "original_attribute_name": "hetio_source",
              "value": [
                "DrugBank (enzyme)"
              ],
              "value_type_id": null,
              "value_url": null
            }

In that case, ARAX should just put, in place of null, in the edge attribute's attribute_source slot, the infores for the KP (e.g., infores:automat-hetionet or whatever).

Furthermore, ARAX-Overlay's NGD module (compute_ngd.py) adds a bunch of edge attributes, and these should have their attribute_source set to infores:arax (per discussion on Slack).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions