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

2,669

Version

1.54

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

December 2nd, 2022

Functions in qtl (1.54)

addloctocross

Add phenotype location into a cross object
add.cim.covar

Indicate marker covariates from composite interval mapping
addqtl

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

Introductory comments on R/qtl
addcovarint

Add QTL x covariate interaction to a multiple-QTL model
add.threshold

Add significance threshold to plot
addmarker

Add a marker to a cross
addpair

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

Introduction to Multiple QTL Model (MQM) mapping
addint

Add pairwise interaction to a multiple-QTL model
c.cross

Combine data for QTL experiments
allchrsplits

Test all possible splits of a chromosome into two pieces
bayesint

Bayesian credible interval
bristle3

Data on bristle number in Drosophila
addtoqtl

Add to a qtl object
bristleX

Data on bristle number in Drosophila
badorder

An intercross with misplaced markers
arithscanperm

Arithmetic Operators for permutation results
argmax.geno

Reconstruct underlying genotypes
arithscan

Arithmetic operators for scanone and scantwo results
c.scanoneperm

Combine data from scanone permutations
calc.penalties

Calculate LOD penalties
checkAlleles

Identify markers with switched alleles
c.scantwo

Combine columns from multiple scantwo results
c.scantwoperm

Combine data from scantwo permutations
cbind.scantwoperm

Combine scantwo permutations by column
c.scanone

Combine columns from multiple scanone results
cbind.scanoneperm

Combine columns from multiple scanone permutation results
condense.scantwo

Condense the output from a 2-d genome scan
compareorder

Compare two orderings of markers on a chromosome
comparegeno

Compare individuals' genotype data
comparecrosses

Compare two cross objects
cim

Composite interval mapping
clean.cross

Remove derived data
calc.genoprob

Calculate conditional genotype probabilities
countXO

Count number of obligate crossovers for each individual
chrnames

Pull out the chromosome names from a cross
chrlen

Chromosome lengths in QTL experiment
clean.scantwo

Clean up scantwo output
cleanGeno

Delete genotypes that are possibly in error
calc.errorlod

Identify likely genotyping errors
drop.markers

Drop a set of markers
convert2risib

Convert a cross to RIL by sib mating
convert2sa

Convert a sex-specific map to a sex-averaged one
drop.nullmarkers

Drop markers without any genotype data
convert.map

Change map function for a genetic map
drop.dupmarkers

Drop duplicate markers
convert.scanone

Convert output from scanone for R/qtl version 0.98
fill.geno

Fill holes in genotype data
convert.scantwo

Convert output from scantwo for R/qtl version 1.03 and earlier
est.rf

Estimate pairwise recombination fractions
est.map

Estimate genetic maps
convert2riself

Convert a cross to RIL by selfing
fake.f2

Simulated data for an F2 intercross
dropfromqtl

Drop a QTL from a qtl object
effectplot

Plot phenotype means against genotypes at one or two markers
droponemarker

Drop one marker at a time and determine effect on genetic map
effectscan

Plot estimated QTL effects across the whole genome
find.marker

Find marker closest to a specified position
findDupMarkers

Find markers with identical genotype data
find.pseudomarker

Find the pseudomarker closest to a specified position
find.flanking

Find flanking markers for a specified position
find.markerpos

Find position of a marker
find.pheno

Find column number for a particular phenotype
fitqtl

Fit a multiple-QTL model
groupclusteredheatmap

Retrieving groups of traits after clustering
getid

Pull out the individual identifiers from a cross
fitstahl

Fit Stahl interference model
geno.image

Plot grid of genotype data
geno.table

Create table of genotype distributions
locations

Genetic locations of traits for the multitrait dataset
inferFounderHap

Crude reconstruction of founder haplotypes in multi-parent RIL
locateXO

Estimate locations of crossovers
interpPositions

Interpolate positions from one map to another
hyper

Data on hypertension
inferredpartitions

Identify inferred partitions in mapping QTL to a phylogenetic tree
find.markerindex

Determine the numeric index for a marker
find_large_intervals

Find large intervals in a map
flip.order

Flip the orders of markers on a set of chromosomes
formLinkageGroups

Partition markers into linkage groups
map2table

Convert genetic map from list to table.
movemarker

Move a marker to a new chromosome
fake.4way

Simulated data for a 4-way cross
fake.bc

Simulated data for a backcross
map10

An example genetic map
mqmaugment

MQM augmentation
lodint

LOD support interval
mqmextractmarkers

MQM marker extraction
mqmautocofactors

Automatic setting of cofactors, taking marker density into account
max.scanone

Maximum peak in genome scan
geno.crosstab

Create table of two-locus genotypes
formMarkerCovar

Create matrix of marker covariates for QTL analysis
max.scantwo

Maximum peak in two-dimensional genome scan
makeqtl

Make a qtl object
jittermap

Jitter marker positions in a genetic map
markernames

Pull out the marker names from a cross
listeria

Data on Listeria monocytogenes susceptibility
max.scanPhyloQTL

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

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

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

Circular genome plot for MQM
mqmfind.marker

Fetch significant markers after permutation analysis
mqmplot.heatmap

Heatmap of a genome of MQM scan on multiple phenotypes
mqmplot.cistrans

cis-trans plot
mqmplot.multitrait

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

Plot clustered heatmap of MQM scan on multiple phenotypes
mqmscanfdr

Estimate FDR for multiple trait QTL analysis
mqmscanall

Parallelized MQM on multiple phenotypes in a cross object
mqmplot.permutations

Plot results from mqmpermutation
nchr

Determine the number of chromosomes
mapthis

Simulated data for illustrating genetic map construction
nmar

Determine the numbers of markers on each chromosome
nind

