View source: R/plot_locus_multi.R
plot_locus_multi | R Documentation |
Plot multi-GWAS/QTL or multi-ancestry(i.e. trans-ethnic) fine-mapping results generated by tools like PAINTOR.
plot_locus_multi(
dat_ls,
LD_ls,
locus_dir,
conditions = names(dat_ls),
show_plot = TRUE,
verbose = TRUE,
...
)
dat_ls |
A named list of data.tables generated by
|
LD_ls |
A named list of link disequilibrium (LD) matrices
(one per item in |
locus_dir |
Storage directory to use. |
conditions |
Conditions to group |
show_plot |
Print plot to screen. |
verbose |
Print messages. |
... |
Arguments passed on to
|
locus_dir <- file.path(tempdir(),echodata::locus_dir)
#### Make dat_ls ####
dat <- echodata::filter_snps(echodata::BST1, bp_distance = 10000)
dat_ls <- list(gwas1=dat, gwas2=dat)
#### Make LD_ls ####
LD_matrix <- echodata::BST1_LD_matrix
LD_ls <- list(ancestry1=LD_matrix, ancestry2=LD_matrix)
#### Make plot ####
plot_list <- plot_locus_multi(dat_ls = dat_ls,
LD_ls = LD_ls,
locus_dir = locus_dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.