plot_region: plot association with LD and annotation at a given region

Description Usage Arguments Value Author(s) Examples

Description

This function plot the association with linkage disequiblism and annotation at the level of a region.

Usage

1
2
3
4
5
6
plot_region(chr, left, right, gtf, association, hapmap, hapmap_ld = NULL,
  slide_length = -1, threadN = 1, ldstatistics = "rsq",
  leadsnp = NULL, threshold = NULL, link2gene = TRUE,
  triangleLD = TRUE, link2LD = TRUE, leadsnpLD = TRUE,
  label_gene_name = FALSE, colour02 = "gray", colour04 = "cyan",
  colour06 = "green", colour08 = "yellow", colour10 = "red")

Arguments

chr

the chromosome, required.

left

the left border of the region, required.

right

the right border of the region, required.

gtf

the annotation file, required.

association

the association table, required.

hapmap

the genotype file for computing leadsnpLD in the format of hapmap, required.

hapmap_ld

the genotype file for computing trangleLD in the format of hapmap, not required. If hapmap_ld was not provided, hapmap would be used.

slide_length

the sliding window length for computing LD, default -1.

threadN

the number of (CPU) cores used for computing LD, default 1.

ldstatistics

the statistics used for computing LD, default rsquare, and the optional is dprime.

leadsnp

snp name provided by user

threshold

the significant level of the assocition, default NULL.

link2gene

link the locis that passed the threshold to the genic structure, default TRUE.

triangleLD

show LD in the format lile triangle, default TRUE.

link2LD

link the locis that passed the threshold to the LD, default TRUE.

leadsnpLD

show LD of the locis when compared with the most significant loci, default TRUE.

label_gene_name

label the name of gene within the region, default FALSE.

colour02

the colour of LD statistics ranged between 0.0 and 0.2, default gray.

colour04

the colour of LD statistics ranged between 0.2 and 0.4, default cyan.

colour06

the colour of LD statistics ranged between 0.4 and 0.6, default green.

colour08

the colour of LD statistics ranged between 0.6 and 0.8, default yellow.

colour10

the colour of LD statistics ranged between 0.8 and 1.0, default red.

Value

ggplot2 plot

Author(s)

Hongwei Wang <whweve@163.com>

Examples

1
2
3
4
5
6
data(gtf)
data(association)
data(hapmap_am368)
data(hapmap2)
plot_region(chr=9,left=94178074-200000,right=94178074+200000,
gtf=gtf,association=association,hapmap=hapmap_am368,hapmap_ld=hapmap2,threshold=5)

whweve/wisassoplot2 documentation built on May 15, 2019, 9:56 p.m.