Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include more evidence information in CX2 output beyond ECO term #16

Open
pkalita-lbl opened this issue Oct 4, 2024 · 1 comment
Open
Assignees

Comments

@pkalita-lbl
Copy link
Contributor

Currently when edges are added to CX2 networks we add an evidence attribute to the edge. In the underlying GO-CAM model the edge represents an item from an Activity's causal_associations. That CausalAssociation has a list of EvidenceItems that we iterate over and pull out the term to produce a list of strings for the edge annotation:

if association.evidence:
edge_attributes["evidence"] = [e.term for e in association.evidence]

But those EvidenceItem instances have more than just a term that could be helpful to show. The question is how to translate the EvidenceItem instances into the basic types that CX2 supports.

@pkalita-lbl pkalita-lbl converted this from a draft issue Oct 4, 2024
@pkalita-lbl pkalita-lbl self-assigned this Oct 4, 2024
@pkalita-lbl
Copy link
Contributor Author

One suggestion from the NDEx team was to use an HTML string as an edge attribute. Since the HTML will be rendered, you can arbitrarily condense complex information into a single string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

1 participant