Closed kkmarkel closed 7 months ago
library(rtracklayer)
mySession <- browserSession()
genome(mySession) <- 'hg38'
q <- ucscTableQuery(mySession, table="gap", url="https://genome-asia.ucsc.edu/cgi-bin/")
gaps <- getTable(q)
library(rtracklayer)
mySession <- browserSession()
genome(mySession) <- 'hg38'
q <- ucscTableQuery(mySession, table="gap", url="https://genome-asia.ucsc.edu/cgi-bin/")
options(verbose = T)
gaps <- getTable(q)
# READ: https://genome.ucsc.edu/cgi-bin/hubApi/getData/track?genome=hg38&track=gap
If we open above API request URL it show the following error:
{ "downloadTime": "2023:11:24T09:44:32Z", "downloadTimeStamp": 1700819072, "error": "can not find schema definition for table 'gap', genome: 'hg38'", "statusCode": 500, "statusMessage": "Internal Server Error"}
I am not sure why it is not present on the Europe Mirror. However, if we change the Mirror to Asia, It works. As the table gap
is available on it.
https://genome.ucsc.edu/cgi-bin/hubApi/getData/track?genome=hg38&track=gap
https://genome-asia.ucsc.edu/cgi-bin/hubApi/getData/track?genome=hg38&track=gap
Note: I took the mirror information from https://genome.ucsc.edu/mirror.html
@sanchit-saini Thank you so much! Changing the Mirror to Asia worked well.
Hi!
I want to get gaps track from UCSC for hg38 assembly. Everything worked fine a week ago but from yesterday I keep getting an error:
The error persists if I try with a different track, e.g.:
Even though the session seems fine and trackNames is working
Tried with hg19 assembly and it worked fine
Not sure what to do with this...
sessionInfo
Here is my sessionInfo():