Learn R Programming

⚠️There's a newer version (1.70) of this package.Take me there.

R/qtl: A QTL mapping environment

Authors: Karl W Broman and Hao Wu, with ideas from Gary Churchill and Śaunak Sen and contributions from Danny Arends, Robert Corty, Timothée Flutre, Ritsert Jansen, Pjotr Prins, Lars Rönnegård, Rohan Shah, Laura Shannon, Quoc Tran, Aaron Wolen, and Brian Yandell

R/qtl is an extensible, interactive environment for mapping quantitative trait loci (QTL) in experimental crosses. It is implemented as an add-on package for the freely available and widely used statistical language/software R. The development of this software as an add-on to R allows us to take advantage of the basic mathematical and statistical functions, and powerful graphics capabilities, that are provided with R. Further, the user will benefit by the seamless integration of the QTL mapping software into a general statistical analysis program. Our goal is to make complex QTL mapping methods widely accessible and allow users to focus on modeling rather than computing.

A key component of computational methods for QTL mapping is the hidden Markov model (HMM) technology for dealing with missing genotype data. We have implemented the main HMM algorithms, with allowance for the presence of genotyping errors, for backcrosses, intercrosses, and phase-known four-way crosses.

The current version of R/qtl includes facilities for estimating genetic maps, identifying genotyping errors, and performing single-QTL genome scans and two-QTL, two-dimensional genome scans, by interval mapping (with the EM algorithm), Haley-Knott regression, and multiple imputation. All of this may be done in the presence of covariates (such as sex, age or treatment). One may also fit higher-order QTL models by multiple imputation and Haley-Knott regression.

License

The R/qtl package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3, as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See the GNU General Public License for more details.

A copy of the GNU General Public License, version 3, is available at https://www.r-project.org/Licenses/GPL-3

Copy Link

Version

Install

install.packages('qtl')

Monthly Downloads

3,520

Version

1.58

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

January 7th, 2023

Functions in qtl (1.58)

addqtl

Scan for an additional QTL in a multiple-QTL model
A starting point

Introductory comments on R/qtl
addpair

Scan for an additional pair of QTL in a multiple-QTL model
MQM

Introduction to Multiple QTL Model (MQM) mapping
add.cim.covar

Indicate marker covariates from composite interval mapping
addloctocross

Add phenotype location into a cross object
addmarker

Add a marker to a cross
arithscanperm

Arithmetic Operators for permutation results
badorder

An intercross with misplaced markers
bayesint

Bayesian credible interval
addtoqtl

Add to a qtl object
add.threshold

Add significance threshold to plot
arithscan

Arithmetic operators for scanone and scantwo results
argmax.geno

Reconstruct underlying genotypes
c.scanoneperm

Combine data from scanone permutations
c.scanone

Combine columns from multiple scanone results
addcovarint

Add QTL x covariate interaction to a multiple-QTL model
c.scantwo

Combine columns from multiple scantwo results
c.scantwoperm

Combine data from scantwo permutations
addint

Add pairwise interaction to a multiple-QTL model
chrlen

Chromosome lengths in QTL experiment
clean.scantwo

Clean up scantwo output
chrnames

Pull out the chromosome names from a cross
bristleX

Data on bristle number in Drosophila
drop.markers

Drop a set of markers
comparecrosses

Compare two cross objects
c.cross

Combine data for QTL experiments
cleanGeno

Delete genotypes that are possibly in error
drop.nullmarkers

Drop markers without any genotype data
checkAlleles

Identify markers with switched alleles
cbind.scantwoperm

Combine scantwo permutations by column
bristle3

Data on bristle number in Drosophila
compareorder

Compare two orderings of markers on a chromosome
convert2sa

Convert a sex-specific map to a sex-averaged one
droponemarker

Drop one marker at a time and determine effect on genetic map
cbind.scanoneperm

Combine columns from multiple scanone permutation results
condense.scantwo

Condense the output from a 2-d genome scan
allchrsplits

Test all possible splits of a chromosome into two pieces
calc.penalties

Calculate LOD penalties
convert2risib

Convert a cross to RIL by sib mating
comparegeno

Compare individuals' genotype data
fill.geno

Fill holes in genotype data
dropfromqtl

Drop a QTL from a qtl object
fake.f2

Simulated data for an F2 intercross
calc.errorlod

Identify likely genotyping errors
cim

Composite interval mapping
clean.cross

Remove derived data
convert.map

Change map function for a genetic map
calc.genoprob

Calculate conditional genotype probabilities
fake.bc

Simulated data for a backcross
countXO

Count number of obligate crossovers for each individual
locateXO

Estimate locations of crossovers
find.markerpos

Find position of a marker
drop.dupmarkers

Drop duplicate markers
fake.4way

