-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi,
My name is Shujie. I am performing several calculations of ldmatrix for pop afr and amr and the number of input snps are 1366 and 2232. But when I run my script, it will give the error: Error in LDmatrix(my_proxies$RS_Number, pop = pop, r2d = "r2", token = tokenid, :
Gateway Timeout (HTTP 504).
Calls: calculate_pld -> LDmatrix ->
Execution halted.
I am wondering how to solve this error. I appreciate your help!
One corresponding code is:
library(LDlinkR)
discovery_snp<-"rs11072209"
genome_build <- "hg19"
pop<- "AFR"
win_size <- "500000"
if(genome_build=="hg19"){genome_build="grch37"}
my_proxies <- LDproxy(
snp = discovery_snp,
pop = pop,
r2d = "r2",
token = tokenid,
genome_build=genome_build,
win_size = win_size
)
my_proxies = my_proxies[my_proxies$RS_Number != ".", ]
matrix<-LDmatrix(my_proxies$RS_Number,pop=pop,r2d="r2",token = tokenid,genome_build = genome_build)
Best,
Shujie