View source: R/fast_locusplot.R
fast_locusplot | R Documentation |
Function to generate zoomed locus plots including linkage diequilibrium using r2
fast_locusplot(
data,
build = "hg19",
snp = "top",
pop = "CEU",
show_MAF = FALSE,
show_regulom = FALSE,
RDB_ranks = c(1, 2),
color = "viridis",
token = NULL
)
data |
A data.frame. Columns 'chr', 'pos','pvalue' and 'rsid' are required |
build |
Genomic build. Currently only hg19 is supported. |
snp |
Default: top snp with lowest pvalue is taken. Otherwise specify any rsid id included in data. |
pop |
a 1000 Genomes Project population, (e.g. YRI or CEU), multiple allowed, default = "CEU". |
show_MAF |
Show minor allele frequencies from specified 1000 Genomes population. Default = FALSE. |
show_regulom |
Show RegulomeDB ranks. More information at https://regulomedb.org/regulome-help. Default = FALSE. |
RDB_ranks |
Specify RegulomeDB ranks to show. Defaults are the most significants: 1 and 2 including subtypes a-f. |
color |
color scheme for R^2 values. Possible values are c("viridis","magma","inferno","plasma"). |
token |
!!!REQUIRED!!!: Register for token at https://ldlink.nci.nih.gov/?tab=apiaccess |
A ggplot2 object/plot
fast_locusplot(gwas_data, token = "mytoken")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.