Determine the number of individuals QTL experiment
multitrait

Example Cross object from R/QTL with multiple traits
markerlrt

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

Plot LOD curves of a multiple-QTL model
mqmtestnormal

Shapiro normality test used for MQM
mqmsetcofactors

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

Plot grid of error LOD values
plotPheno

Plot a phenotype distribution
nqtl

Determine the number of QTL in a QTL object
plotPXG

Plot phenotypes versus marker genotypes
nqrank

Transform a vector of quantitative values to the corresponding normal quantiles
plot.cross

Plot various features of a cross object
plot.scanPhyloQTL

Plot LOD curves from single-QTL scan to map QTL to a phylogenetic tree
plot.rfmatrix

Plot recombination fractions or LOD scores for a single marker
mqmprocesspermutation

Convert mqmmulti objects into a scanoneperm object
nullmarkers

Identify markers without any genotype data
nmissing

Number of missing genotypes
pickMarkerSubset

Identify the largest subset of markers that are some distance apart
ntyped

Number of genotypes
mqmscan

Genome scan with a multiple QTL model (MQM)
nphe

Determine the number of phenotypes QTL experiment
plot.scanone

Plot LOD curves
plot.comparegeno

Plot genotype comparison
pull.rf

Pull out recombination fractions or LOD scores from a cross object
pull.markers

Drop all but a selected set of markers
plotGeno

Plot observed genotypes, flagging likely errors
plotRF

Plot recombination fractions
pull.geno

Pull out the genotype data from a cross
pull.draws

Pull out the genotype imputations from a cross
qtl-internal

Internal qtl functions
plotInfo

Plot the proportion of missing genotype information
plotMap

Plot genetic map
mqmplot.cofactors

Plot cofactors on the genetic map
mqmplot.directedqtl

Plot LOD*Effect curves of a multiple-QTL model
plot.qtl

Plot QTL locations
orderMarkers

Find an initial order for markers within chromosomes
plot.scanoneperm

Plot permutation results for a single-QTL genome scan
pull.pheno

Pull out phenotype data from a cross
phenames

Pull out the phenotypes names from a cross
qtlversion

Installed version of R/qtl
refineqtl

Refine the positions of QTL
plot.scantwo

Plot LOD scores for a two-dimensional genome scan
plot.scanoneboot

Plot results of bootstrap for QTL position
pull.argmaxgeno

Pull out the results of the Viterbi algorithm from a cross
replace.map

Replace the genetic map of a cross
plotModel

Plot a QTL model
plotMissing

Plot grid of missing genotypes
read.cross

Read data for a QTL experiment
replacemap.scanone

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

Compare marker orders
rescalemap

Rescale genetic maps
pull.genoprob

Pull out the genotype probabilities from a cross
pull.map

Pull out the genetic map from a cross
plot.scantwoperm

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

Plot 1-d LOD profiles for a multiple QTL model
scanonevar.varperm

Permutation test for variance effect in scanonevar
scanonevar.meanperm

Permutation test for mean effect in scanonevar
scanoneboot

Bootstrap to get interval estimate of QTL location
readMWril

Read data for 4- or 8-way RIL
replacemap.scantwo

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

Replace a QTL in a qtl object with a different position
scanPhyloQTL

Single-QTL genome scan to map QTL to a phylogenetic tree
scanonevar

Genome scan for QTL affecting mean and/or variance
scanone

Genome scan with a single QTL model
simFounderSnps

Simulate founder SNPs for a multiple-strain RIL
reduce2grid

Reduce to a grid of pseudomarkers.
sim.map

Simulate a genetic map
shiftmap

Shift starting points in genetic maps
strip.partials

Strip partially informative genotypes
scantwopermhk

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

Stepwise selection for multiple QTL
scanqtl

General QTL scan
scantwo

Two-dimensional genome scan with a two-QTL model
reorderqtl

Reorder the QTL in a qtl object
subset.cross

Subsetting data for QTL experiment
subset.map

Subsetting chromosomes for a genetic map
simulatemissingdata

Simulates missing genotype data
simPhyloQTL

Simulate a set of intercrosses for a single diallelic QTL
subset.scanoneperm

Subsetting permutation test results
subset.scanone

Subsetting the results of a genome scan
summary.comparegeno

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

Print summary of QTL experiment
summary.qtl

Print summary of a QTL object
summary.ripple

Print summary of ripple results
summary.scanPhyloQTL

Summarize the results a genome scan to map a QTL to a phylogenetic tree
summary.scanone

Summarize the results of a genome scans
switch.order

Switch the order of markers on a chromosome
summary.scantwoperm

LOD thresholds from scantwo permutation results
subset.scantwo

Subsetting the results of a 2-d genome scan
subset.scantwoperm

Subsetting two-dimensional permutation test results
summaryMap

Print summary of a genetic map
sim.geno

Simulate genotypes given observed marker data
summary.fitqtl

Summary of fit of qtl model
top.errorlod

List genotypes with large error LOD scores
summary.scanoneperm

LOD thresholds from scanone permutation results
sim.cross

Simulate a QTL experiment
summary.scanoneboot

Bootstrap confidence interval for QTL location
table2map

Convert a table of marker positions to a map object.
totmar

Determine the total number of markers
summary.scantwo

Summarize the results of a two-dimensional genome scan
summaryScantwoOld

Summarize the results of a two-dimensional genome scan
xaxisloc.scanone

Get x-axis locations in scanone plot
switchAlleles

Switch alleles at selected markers
transformPheno

Transformation of the phenotypes in a cross object
typingGap

Maximum distance between genotyped markers
write.cross

Write data for a QTL experiment to a file
tryallpositions

Test all possible positions for a marker