Learn R Programming

PopGenKit (version 1.0)

jacklociArpRANDOM: Remove a random subset of loci from a Arlequin project file (extension .arp)

Description

This function will create a new .arp file with only a random subset of the loci in the original dataset.

Usage

jacklociArpRANDOM(datafile, n.retain)

Arguments

datafile
Name of the file to jackknife, with the extension (e.g. 'glyptemys3.arp').
n.retain
Number of loci to keep in final file (must be between 1 and the number of loci in input file)

Value

  • A new .arp file will be saved in the working directory, with a suffix in the filename indicating the number of loci that were kept.

Details

This function is useful to investigate the effect of the number of sampled loci on population genetics parameter estimates. 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 file and convert it first with convert. For converting multiple files, use the function batchjacklociArpRANDOM instead.

References

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

See Also

batchjacklociArpRANDOM, convert