-
Notifications
You must be signed in to change notification settings - Fork 3
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
Reduce the number of used APIs (only api.geneontology.org) #114
Comments
Related: geneontology/go-site#1800 |
@dustine32 Will be looking at ways of capturing requests to api.geneontology.xyz, so we can contact users, understand use cases, and create a plan to deactivate this endpoint. |
Known users of api.geneontology.xyz (edit to add):
|
Tagging @kimrutherford and @dlrice as interested parties. |
Speaking for PomBase, our ideal is access the production models from Noctua as soon as they are marked as "production". We have gocam-viz configured to point to that API and we also access it programmatically a couple of times per week grab the genes and terms from the production models for storing in our database. If we could get access the models created by PomBase as JSON files that would be fine. We would serve those from pombase.org for gocam-viz. And we'd be able to read any data we need for adding to our database. Could a daily job pull production models for each group from the Noctua database and host them somewhere? Something like https://github.com/geneontology/noctua-models but with a sub-directory per group (PomBase/FlyBase, etc.) and files in JSON format could replace api.geneontology.xyz for us. It would also make the Noctua data very accessible for any other downstream user. |
@kimrutherford thank you for your feedback (and my apologies again for my unthoughtful words on slack). |
@kltm - I find no evidence of alliance using api.geneontology.xyz in their public codebase: https://github.com/search?q=org%3Aalliance-genome%20api.geneontology.xyz&type=code, but I do see I don't think Alliance is one of the users of |
I took a look through FlyBase repos: https://github.com/search?q=org%3AFlyBase+api.geneontology&type=code&p=2. They too use |
@sierra-moxon Are you including the This brings up an issue with determining the website source of calls to |
thanks @dustine32! |
This is a follow up on a comment by @kltm on slack. The sub-directory per group is just a suggestion. In a perfect world we'd like this we data updated daily-ish(*):
It makes sense for the two second endpoints to be the same so nothing gets out of sync. If there was an file or endpoint that allowed us to download all the PomBase production models as a single JSON blob, that would save a lot of API calls. (*) I'll let @ValWood comment on that. PomBase is updated daily so a daily snapshot of production models seems ideal from my point of view. We use the daily GO build already (https://ontology-build.geneontology.org) |
@kimrutherford I'm doing some experiments right now otherwise, but in an emergency, please note that the highest frequency JSON models that are currently officially offered are at: http://snapshot.geneontology.org/products/json/ . These are all models for all resources--essentially a transform of the GitHub TTL files to the JSON that drives the widget. |
@kimrutherford I don't want to commit to anything and I'm really just trying to scope out different approaches, but I was wondering grossly how close something like this might be to usable for PomBase? For the moment, at https://skyhook.geneontology.io/pipeline-raw-go-cam/main/products/json/ there is a metadata.json file that maps (Noting for myself that the new machine gains an hour on the current machine for this.) |
That looks great! That plan would work very well for us. |
Also tagging @sjm41 as having a possible interest with this conversation. |
Noting that the TTLs from production seem to be going in well. Fixing pipeline cron. |
Still experimenting, but the following is in place for conversation:
Noting that, pleasingly, the Runs currently take about 5-6 hours, with failures so far having to do with internal networking hiccups. As the machine that's being used in this case is slated for being the new pipeline machine, we'll have to see how these loads interact with each other moving forward. |
Noting a timezone issue, where the rendering happened before the transfer. Should be fixed later today; testing now. |
Thanks very much @kltm We've switched the PomBase dev server to use There is a small difference between the JSON from 56d1143000003353 from
|
@kimrutherford Thank you for the feedback there. If it looks like it's working for you over a few days, let's talk about next steps. The @balhoff The commands we are using are:
which would be minerva's "default" ontology, correct? It looks like production is using go-lego-reacto.owl. |
@kltm can you try also providing an ontology file using
|
From discussion today, @dustine32 will, when free, take a quick look if anything useful can be pulled from headers. After that, we'll just go for an announcement. |
@balhoff Unfortunately, even loading blazegraph-go-lego-reacto-neo.jnl, pulled off of the NEO build, I'm still not getting the |
Talking to @balhoff , there is a slight issue with the CLI arguments available. He'll be looking at this. |
@kimrutherford I heard that you'd be going live with GO-CAM in PomBase tomorrow. I wanted to confirm where you're getting your data and if it would be disrupting if we fixed to use the correct |
@kltm We're getting the data from
I don't think the fix will be a problem for us. We don't use those values in PomBase but perhaps the values are used by gocam-viz? |
An update after two weeks: It's all been working well for PomBase. We're happy with the current structure of the files at Thanks! |
Recently, we discovered that api.geneontology.xyz is still in used by Alliance pages to return whether or not there are GO-CAM models available for display with the pathway viewer. Since the work from @sierra-moxon , these endpoints are duplicated within the GO API at api.geneontology.org, which is what should be used for all such operations.
api.geneontology.org
correctly.The text was updated successfully, but these errors were encountered: