batchrecodeBi: Transform all multi-allelic Arlequin datafiles in dir to...

Description Usage Arguments Details Value Author(s) References See Also

Description

This function transforms datasets with multi-allelic markers (e.g. microsatellites) to bi-allelic datasets, where all alleles but one (usually the most frequent) are pooled together to form a second allelic class. All files should comprise the same markers because the same alleles (e.g. simulation replicates from the same data) will be retained for all files.

Usage

1
batchrecodeBi(major.alleles)

Arguments

major.alleles

A vector listing which allele to retain for each locus. Length of this vector should be equal to the number of markers in datafile.

Details

Because several population genetics parameter estimates are affected by the level of polymorphism of loci (e.g. Fst), it may be useful to recode multi-allelic markers to a bi-allelic state. For instance, this could allow the comparison of Fst values for microsatellites and single nucleotide polymorphisms (SNPs). McDonald (1994) introduced this as F2st, and it has been used elsewhere (e.g. Allendorf and Seeb 2000).

The only .arp files in the working directory should be those to recode.

The function popgen provides a quick way to obtain allele frequencies in order to determine which alleles are the most frequent, within populations or overall.

Some .arp files might not be imported correctly depending on which software was used to generate them. If this is the case, start from the Genepop files and convert them first with batchconvert.

Value

All Arlequin files coded in bi-allelic format and the Arlequin batch file are saved in the working directory.

Author(s)

Sebastien Rioux Paquette

References

Allendorf, F.W. and L.W. Seeb (2000) Concordance of genetic divergence among sockeye salmon populations at allozyme, nuclear DNA, and mitochondrial DNA markers. Evolution 54: 640-651.

Excoffier, L. and H.E.L. Lischer (2010). Arlequin suite ver 3.5: A new series of programs to perform population genetics analyses under Linux and Windows. Mol. Ecol. Res. 10: 564-567.

McDonald, J.H. (1994) Detecting natural selection by comparing geographic variation in protein and DNA polymorphisms. Pages 88-100 in Golding B, ed. Non-neutral evolution: theories and molecular data. New York: Chapman and Hall.

Rousset, F. (2008). Genepop'007: a complete reimplementation of the Genepop software for Windows and Linux. Mol. Ecol. Res. 8: 103-106.

See Also

recodeBi


PopGenKit documentation built on May 2, 2019, 3:33 p.m.