Interactive Graphics for QTL Experiments

Web-based interactive charts (using D3.js) for the analysis of experimental crosses to identify genetic loci (quantitative trait loci, QTL) contributing to variation in quantitative traits. Broman (2015) .


R/qtlcharts: Interactive graphics for QTL experiments R/qtlcharts logo

R-CMD-check CRAN_Status_Badge r-universe badge zenodo DOI

R/qtlcharts is an R package to create interactive charts for QTL data, for use with R/qtl.

It is built with D3, using a set of reusable panels (also available separately, as d3panels).

For example charts, see the R/qtlcharts website.

Installation

Install R/qtlcharts from CRAN using

install.packages("qtlcharts")

Alternatively, install it from R universe:

install.packages("qtlcharts", repos=c("https://kbroman.r-universe.dev",
                                      "https://cloud.r-project.org"))

Or install it from its GitHub repository. First install the remotes package.

install.packages("remotes")

Then install R/qtlcharts using the install_github function in remotes.

library(remotes)
install_github("kbroman/qtlcharts")

The packages R/qtl and htmlwidgets will also be installed.

Example use

Try the following example, which creates an interactive chart with LOD curves linked to estimated QTL effects.

library(qtl)
library(qtlcharts)
data(hyper)
hyper <- calc.genoprob(hyper, step=1)
out <- scanone(hyper)
iplotScanone(out, hyper)

Also try iplotCorr, an image of a correlation matrix (for the gene expression of a set of 100 genes) linked to the underlying scatterplots, with the points in the scatterplot colored by their genotype at a QTL:

library(qtlcharts)
data(geneExpr)
iplotCorr(geneExpr$expr, geneExpr$genotype)

Finally, try iboxplot, a plot of the quantiles of many distributions, linked to the underlying histograms.

library(qtlcharts)
# simulate some data
n.ind <- 500
n.gene <- 10000
expr <- matrix(rnorm(n.ind * n.gene, (1:n.ind)/n.ind*3), ncol=n.gene)
dimnames(expr) <- list(paste0("ind", 1:n.ind),
                       paste0("gene", 1:n.gene))
# generate the plot
iboxplot(expr)

Citation

To cite R/qtlcharts in publications, please use

Broman KW (2015) R/qtlcharts: interactive graphics for quantitative trait locus mapping. Genetics 199:359-361. doi:10.1534/genetics/114.172742

Licenses

The R/qtlcharts package as a whole is distributed under GPL-3 (GNU General Public License version 3).

R/qtlcharts incorporates the following other open source software components, which have their own license agreements.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("qtlcharts")

0.22 by Karl W Broman, 4 months ago


https://kbroman.org/qtlcharts/, https://github.com/kbroman/qtlcharts


Report a bug at https://github.com/kbroman/qtlcharts/issues


Browse source code at https://github.com/cran/qtlcharts


Authors: Karl W Broman [aut, cre] (ORCID: , Michael Bostock [ctb, cph] (d3.js library in htmlwidgets/lib , https://d3js.org) , jQuery Foundation [cph] (jQuery library in htmlwidgets/lib , https://jquery.com) , jQuery contributors [ctb] (jQuery library in htmlwidgets/lib; see https://github.com/jquery/jquery/blob/master/AUTHORS.txt) , jQuery UI contributors [ctb] (jQuery UI library in htmlwidgets/lib; see https://jqueryui.com/about/)


Documentation:   PDF Manual  


GPL-3 | file LICENSE license


Imports qtl, htmlwidgets, graphics, stats, utils

Suggests htmltools, jsonlite, knitr, devtools, roxygen2, rmarkdown, testthat


See at CRAN