Script for converting biallelic individual SNP genotype data into per-locus population-level allele count data for use with TreeMix
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This program takes diploid biallelic SNP genotype data and converts it into population-level allele count data for use in the program TreeMix (

The input file should contain a header row with column names, and each row below that corresponds to one individual. The first column is the sample name, and the second column is the population name. All remaining rows are comma-separated genotypes for each locus. See the included data file (sample_dataset.txt) for an example of how input data must be arranged.

Usage: perl --in [file] --pops [int] --loci [int] --out [file]