...
- genomic_extensions = {
'bigWig': ['bw', 'bigwig'],
'bigBed 12': ['bb', 'bigbed'],
'bigGenePred': ['bb'],
'bigChain': ['bigchain'],
'bigNarrowPeak': ['bb'],
'bigBarChart': ['bb'],
'bigInteract': ['bb'],
'bigPsl': ['bb'],
'bigMaf': ['bb'],
'hic': ['hic'],
'bam': ['bam', 'cram'],
'HAL': ['hal'],
'vcfTabix': ['vcf', 'vcf.gz']
} - Get the extension of bigDataUrl.
- If the extension is present in genomic_extensions and equals "bb", check whether the word before .bb matches a key in genomic_extensions. If yes, return that key (e.g., bigGenePred).
- Example: GSE63189_Catalog_of_lncRNAs_in_MCF-7cells.bigGenePred.bb → bigGenePred.
- Otherwise, if the extension matches a value in genomic_extensions, return the corresponding key.
- If the extension is just .bb, return bigBed 12.
- genomic_extensions = {
- visibility – Always set to "dense".
Head Request
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.
Generate UCSC Synonyms.txt
Url
Logic
- Fetch the list of UCSC genomes from:
https://api.genome.ucsc.edu/list/ucscGenomes - Check if these genomes exist in IGB’s 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 a new synonyms.txt in the hub_facade repository (path: igb_trackhub/synonyms.txt).
- Fetch the list of UCSC genomes from: