library(echoLD) query_dat <- echodata::BST1[seq(1,100),] locus_dir <- file.path(tempdir(), echodata::locus_dir)
LD_1kgp3 <- echoLD::get_LD(locus_dir = locus_dir, query_dat = query_dat, LD_reference = "1KGphase3") # 1KGphase1
echoLD::plot_LD(LD_matrix = LD_1kgp3$LD, query_dat = LD_1kgp3$DT, span = 20)
WARNING: Takes substantially longer than 1000 Genomes methods.
LD_ukb <- echoLD::get_LD(locus_dir = locus_dir, query_dat = query_dat, LD_reference = "UKB", download_method = "axel", nThread = 10)
echoLD::plot_LD(LD_matrix = LD_ukb$LD, query_dat = LD_ukb$DT, span = 20)
LD_reference <- system.file("extdata","BST1.1KGphase3.vcf.bgz", package = "echodata") samples <- c("HG00097","HG00099","HG00100","HG00101","HG00102") LD_custom <- echoLD::get_LD(locus_dir = locus_dir, query_dat = query_dat, LD_reference = LD_reference)
echoLD::plot_LD(LD_matrix = LD_custom$LD, query_dat = LD_custom$DT, span = 20)
utils::sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.