Simulated data for a 4-way cross
find.flanking

Find flanking markers for a specified position
find.marker

Find marker closest to a specified position
find.pheno

Find column number for a particular phenotype
convert.scanone

Convert output from scanone for R/qtl version 0.98
effectplot

Plot phenotype means against genotypes at one or two markers
effectscan

Plot estimated QTL effects across the whole genome
flip.order

Flip the orders of markers on a set of chromosomes
convert2riself

Convert a cross to RIL by selfing
convert.scantwo

Convert output from scantwo for R/qtl version 1.03 and earlier
find.markerindex

Determine the numeric index for a marker
find_large_intervals

Find large intervals in a map
movemarker

Move a marker to a new chromosome
locations

Genetic locations of traits for the multitrait dataset
mqmaugment

MQM augmentation
inferFounderHap

Crude reconstruction of founder haplotypes in multi-parent RIL
fitqtl

Fit a multiple-QTL model
interpPositions

Interpolate positions from one map to another
geno.table

Create table of genotype distributions
mqmpermutation

Estimate QTL LOD score significance using permutations or simulations
mqmplot.circle

Circular genome plot for MQM
formMarkerCovar

Create matrix of marker covariates for QTL analysis
est.map

Estimate genetic maps
est.rf

Estimate pairwise recombination fractions
fitstahl

Fit Stahl interference model
getid

Pull out the individual identifiers from a cross
geno.image

Plot grid of genotype data
find.pseudomarker

Find the pseudomarker closest to a specified position
max.scanone

Maximum peak in genome scan
mqmplot.cistrans

cis-trans plot
hyper

Data on hypertension
findDupMarkers

Find markers with identical genotype data
mqmplot.directedqtl

Plot LOD*Effect curves of a multiple-QTL model
lodint

LOD support interval
mqmplot.clusteredheatmap

Plot clustered heatmap of MQM scan on multiple phenotypes
makeqtl

Make a qtl object
geno.crosstab

Create table of two-locus genotypes
groupclusteredheatmap

Retrieving groups of traits after clustering
markerlrt

General likelihood ratio test for association between marker pairs
mqmplot.multitrait

Plot the results from a genomescan using a multiple-QTL model on multiple phenotypes
mqmplot.permutations

Plot results from mqmpermutation
mqmplot.heatmap

Heatmap of a genome of MQM scan on multiple phenotypes
map10

An example genetic map
inferredpartitions

Identify inferred partitions in mapping QTL to a phylogenetic tree
formLinkageGroups

Partition markers into linkage groups
listeria

Data on Listeria monocytogenes susceptibility
mqmautocofactors

Automatic setting of cofactors, taking marker density into account
jittermap

Jitter marker positions in a genetic map
mqmextractmarkers

MQM marker extraction
markernames

Pull out the marker names from a cross
plotGeno

Plot observed genotypes, flagging likely errors
plot.cross

Plot various features of a cross object
mqmplot.singletrait

Plot LOD curves of a multiple-QTL model
mqmprocesspermutation

Convert mqmmulti objects into a scanoneperm object
max.scanPhyloQTL

Maximum peak in genome scan to map a QTL to a phylogenetic tree
ntyped

Number of genotypes
max.scantwo

Maximum peak in two-dimensional genome scan
mqmsetcofactors

Set cofactors at fixed intervals, to be used with MQM
plotMap

Plot genetic map
nullmarkers

Identify markers without any genotype data
mqmtestnormal

Shapiro normality test used for MQM
nphe

Determine the number of phenotypes QTL experiment
nmar

Determine the numbers of markers on each chromosome
mqmscan

Genome scan with a multiple QTL model (MQM)
mqmgetmodel

Retrieve the QTL model used in mapping from the results of an MQM scan
map2table

Convert genetic map from list to table.
mqmfind.marker

Fetch significant markers after permutation analysis
nqrank

Transform a vector of quantitative values to the corresponding normal quantiles
mapthis

Simulated data for illustrating genetic map construction
multitrait

Example Cross object from R/QTL with multiple traits
nqtl

Determine the number of QTL in a QTL object
plotRF

Plot recombination fractions
plotLodProfile

Plot 1-d LOD profiles for a multiple QTL model
plotErrorlod

Plot grid of error LOD values
refineqtl

Refine the positions of QTL
nind

Determine the number of individuals QTL experiment
plot.scantwoperm

Plot permutation results for a 2d, 2-QTL genome scan
pickMarkerSubset

Identify the largest subset of markers that are some distance apart
pull.pheno

Pull out phenotype data from a cross
nmissing

Number of missing genotypes
plotPXG

Plot phenotypes versus marker genotypes
plotPheno

Plot a phenotype distribution
read.cross

Read data for a QTL experiment
plot.qtl

