Learn R Programming

⚠️There's a newer version (2.1.11) of this package.Take me there.

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

14,047

Version

2.1.8

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Zhian N. Kamvar

Last Published

October 2nd, 2022

Functions in adegenet (2.1.8)

Hs

Expected heterozygosity (Hs)
AICc

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

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

Test differences in expected heterozygosity (Hs)
Accessors

Accessors for adegenet objects
H3N2

Seasonal influenza (H3N2) HA segment data
HWE.test.genind

Hardy-Weinberg Equilibrium test for multilocus data
compoplot

Genotype composition plot
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
a-score

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

Auxiliary functions for adegenet
adegenet.package

The adegenet package
as.SNPbin

Conversion to class "SNPbin"
as.genlight

Conversion to class "genlight"
chooseCN

Function to choose a connection network
colorplot

Represents a cloud of points with colors
fasta2genlight

Extract Single Nucleotide Polymorphism (SNPs) from alignments
fasta2DNAbin

Read large DNA alignments into R
eHGDP

Extended HGDP-CEPH dataset
df2genind

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

Simulated data illustrating the DAPC
.internal_C_routines

Internal C routines
dist.genpop

Genetic distances between populations
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
glPca

Principal Component Analysis for genlight objects
glPlot

Plotting genlight objects
genpop class

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

Auxiliary functions for genlight objects
genind2df

Convert a genind object to a data.frame.
genind class

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

Formal class "genlight"
gengraph

Genetic transitive graphs
genind2genpop

Conversion from a genind to a genpop object
hybridtoy

Toy hybrid dataset
find.clusters

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

Importing data from several softwares to a genind object
loadingplot

Represents a cloud of points with colors
hier

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

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

Simulation of simple genlight objects
pairDistPlot

Pairwise distance plots
findMutations

Identify mutations between DNA sequences
monmonier

Boundary detection using Monmonier algorithm
makefreq

Compute allelic frequencies
haploGen

Simulation of genealogies of haplotypes
setPop

Manipulate the population factor of genind objects.
isPoly-methods

Assess polymorphism in genind/genpop objects
Inbreeding estimation

Likelihood-based estimation of inbreeding
microbov

Microsatellites genotypes of 15 cattle breeds
minorAllele

Compute minor allele frequency
nancycats

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

genind constructor
extract.PLINKmap

Reading PLINK Single Nucleotide Polymorphism data
read.snp

Reading Single Nucleotide Polymorphism data
read.fstat

Reading data from Fstat
read.structure

Reading data from STRUCTURE
read.genepop

Reading data from Genepop
read.genetix

Reading data from GENETIX
Adegenet servers

Web servers for adegenet
propTyped-methods

Compute the proportion of typed elements
seqTrack

SeqTrack algorithm for reconstructing genealogies
repool

Pool several genotypes into a single dataset
SequencesToGenind

Importing data from an alignement of sequences to a genind object
initialize,genpop-method

genpop constructor
propShared

Compute proportion of shared alleles
old2new_genind

Convert objects with obsolete classes into new objects
seploc

Separate data per locus
selPopSize

Select genotypes of well-represented populations
rupica

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

When you need a break...
scaleGen

Compute scaled allele frequencies
seppop

Separate genotypes per population
snpzip

Identification of structural SNPs
snpposi

Analyse the position of polymorphic sites
snapclust.choose.k

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

Spatial principal component analysis
truenames

Restore true labels of an object
sim2pop

Simulated genotypes of two georeferenced populations
global.rtest

Global and local tests
swallowtails

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

Maximum-likelihood genetic clustering using EM algorithm
strata

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

Monte Carlo test for sPCA
virtualClasses

Virtual classes for adegenet
spcaIllus

Simulated data illustrating the sPCA
tab

Access allele counts or frequencies
adegenetWeb

Functions to access online resources for adegenet
DAPC cross-validation

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

Formal class "SNPbin"
AIC.snapclust

Compute Akaike Information Criterion (AIC) for snapclust
BIC.snapclust

Compute Bayesian Information Criterion (BIC) for snapclust