Learn R Programming

adegenet

adegenet: a R Package for the Multivariate Analysis of Genetic Markers

This wiki is dedicated to the development of adegenet. It is relevant for developers of the package, developers of other packages depending on adegenet, and for users who want to be using the latest features as well.

The adegenet website is available at http://adegenet.r-forge.r-project.org/.

The following sections are available:

Copy Link

Version

Install

install.packages('adegenet')

Monthly Downloads

9,262

Version

2.1.11

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Zhian N. Kamvar

Last Published

February 6th, 2025

Functions in adegenet (2.1.11)

as.SNPbin

Conversion to class "SNPbin"
compoplot

Genotype composition plot
a-score

Compute and optimize a-score for Discriminant Analysis of Principal Components (DAPC)
as.genlight

Conversion to class "genlight"
coords.monmonier

Returns original points in results paths of an object of class 'monmonier'
as methods in adegenet

Converting genind/genpop objects to other classes
adegenet.package

The adegenet package
Auxiliary functions

Auxiliary functions for adegenet
colorplot

Represents a cloud of points with colors
chooseCN

Function to choose a connection network
dist.genpop

Genetic distances between populations
dapcIllus

Simulated data illustrating the DAPC
export_to_mvmapper

Export analysis for mvmapper visualisation
eHGDP

Extended HGDP-CEPH dataset
dapc

Discriminant Analysis of Principal Components (DAPC)
.internal_C_routines

Internal C routines
df2genind

Convert a data.frame of allele data to a genind object.
fasta2DNAbin

Read large DNA alignments into R
fasta2genlight

Extract Single Nucleotide Polymorphism (SNPs) from alignments
dapc graphics

Graphics for Discriminant Analysis of Principal Components (DAPC)
genind2genpop

Conversion from a genind to a genpop object
glPlot

Plotting genlight objects
find.clusters

find.cluster: cluster identification using successive K-means
glPca

Principal Component Analysis for genlight objects
gengraph

Genetic transitive graphs
genind class

adegenet formal class (S4) for individual genotypes
genpop class

adegenet formal class (S4) for allele counts in populations
genlight-class

Formal class "genlight"
genlight auxiliary functions

Auxiliary functions for genlight objects
hybridtoy

Toy hybrid dataset
genind2df

Convert a genind object to a data.frame.
Inbreeding estimation

Likelihood-based estimation of inbreeding
hier

Access and manipulate the population hierarchy for genind or genlight objects.
loadingplot

Represents a cloud of points with colors
import2genind

Importing data from several softwares to a genind object
glSim

Simulation of simple genlight objects
isPoly-methods

Assess polymorphism in genind/genpop objects
hybridize

Function hybridize takes two genind in inputs and generates hybrids individuals having one parent in both objects.
makefreq

Compute allelic frequencies
haploGen

Simulation of genealogies of haplotypes
initialize,genpop-method

genpop constructor
monmonier

Boundary detection using Monmonier algorithm
old2new_genind

Convert objects with obsolete classes into new objects
nancycats

Microsatellites genotypes of 237 cats from 17 colonies of Nancy (France)
initialize,genind-method

genind constructor
pairDistPlot

Pairwise distance plots
setPop

Manipulate the population factor of genind objects.
microbov

Microsatellites genotypes of 15 cattle breeds
findMutations

Identify mutations between DNA sequences
read.snp

Reading Single Nucleotide Polymorphism data
minorAllele

Compute minor allele frequency
extract.PLINKmap

Reading PLINK Single Nucleotide Polymorphism data
propShared

Compute proportion of shared alleles
read.structure

Reading data from STRUCTURE
propTyped-methods

Compute the proportion of typed elements
repool

Pool several genotypes into a single dataset
read.fstat

Reading data from Fstat
SequencesToGenind

Importing data from an alignement of sequences to a genind object
seqTrack

SeqTrack algorithm for reconstructing genealogies
read.genepop

Reading data from Genepop
read.genetix

Reading data from GENETIX
seploc

Separate data per locus
selPopSize

Select genotypes of well-represented populations
seppop

Separate genotypes per population
scaleGen

Compute scaled allele frequencies
sim2pop

Simulated genotypes of two georeferenced populations
snapclust

Maximum-likelihood genetic clustering using EM algorithm
rupica

Microsatellites genotypes of 335 chamois (Rupicapra rupicapra) from the Bauges mountains (France)
snpzip

Identification of structural SNPs
spca

Spatial principal component analysis
spcaIllus

Simulated data illustrating the sPCA
snpposi

Analyse the position of polymorphic sites
snapclust.choose.k

Choose the number of clusters for snapclust using AIC, BIC or AICc
spca_randtest

Monte Carlo test for sPCA
strata

Access and manipulate the population strata for genind or genlight objects.
global.rtest

Global and local tests
Adegenet servers

Web servers for adegenet
showmekittens

When you need a break...
swallowtails

Microsatellites genotypes of 781 swallowtail butterflies from 40 populations in Alberta and British Columbia, Canada
adegenetWeb

Functions to access online resources for adegenet
DAPC cross-validation

Cross-validation for Discriminant Analysis of Principal Components (DAPC)
tab

Access allele counts or frequencies
truenames

Restore true labels of an object
virtualClasses

Virtual classes for adegenet
AIC.snapclust

Compute Akaike Information Criterion (AIC) for snapclust
SNPbin-class

Formal class "SNPbin"
KIC

Compute Akaike Information Criterion for small samples (AICc) for snapclust
Hs

Expected heterozygosity (Hs)
AICc

Compute Akaike Information Criterion for small samples (AICc) for snapclust
Hs.test

Test differences in expected heterozygosity (Hs)
BIC.snapclust

Compute Bayesian Information Criterion (BIC) for snapclust
H3N2

Seasonal influenza (H3N2) HA segment data
Accessors

Accessors for adegenet objects
HWE.test.genind

Hardy-Weinberg Equilibrium test for multilocus data