These S3 and S4 methods are used to coerce genind and genpop objects to matrix-like objects. In most cases, this is equivalent to calling the @tab slot. An exception to this is the convertion to ktab objects used in the ade4 package as inputs for K-tables methods (e.g. Multiple Coinertia Analysis).
spca
(Package: adegenet) :
Spatial principal component analysis
These functions are designed to perform a spatial principal component analysis and to display the results. They call upon multispati from the ade4 package.
The function propShared computes the proportion of shared alleles in a set of genotypes (i.e. from a genind object). Current implementation works for any level of ploidy.
import2genind
(Package: adegenet) :
Importing data from several softwares to a genind object
Their are several ways to import genotype data to a genind object: i) from a data.frame with a given format (see df2genind), ii) from a file with a recognized extension, or iii) from an alignement of sequences (see DNAbin2genind).
haploGen
(Package: adegenet) :
Simulation of genealogies of haplotypes
The function haploGen implements simulations of genealogies of haplotypes. This forward-time, individual-based simulation tool allows haplotypes to replicate and mutate according to specified parameters, and keeps track of their genealogy.
The function new has a method for building genpop objects. See the class description of genpop for more information on this data structure. The functions genpop and as.genpop are aliases for new("genpop", ...).
DAPC cross-validation
(Package: adegenet) :
Cross-validation for Discriminant Analysis of Principal Components (DAPC)
The function xvalDapc performs stratified cross-validation of DAPC using varying numbers of PCs (and keeping the number of discriminant functions fixed); xvalDapc is a generic with methods for data.frame and matrix.
selPopSize
(Package: adegenet) :
Select genotypes of well-represented populations
The function selPopSize checks the sample size of each population in a genind object and keeps only genotypes of populations having a given minimum size.
The class SNPbin is a formal (S4) class for storing a genotype of binary SNPs in a compact way, using a bit-level coding scheme. This storage is most efficient with haploid data, where the memory taken to represent data can reduced more than 50 times. However, SNPbin can be used for any level of ploidy, and still remain an efficient storage mode.