-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add Count of INDRA Statements for Individual Terms #10
Comments
The harder challenge: Only return back statements from specific source_apis (e.g., reach). Like this one:
I converted the statements to_json with 'from indra.statements.statements import stmts_to_json'. We might try to submit a PR related to this. |
You might want to message INDRA team to see if they have this already somewhere; some function to filter statements based on some properties; it should be a pretty independent function. I have tackled similar challenges with jsonpath (https://github.com/h2non/jsonpath-ng) not sure if it will work here. You might want to mention this as well; INDRA might not want the extra dependency. Example code:
|
This JSONPath expression retrieves what I'd like:
|
Hi Mentor This is also implemented in the INDRA REST API ,documented at http://api.indra.bio:8000/, under the "Preassembly" heading. |
Add another column INDRA_QUERY_TERM_STATEMENT_COUNT, use the following example code:
The text was updated successfully, but these errors were encountered: