Some visual examples are provided in this vignette, including example data, code, and figures.
Visualilzation of eQTL, sQTL, gene expression across tissues.
xQTLvisual_eqtl("KIF15")
<- c("FNDC8", "S100Z", "AQP6", "AMOT", "C3orf38", "FOXL1", "COX11", "FCN3", "DDX58", "CFI", "MS4A18", "NUDT13", "HOXA4", "VSX1")
genes xQTLvisual_genesExp(genes, tissueSiteDetail="Lung")
<- xQTLvisual_geneExpTissues("TP53", tissues=c("Lung", "Brain","Ovary")) geneExpTissues
<- xQTLvisual_geneExpTissues("TP53") geneExpTissues
<- xQTLvisual_eqtlExp(variantName="rs78378222", gene ="TP53",
expEqtl tissueSiteDetail="Lung")
<- xQTLvisual_sqtlExp(variantName="chr11_66561248_T_C_b38",variantType="variantId",
expSqtl phenotypeId ="chr11:66348070:66353455:clu_8500:ENSG00000255468.6",
tissueSiteDetail="Skin - Sun Exposed (Lower leg)")
LocusZoom plot for GWAS dataset:
library(data.table)
<- fread("https://gitee.com/stronghoney/exampleData/raw/master/gwasChr6Sub4.txt")
gwasDF <- xQTLvisual_locusZoom(gwasDF)
p_all <- xQTLvisual_locusZoom(gwasDF, posRange="chr6:4.7e7-4.8e7", population ="EUR")
p_sub ::plot_grid(p_all, p_sub, align = "h", ncol = 2) cowplot
LocusZoom plot for eQTL signals of a gene of interest:
<- xQTLdownload_eqtlAllAsso("RP11-385F7.1",
eqtlAsso tissueLabel = "Brain - Cortex")
<- xQTLvisual_locusZoom(eqtlAsso[,c("snpId", "chrom", "pos", "pValue")], highlightSnp="rs4711878" )
p_all <- xQTLvisual_locusZoom(eqtlAsso[,c("snpId", "chrom", "pos", "pValue")], highlightSnp="rs4711878",
p_sub posRange="chr6:47.3e6-47.9e6")
::plot_grid(p_all, p_sub, align = "h", ncol = 2) cowplot
<- xQTLdownload_eqtlAllAssoPos(chrom = "chr6", pos_lower=47.4e6, pos_upper = 47.7e6,
eqtlAssos tissueLabel = "Brain - Cortex", p_upper=0.1)
<- xQTLvisual_locusZoom(eqtlAssos[,c("snpId", "chrom", "pos", "pValue")], highlightSnp = "rs34744382")
p1 <- xQTLdownload_eqtlAllAssoPos(chrom = "chr6", pos_lower=47.4e6, pos_upper = 47.7e6,
eqtlAssos_gene gene="RP11-385F7.1",tissueLabel = "Brain - Cortex", p_upper=0.1)
<- xQTLvisual_locusZoom(eqtlAssos_gene[,c("snpId", "chrom", "pos", "pValue")], highlightSnp = "rs34744382")
p2 ::plot_grid(p1, p2, align = "h", ncol = 2) cowplot
library(data.table)
<-fread("https://gitee.com/stronghoney/exampleData/raw/master/eqtl/eqtlAsso1.txt")
eqtlDF <-fread("https://gitee.com/stronghoney/exampleData/raw/master/gwas/AD/gwasChr6Sub3.txt")
gwasDF xQTLvisual_locusCompare( eqtlDF, gwasDF, legend_position="topleft")
<- data.table::fread("http://raw.githubusercontent.com/dingruofan/exampleData/master/gwas/AD/gwasEqtldata.txt")
gwasEqtldata xQTLvisual_locusCombine(gwasEqtldata, highlightSnp="rs13120565")
<- xQTLanalyze_propensity( gene="MMP7", variantName="rs11568818", study="TwinsUK")
propensityRes xQTLvisual_qtlPropensity(propensityRes)