Comments (24)
OK, everything should now work out the box.
Examples:
http://localhost:8888/api/bioentity/gene/TAIR%3Alocus%3A2155869/function/?fetch_objects=true&rows=20
from biolink-api.
Hi @elserj we want to use this for an upcoming meeting at the end of the month - can we get this service up?
from biolink-api.
Might have a couple of issues. I cloned it to our server and tried running it. Looks like gunicorn is missing. Problem is that this is a service and I will have to get approval from sysadmin on this. Probably will, but it could take some time. I'm also going on vacation next week, but can get back to it after.
from biolink-api.
from biolink-api.
Sorry about that, this fixes it e77a20e
you had gunicorn, it just wasn't in your path (we're using pyvenv, which places everything you need in a venv
folder)
from biolink-api.
That didn't actually fix my issue, but looking a bit closer at it, it was failing on installing scipy in pyvenv. Had to do
sudo yum install lapack-devel blas-devel
as they weren't installed. The non-devel packages were, but I guess it needed the devel to build. Once I did that I ran start-server.sh and it took about 15 minutes or so, but it did then start. I get responses from your examples above.
I'm waiting for the sysadmin to create the CName for biolink.planteome.org as I don't have permissions to do that. I already got permission to start the systemd service, so should be good there. Once the CName is done, I will let you know.
from biolink-api.
from biolink-api.
I think everything is working now:
http://biolink.planteome.org/api/bioentity/gene/GR_gene%3AGR%3A0060769/phenotypes/?fetch_objects=true&rows=20
Let me know if you find any issues.
from biolink-api.
@elserj It is close. I think that their might be CORS issues. When I go to this:
http://biolink.planteome.org/api/
Can't read from server. It may not have the appropriate access-control-origin settings.
There is an errored out connection when it tries to retrieve this file:
http://localhost:8888/api/swagger.json
When you do the same thing with Monarch you get:
https://api.monarchinitiative.org/api/swagger.json
from biolink-api.
But the initial link you sent worked.
from biolink-api.
@kltm / @cmungall / @kshefchek Was there a trick to getting swagger installed and made public?
Looks like the underlying service is working great.
from biolink-api.
Sorry for the delay, took quite some time figure out how to fix this. Probably longer than it should have, but it seems to be fine now.
Enabling CORS alone didn't seem to fix it. Finally started working once I added:
ProxyPreserveHost on
to the Apache vhost config.
Let me know if you find any more issues.
from biolink-api.
@elserj This is great.
Question (for @cmungall as well).
Should I expect the same set of implementation as with monarch?
Also, for now do we not handle trait, QTL, etc. or are they mapped to something else?
Thanks!
from biolink-api.
It looks like most of these are conserved. I'll try to finish this off shortly and let you know what the mappings are or if I run into any troubles.
from biolink-api.
BTW, @elserj / @cmungall I'm updating the examples (I need to to build tests). You may want to do the same thing in your own swagger:
https://github.com/nathandunn/biolink-planteome
from biolink-api.
These are the ones not working so far. Of course it is possible we don't have the data or they just simply don't make sense:
- all (working) examples need to be updated to include plant-specific examples
- 500 error: http://biolink.planteome.org/api/#!/bioentity/get_gene_homolog_associations
- 500 error: http://biolink.planteome.org/api/#!/bioentity/get_gene_interactions
- Gene / disease associations seems to return go terms from biological process. Maybe these are correct?
- Phenotype to gene returns only null fields
- Genotype mapped to gene.
- Phenotypes seem to have empty mappings. I would expect them to be mapped to the trait ontology, but maybe there is a better solution.
- no hits coming out of "search" operation
- "substance" relies on CHEBI, which we don't have loaded. That is fine. Just need to know if it is mapped to something else.
- are variants mapped to anything? I tried QTL's, but maybe there is another designation?
- there seems to be a load problem with bioentity-association and bulk-operations (http://biolink.planteome.org/api/bioentity/EnsemblPlants:GRMZM2G061969_T01/associations/?rows=20&fetch_objects=true) . When I run it individually it is fine, but as part of a test suite, it chokes with this error:
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
+<html><head>
+<title>502 Proxy Error</title>
+</head><body>
+<h1>Proxy Error</h1>
+<p>The proxy server received an invalid
+response from an upstream server.<br />
+The proxy server could not handle the request <em><a href="/api/bioentity/EnsemblPlants:GRMZM2G061969_T01/associations/">GET /api/bioentity/EnsemblPlants:GRMZM2G061969_T01/associations/</a></em>.<p>
+Reason: <strong>Error reading from remote server</strong></p></p>
+</body></html>
from biolink-api.
What is the equivalent genotype? My guess is that they may not be represented, which is fine.
from biolink-api.
Looks like genotype maps to gene. I'll note above.
from biolink-api.
So, overall (I gave a few instances) the server is pretty fragile. If I run the same set of test suites over it, I get different 502 errors each time (though they are always fine if I run them individually).
Anyway, not sure if that is something that could be solved this week, but its definitely worth doing.
from biolink-api.
Yes, we need to switch off endpoints that planteome-solr cannot answer.
We should have at least gene-function(GO), gene-anatomy(expr), germplasm-trait (should be mapped to genotype)
When I run it individually it is fine, but as part of a test suite, it chokes with this error
weird
thanks for the testing
from biolink-api.
from biolink-api.
mapping: https://github.com/Planteome/biolink-api/blob/master/conf/config.yaml#L22-L28
from biolink-api.
from biolink-api.
-
Almost all "fetch X for ID" return 500 errors. Gene, phenotye, anatomy, etc.
-
Anatomy subclasses return null property value results including for sub-classes that we have confirmed gene (or phenotype) associations: http://biolink.planteome.org/api/bioentity/anatomy/PO%3A0025131/genes/?rows=20&fetch_objects=true (returns null property results)
Same for phenotypes and environment.
from biolink-api.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biolink-api.