FORMATOMATIC: a program for converting diploid allelic data between common formats for population genetic analysis.

Population genetic analysis programs are becoming ever more sophisticated and specialized. At the same time, the size of data sets being analysed with them is also increasing, thanks to automation and high-throughput molecular techniques. This combination requires ever more manipulation of large data sets into several specialized formats to be used by a combination of programs for population genetic analysis. Illustrating the problem, a recent review by Excoffier & Heckel (2006) discusses over 20 computer programs that together provide a powerful pallet of analytical options, but which between them employ dozens of file types. Formatting a large gentoypic data set for use with these and other programs necessitates automated tools to avoid errors and time expenditure on repetitive tasks. formatomatic is a simple program designed to automate the task of converting files containing diploid allelic data between formats needed for population genetic analysis. It does not, as a rule, produce files that can be used immediately by an analysis program. Usually, run options, metadata and other details required by a particular program and analysis must be set by the user. However, with formatomatic, I aim to reduce or eliminate the error prone and time-consuming task of re-formatting the actual data set. formatomatic complements the functionality offered by another specialized file conversion tool, convert (Glaubitz 2004) and the data-importation abilities of some analysis programs. Three specific advantages of formatomatic are worth highlighting: (i) the program is cross-platform, written in the Java programming language. It runs on any computer that has the Java Virtual Machine installed, including versions of Microsoft Windows, Apple Mac OS X, Unix and GNU/Linux. (ii) formatomatic is very easy to use. It consists of a simple graphical user interface where in-file and out-file names are set and formats selected. (iii) The source code is available for inspection and modification under the terms of the GPL, or General Public License. This permits users to add and contribute functionality as well as audit exactly how their data are being reformatted. As of this writing, formatomatic can convert from files in genepop (Raymond & Rousset 1995), raw (csv) or convert (Glaubitz 2004) formats to raw (csv), arlequin (Excoffier et al. 2005), genepop, immanc/bayesass + (Rannala & Mountain 1997), migrate (Beerli 2006), newhybrids (Anderson & Thompson 2002), msvar (Beaumont 1999), baps (Corander et al. 2004) or structure (Pritchard et al. 2000; Falush et al. 2003) files. Documentation included with the program download provides more details on running formatomatic and on the file formats it can accept or produce. The program and documentation may be downloaded from: http://taylor0.biology.ucla.edu/∼manoukis/Pub_programs/Formatomatic. Together with the aforementioned convert and the import capability of some of the analysis programs, files in one of formatomatic's in-formats can be transformed for use with 15 of the 23 analysis programs highlighted by Excoffier & Heckel (2006) as essential. formatomatic specifically supports creation of files for immanc/bayesass +, migrate, newhybrids, msvar and baps, which are not currently supported by others. I plan to add further input or output formats as new analysis programs are released or as requested by users, when possible. Contributions to the source code are encouraged.