-
Notifications
You must be signed in to change notification settings - Fork 13
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
New API based on MyChem drugcentral.bioactivity
data
#101
Comments
Related issue: biothings/biothings_explorer#316, JQ development work |
With jq implemented, exisiting API can be used with modifications to smartapi yaml. See this comment |
Note on the relationships in the resource:
|
More notes on "action_type" and targets:
|
Example of current MyChem structure vs association-based structure(basically repeating #100 (comment) using an example from this resource) expand here for the exampleBackgroundaripiprazole (CHEMBL1112) has multiple bioactivity entries with different categories (action_types). I'll give two of them as examples:
In MyChemthese two bioactivity entries are nested inside the drugcentral.bioactivity field of the MyChem record for this chemical: https://mychem.info/v1/chem/60795?fields=drugcentral. This means BTE post-processing (JQ?) is needed to retrieve only the
association-based structureHowever, if we use an association-based structure, we can make two separate records. And these two records can be retrieved separately depending on what association.action_type is set to when querying.
|
At the moment, creating a new API is not necessary. Using MyChem's new list_filter function (discussed here biothings/api-respone-transform.js#38 (comment)), I can write operations in the chem -> gene direction that are more specific (however not all records are covered). Andrew decided that this was fine to try out. I therefore moved this issue to "on-hold" The edits to the SmartAPI yamls are
for biolink 2.4.8 (currently on test/prod instances): |
Closing. If we notice an issue with this (not able to retrieve some desired info in the chem -> gene direction, want to be able to use more specific predicates in the gene -> chem direction), we'll reopen. |
two issues encountered when trying to write operations:
|
Related to biothings/biothings_explorer#532 (comment)
MyChem
drugcentral.bioactivity
data, in subject-association-object formataction_type
.The text was updated successfully, but these errors were encountered: