Learn R Programming

pcadapt

R package {pcadapt} was developed to detect genetic markers involved in biological adaptation. This package uses statistical tools for outlier detection based on Principal Component Analysis (PCA).

A tutorial for {pcadapt} is available on pcadapt's website.

News: Our paper describing version 4 of pcadapt (which has been available for quite some time now) is out. Please cite the newest paper (see Refs below).

Installation

# From CRAN
install.packages("pcadapt")

# From GitHub
remotes::install_github("bcm-uga/pcadapt")

References

Copy Link

Version

Install

install.packages('pcadapt')

Monthly Downloads

845

Version

4.4.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Florian Privé

Last Published

July 25th, 2025

Functions in pcadapt (4.4.1)

qq_plot

p-values Q-Q Plot
run.pcadapt

Shiny app
vcf_convert

Convert vcfR genotype matrices
vcf2pcadapt

vcfR-based converter
writeBed

Write PLINK files
scree_plot

Principal Components Analysis Scree Plot
get.pop.names

Retrieve population names
bed2matrix

Convert a bed to a matrix
get.pc

Get the principal component the most associated with a genetic marker
plot.pcadapt

pcadapt visualization tool
read.pcadapt

File Converter
pcadapt

Principal Component Analysis for outlier detection
ped2pcadapt

Convert ped files
score_plot

Principal Components Analysis Scores Plot
manhattan_plot

Manhattan Plot
print_convert

Summary
hist_plot

Neutral Distribution Estimation
get.score.color

Population colorization
get_statistics

pcadapt statistics