Learn R Programming

R/lineup: detecting and correcting sample mix-ups

R/lineup is an R package with tools for detecting and correcting sample mix-ups between two sets of measurements, such as between gene expression data on two tissues.

This is particularly aimed at eQTL data for an experimental cross.


Installation

Install the R/lineup package from CRAN:

install.packages("lineup")

Alternatively, install it from R universe:

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

Or use remotes to install it from its GitHub source:

install.packages("remotes")
remotes::install_github("kbroman/lineup")

Vignette

A vignette describing the use of the package is available on the web. Or view it from within R by loading the package and then using the vignette() function.

library(lineup2)
vignette("lineup", package="lineup")

Citation

To cite R/lineup in publications use

  • Broman KW, Keller MP, Broman AT, Kendziorski C, Yandell BS, Sen Ś, Attie AD (2015) Identification and correction of sample mix-ups in expression genetic data: A case study. G3 5:2177-2186 doi:10.1534/g3.115.019778

License

This 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('lineup')

Monthly Downloads

334

Version

0.46

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Karl Broman

Last Published

July 15th, 2026

Functions in lineup (0.46)

plot2dist

Plot two sets of inter-individual distances against one another
summary.lineupdist

Summarize inter-individual distances
combinedist

Combine distance matrices into a single such
fscale

Standardize the columns of a matrix
f2cross

Example experimental cross data
disteg

Calculate distance between two gene expression data sets
calc.locallod

Calculate LOD score at physical position of each gene
find.gene.pseudomarker

Find nearest peudomarker to each gene
distee

Calculate distance between two gene expression data sets
findCommonID

Find individuals in common between a cross and a phenotype matrix
expr-data

Example gene expression data
corbetw2mat

Calculate correlations between columns of two matrices
pmap

Physical map of markers
plotEGclass

Plot classifier of eQTL genotype from expression data
lineupversion

Installed version of R/lineup
omitdiag

Replace the diagonal in a distance matrix with missing values
plot.lineupdist

Plot summary of inter-individual distances
genepos

Genomic positions of genes in simulated expression data
pulldiag

Pull out the diagonal from a distance matrix
subset.lineupdist

Subsetting distance matrix
lineup-package

lineup: Lining Up Two Sets of Measurements