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

pybel.tokens.parse_result_to_dsl doesn't capture 'concept' information #464

Closed
amanchoudhri opened this issue Aug 14, 2020 · 0 comments · Fixed by #465
Closed

pybel.tokens.parse_result_to_dsl doesn't capture 'concept' information #464

amanchoudhri opened this issue Aug 14, 2020 · 0 comments · Fixed by #465

Comments

@amanchoudhri
Copy link
Collaborator

Current behavior

When passing a pybel Entity to parse_result_to_dsl(), the 'concept' entries don't get mapped to a corresponding 'entity' parameter in the returned node. For example, when passing {'function': 'Complex', 'members': [{}, {}], 'concept': {'namespace': 'hgnc', 'name': 'ca'}} to the function, the BEL complex returned has an entity value of None, as shown in the following image.

image

Expected behavior

Expected the function to return an entity value consistent with the node schema defined in the schema sub-module.

cthoyt added a commit that referenced this issue Aug 14, 2020
cthoyt added a commit that referenced this issue Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant