powered by
Query LDproxy API using a list of query variants, one per line.
LDproxy_batch(snp, pop = "CEU", r2d = "r2", token = NULL, append = FALSE)
a character string or data frame listing rsID's or chromosome coordinates (e.g. "chr7:24966446"), one per line
a 1000 Genomes Project population, (e.g. YRI or CEU), multiple allowed, default = "CEU"
either "r2" for LD R2 or "d" for LD D', default = "r2"
LDlink provided user token, default = NULL, register for token at https://ldlink.nci.nih.gov/?tab=apiaccess
logical. If TRUE, output for each query variant is appended to a text file. If FALSE, output of each query variant is saved in its own text file.
text file(s) are saved to the current working directory.
# NOT RUN { snps_to_upload <- c("rs3", "rs4") # } # NOT RUN { LDproxy_batch(snp = snps_to_upload, token = Sys.getenv("LDLINK_TOKEN"), append = FALSE) # } # NOT RUN { # }
Run the code above in your browser using DataLab