-
Notifications
You must be signed in to change notification settings - Fork 8
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
Gene page API issues, documentation, and testing #621
Comments
Problem: identical requests to UniProt will sometimes work and sometimes will not. A request for information about a particular gene will either return the proper information or will return an error. Note that we don't know why this is happening. Solution: have it make identical requests until one of the requests is successful and returns proper data. Next problem: None of the gene information will display on gene page unless all API calls are successful. Proposed solution: These need to be independent of each other. Not found or other such message should display on gene page for information not found from a particular database. |
I just looked at beta v3.0.6 and there still isn't any information populated on the gene page. |
It would appear that the api.js file returns a 404 error on beta when uploaded to the server. |
Yes, try using a fully-relative URL. (no leading slash) |
@johnllopez616 and I discussed that an error modal will only come up if there gene information is not found at all in any database. I'm noting here in the demo that @johnllopez616 showed me that the biodb class put "N/A" for information I requested that they were not able to implement during the semester. @kdahlquist will need to review each of these items and determine whether we should give up on it or try to implement it. |
The following error emerges on Chrome when the API call to JASPAR is made unless the following plugin is installed. |
Change text of Error that comes up when gene information not retrieved from the database: Three-part framework:
So in the case of the gene backpages:
No gene information was retrieved for . This could have happened because either GRNsight could not access the gene information from one of the source databases or because no information exists for the gene in the source databases. You can check back later to see if gene information can be retrieved or submit an issue to https://github.com/dondi/GRNsight. |
Does the error continue to persist? Make sure that it isn’t transient. As far as I know, JASPAR did use to work, and their website says they do support it: http://jaspar.genereg.net/api/overview#cors-requests (You might need to read up on CORS a bit so you can get more background) If we do determine that this isn’t a transient error, then there appears to be inconsistency between their documentation and the actual API, and it may be necessary to contact the developer directly regarding their CORS support (or lack of). |
I advised @johnllopez616 to break down the |
The BioDB class had to make a relay to get around the CORS problem at Jaspar. |
The relay file that BioDB class made needs to be moved into |
This is still in progress, so I'm removing the "for next release" tag. |
Currently on beta v3.0.5, the gene page is opening, but data is not being loaded.
Copied over a post by @johnllopez616 from #573:
I discovered that at least one of the data loading issues is related to the first part of
getUniProtInfo()
withinapi.js
. What this function does is make a request to UniProt Retrieve/ID Mapping to retrieve the UniProt entry ID as part of the UniProt API request. I've noticed that the current function to make this request isn't reliable. I will investigate further later today.Once the basic functionality is up for @kdahlquist to look at on beta, we also want to make sure that if a user has a gene that is not found in one or more databases, the appropriate "not found" messages come up. There are two cases to consider:
When the Fall 2017 BioDB wiki is back up, @kdahlquist will review the documentation there to generate a guide to the expected results. If it's not up by Monday the 21st, she will re-generate this documentation so it is not a blocker to progress on this issue.
The text was updated successfully, but these errors were encountered: