February 2022 Update:
The Open Targets COVID-19 Target Prioritisation Tool has been deprecated and archived. For more information, please see opentargets/platform#1964 and this Community thread.
If you wish to run this code locally or deploy, please remove the _redirects
file in the public
directory. As noted in pull request #17, the COVID-19 Target Prioritisation Tool URL -- https://covid19.opentargets.org/
-- now redirects to the COVID-19 associations page on the Open Targets Platform.
The latest data available in the COVID-19 Target Prioritisation Tool was generated using the 21.02 release data for the Open Targets Platform. Please see #1324 for more information.
Based on a review of the notes in #1160 and the update.js
file in the ot_covid19-frontend
repository, the process to refresh the data is:
- Download the latest release data in JSON (
.zip
) format - Rename the file to
targets_integrated_data-rev_10.zip
- Upload the
.zip
file in the open-targets-covid-prioritisation bucket - Update the
current_revision.json
to be:
{ "current_revision": "targets_integrated_data-rev_10" }
During the deployment process, there are three things that are important to remember:
- The file type must be
.zip
as.gzip
files will not be processed correctly. If the file type in the Google Cloud bucket is.gzip
, you will see the following console log error:
- The JSON file contained in the
.zip
file must have a.json
extension. If the file does not have a.json
extension, you will see the following console log error:
- Google caches the current_revision.json file for a default of 3600 seconds, which can cause issues with the console log showing the incorrect version. To fix this, you can re-upload the
current_revision.json
file and adjust theCache-Control
metadata and set tono-cache
.