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

11,025

Version

2.1.10

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 26th, 2023

Functions in adegenet (2.1.10)

AIC.snapclust

Compute Akaike Information Criterion (AIC) for snapclust
Hs

Expected heterozygosity (Hs)
KIC

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

Compute Bayesian Information Criterion (BIC) for snapclust
AICc

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

Hardy-Weinberg Equilibrium test for multilocus data
Accessors

Accessors for adegenet objects
Hs.test

Test differences in expected heterozygosity (Hs)
H3N2

Seasonal influenza (H3N2) HA segment data
SNPbin-class

Formal class "SNPbin"
compoplot

Genotype composition plot
chooseCN

Function to choose a connection network
as.SNPbin

Conversion to class "SNPbin"
a-score

Compute and optimize a-score for Discriminant Analysis of Principal Components (DAPC)
Auxiliary functions

Auxiliary functions for adegenet
coords.monmonier

Returns original points in results paths of an object of class 'monmonier'
colorplot

Represents a cloud of points with colors
as.genlight

Conversion to class "genlight"
as methods in adegenet

Converting genind/genpop objects to other classes
adegenet.package

The adegenet package
dist.genpop

Genetic distances between populations
df2genind

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

Simulated data illustrating the DAPC
.internal_C_routines

Internal C routines
fasta2DNAbin

Read large DNA alignments into R
eHGDP

Extended HGDP-CEPH dataset
dapc

Discriminant Analysis of Principal Components (DAPC)
dapc graphics

Graphics for Discriminant Analysis of Principal Components (DAPC)
export_to_mvmapper

Export analysis for mvmapper visualisation
fasta2genlight

Extract Single Nucleotide Polymorphism (SNPs) from alignments
genind class

adegenet formal class (S4) for individual genotypes
genlight-class

Formal class "genlight"
genpop class

adegenet formal class (S4) for allele counts in populations
gengraph

Genetic transitive graphs
genlight auxiliary functions

Auxiliary functions for genlight objects
glPlot

Plotting genlight objects
glPca

Principal Component Analysis for genlight objects
genind2genpop

Conversion from a genind to a genpop object
find.clusters

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

Convert a genind object to a data.frame.
loadingplot

Represents a cloud of points with colors
hybridize

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

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

Toy hybrid dataset
import2genind

Importing data from several softwares to a genind object
glSim

Simulation of simple genlight objects
makefreq

Compute allelic frequencies
Inbreeding estimation

Likelihood-based estimation of inbreeding
isPoly-methods

Assess polymorphism in genind/genpop objects
haploGen

Simulation of genealogies of haplotypes
nancycats

Microsatellites genotypes of 237 cats from 17 colonies of Nancy (France)
findMutations

Identify mutations between DNA sequences
pairDistPlot

Pairwise distance plots
initialize,genind-method

genind constructor
setPop

Manipulate the population factor of genind objects.
monmonier

Boundary detection using Monmonier algorithm
microbov

Microsatellites genotypes of 15 cattle breeds
minorAllele

Compute minor allele frequency
initialize,genpop-method

genpop constructor
old2new_genind

Convert objects with obsolete classes into new objects
rupica

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

Pool several genotypes into a single dataset
read.snp

Reading Single Nucleotide Polymorphism data
read.structure

Reading data from STRUCTURE
read.genepop

Reading data from Genepop
extract.PLINKmap

Reading PLINK Single Nucleotide Polymorphism data
read.genetix

Reading data from GENETIX
propShared

Compute proportion of shared alleles
read.fstat

Reading data from Fstat
Adegenet servers

Web servers for adegenet
seqTrack

SeqTrack algorithm for reconstructing genealogies
propTyped-methods

Compute the proportion of typed elements
snapclust

Maximum-likelihood genetic clustering using EM algorithm
SequencesToGenind

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

Simulated genotypes of two georeferenced populations
selPopSize

Select genotypes of well-represented populations
seploc

Separate data per locus
showmekittens

When you need a break...
scaleGen

Compute scaled allele frequencies
seppop

Separate genotypes per population
swallowtails

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

Analyse the position of polymorphic sites
spca_randtest

Monte Carlo test for sPCA
snapclust.choose.k

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

Identification of structural SNPs
strata

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

Spatial principal component analysis
DAPC cross-validation

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

Functions to access online resources for adegenet
tab

Access allele counts or frequencies
virtualClasses

Virtual classes for adegenet
truenames

Restore true labels of an object
global.rtest

Global and local tests
spcaIllus

Simulated data illustrating the sPCA