Replies: 5 comments 2 replies
-
Hi @sierra-moxon, @kltm do you have any advice on the above question? Many thanks! |
Beta Was this translation helpful? Give feedback.
-
@dlrice Unfortunately, I think the short of this is that the GO API does not currently support this use case. While you can get models per ID, you cannot get models per group/resource. Depending on what you're trying to do, we have a project getting under way that may be of interest to you and covers some of this use case: geneontology/project-management#47 . We're hoping to have this exposed as part of the release process in the next few months. Finally, the easiest sanctioned way to get this information at this point in time (the .cloud site and related APIs are deprecated) would be to download the GPAD for your resource and extract the models individual annotations are derived from from the extensions column. |
Beta Was this translation helpful? Give feedback.
-
@dlrice Okay, I think I understand what you're trying to do here, but maybe I'm a little unclear on the exact flow. As we have on the Alliance gene pages, wouldn't a call to the GO API to get the models by ID be sufficient? Or are you trying to further filter the models returned to a smaller subset (i.e. exclusively "assigned by" UniProt)? Looking at the models represented in Given that, if 1) the filtering is required and 2) you only wanted to use remote APIs, then "yes", I think your flow is about the best way to accomplish something like that. @pgaudet Given this use case, perhaps we could consider adding this to the work that @sierra-moxon will be undertaking soon with the new models? I suspect we'll be running into more stuff like this heading forward. |
Beta Was this translation helpful? Give feedback.
-
@kltm Yes, exactly this.
I plan on advertising this link https://geneontology.cloud/browse/g:UniProt to users to browse more UniProt curated GO-CAMs. You mentioned earlier that this site is deprecated, is there a more up to date link I should use instead? |
Beta Was this translation helpful? Give feedback.
-
@dlrice Just checking on this smaller subset. Is the issue trying to get models for display to the curation group or for display on your pages of only UniProt-generated model, or is it a filter for model "quality" or some other property? Also: yes, that site and domain is being deprecated and generally does not see much use. We have a project to fold this functionality into AmiGO, but that is still getting under way, so there is no new link for that functionality at this point. |
Beta Was this translation helpful? Give feedback.
-
I am trying to find the API call to fetch the GO-CAM models curated by the UniProt group for a given UniProtKB accession. I see that it's possible to filter by group on the front end website:
https://geneontology.cloud/browse/g:UniProt
But how do I modify this request:
https://api.geneontology.org/api/gp/UniProtKB:P05067/models
to only include models which are curated by the UniProt group?
Beta Was this translation helpful? Give feedback.
All reactions