...
Logic
- Returns headers and status_code. The status_code is determined by verifying all GET calls.
Purpose
- UCSC makes a HEAD request to validate the URL when it is added to Connected Hubs.
- To test:
- Go to UCSC Track Data Hubs → Connected Hubs tab.
- When the URL is pasted, UCSC sends a HEAD request to verify the status code.
- To test:
- UCSC makes a HEAD request to validate the URL when it is added to Connected Hubs.
...
Update UCSC Synonyms.txt
Logic
- IGB's source code maintains a list of synonyms for recognizing the same genome version from different genome browsers, called synonyms.txt. We have created a version of this file that matches the IGB specific genome version name to the UCSC genome version name. When a user adds an IGB Quickload as a track hub to the UCSC Genome Browser, translate.bioviz.org checks if the genome versions located in the Quickload match any of the genomes found in UCSC and if so, will load the data in the appropriate genome.
- When the above URL is clicked on, the translate.bioviz.org server updates the synonyms.txt file following these steps:
- Fetch the list of UCSC genomes from the following API:
Check if these genomes exist in- Compare the UCSC genomes to IGB’s source code synonyms.txt file (path: core/synonym-lookup/src/main/resources/synonyms.txt).
- If a UCSC genome is found in synonyms.txt, add the IGB genome name (first column in synonyms.txt) and the UCSC genome name to the synonyms.txt in the hub_facade repository (path: igb_trackhub/api/synonyms.txt).