Giter Site home page Giter Site logo

Comments (24)

cmungall avatar cmungall commented on August 20, 2024

OK, everything should now work out the box.

Examples:

http://localhost:8888/api/bioentity/gene/GR_gene%3AGR%3A0060769/phenotypes/?fetch_objects=true&rows=20

http://localhost:8888/api/bioentity/gene/TAIR%3Alocus%3A2155869/function/?fetch_objects=true&rows=20

http://localhost:8888/api/bioentity/gene/TAIR%3Alocus%3A2155869/expressed/?fetch_objects=true&rows=20

from biolink-api.

cmungall avatar cmungall commented on August 20, 2024

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.

elserj avatar elserj commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

from biolink-api.

cmungall avatar cmungall commented on August 20, 2024

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.

elserj avatar elserj commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

from biolink-api.

elserj avatar elserj commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

@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.

nathandunn avatar nathandunn commented on August 20, 2024

But the initial link you sent worked.

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024

@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.

elserj avatar elserj commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

@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.

nathandunn avatar nathandunn commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

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:

+<!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&nbsp;/api/bioentity/EnsemblPlants:GRMZM2G061969_T01/associations/</a></em>.<p>
+Reason: <strong>Error reading from remote server</strong></p></p>
+</body></html>

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024

What is the equivalent genotype? My guess is that they may not be represented, which is fine.

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024

Looks like genotype maps to gene. I'll note above.

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024

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.

cmungall avatar cmungall commented on August 20, 2024

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.

nathandunn avatar nathandunn commented on August 20, 2024

from biolink-api.

cmungall avatar cmungall commented on August 20, 2024

mapping: https://github.com/Planteome/biolink-api/blob/master/conf/config.yaml#L22-L28

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024

from biolink-api.

nathandunn avatar nathandunn commented on August 20, 2024
  1. Almost all "fetch X for ID" return 500 errors. Gene, phenotye, anatomy, etc.

  2. 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.