Plot QTL locations
nchr

Determine the number of chromosomes
pull.draws

Pull out the genotype imputations from a cross
pull.geno

Pull out the genotype data from a cross
replace.map

Replace the genetic map of a cross
scanonevar

Genome scan for QTL affecting mean and/or variance
scanoneboot

Bootstrap to get interval estimate of QTL location
replacemap.scanone

Replace the genetic map in QTL mapping results with an alternate map
scantwo

Two-dimensional genome scan with a two-QTL model
plot.scanoneboot

Plot results of bootstrap for QTL position
plot.scanone

Plot LOD curves
scanqtl

General QTL scan
plotModel

Plot a QTL model
pull.argmaxgeno

Pull out the results of the Viterbi algorithm from a cross
replaceqtl

Replace a QTL in a qtl object with a different position
mqmplot.cofactors

Plot cofactors on the genetic map
replacemap.scantwo

Replace the genetic map in QTL mapping results with an alternate map
orderMarkers

Find an initial order for markers within chromosomes
shiftmap

Shift starting points in genetic maps
scantwopermhk

Permutation test for 2d genome scan by Haley-Knott regression
stepwiseqtl

Stepwise selection for multiple QTL
pull.rf

Pull out recombination fractions or LOD scores from a cross object
mqmscanall

Parallelized MQM on multiple phenotypes in a cross object
plotMissing

Plot grid of missing genotypes
plotInfo

Plot the proportion of missing genotype information
mqmscanfdr

Estimate FDR for multiple trait QTL analysis
summaryMap

Print summary of a genetic map
pull.markers

Drop all but a selected set of markers
plot.comparegeno

Plot genotype comparison
summary.fitqtl

Summary of fit of qtl model
plot.scanoneperm

Plot permutation results for a single-QTL genome scan
plot.scantwo

Plot LOD scores for a two-dimensional genome scan
subset.scanone

Subsetting the results of a genome scan
pull.map

Pull out the genetic map from a cross
subset.map

Subsetting chromosomes for a genetic map
subset.cross

Subsetting data for QTL experiment
plot.rfmatrix

Plot recombination fractions or LOD scores for a single marker
strip.partials

Strip partially informative genotypes
qtl-internal

Internal qtl functions
phenames

Pull out the phenotypes names from a cross
pull.genoprob

Pull out the genotype probabilities from a cross
reduce2grid

Reduce to a grid of pseudomarkers.
plot.scanPhyloQTL

Plot LOD curves from single-QTL scan to map QTL to a phylogenetic tree
summary.scantwo

Summarize the results of a two-dimensional genome scan
scanonevar.meanperm

Permutation test for mean effect in scanonevar
simulatemissingdata

Simulates missing genotype data
summary.scanPhyloQTL

Summarize the results a genome scan to map a QTL to a phylogenetic tree
typingGap

Maximum distance between genotyped markers
summary.scanone

Summarize the results of a genome scans
subset.scantwo

Subsetting the results of a 2-d genome scan
scanone

Genome scan with a single QTL model
write.cross

Write data for a QTL experiment to a file
scanonevar.varperm

Permutation test for variance effect in scanonevar
qtlversion

Installed version of R/qtl
simPhyloQTL

Simulate a set of intercrosses for a single diallelic QTL
rescalemap

Rescale genetic maps
summary.comparegeno

Print pairs of individuals with similar genotype data.
summary.scanoneboot

Bootstrap confidence interval for QTL location
sim.map

Simulate a genetic map
summary.scanoneperm

LOD thresholds from scanone permutation results
readMWril

Read data for 4- or 8-way RIL
summaryScantwoOld

Summarize the results of a two-dimensional genome scan
switchAlleles

Switch alleles at selected markers
transformPheno

Transformation of the phenotypes in a cross object
subset.scantwoperm

Subsetting two-dimensional permutation test results
simFounderSnps

Simulate founder SNPs for a multiple-strain RIL
scanPhyloQTL

Single-QTL genome scan to map QTL to a phylogenetic tree
switch.order

Switch the order of markers on a chromosome
summary.scantwoperm

LOD thresholds from scantwo permutation results
xaxisloc.scanone

Get x-axis locations in scanone plot
table2map

Convert a table of marker positions to a map object.
top.errorlod

List genotypes with large error LOD scores
totmar

Determine the total number of markers
sim.geno

Simulate genotypes given observed marker data
sim.cross

Simulate a QTL experiment
reorderqtl

Reorder the QTL in a qtl object
ripple

Compare marker orders
summary.ripple

Print summary of ripple results
summary.qtl

Print summary of a QTL object
tryallpositions

Test all possible positions for a marker
summary.cross

Print summary of QTL experiment
subset.scanoneperm

Subsetting permutation test results