C programs for population genetics


Important Notice;

Use the programs on your own responsibility. I DO NOT guarantee for any results.

Genealogy programs

Simle Genealogy

genealogy101.c

A genealogy program (No recombination, No population subdivision, No change in pop_size. No selection.) revised in 01/05/03 by Hitoshi Araki

Inputs

theta, sample_size, number_of_replications, random_seed

Outputs

Ave[Ttot], Var[Ttot], Ave[S], Var[S] in replications, and Mutation frequency spectrum.

embedded version of (ge101.c, gefuncs.c, stat.c, ge.h).

genealogy102.c

A genealogy program (No recombination, No population subdivision, No change in pop_size. No selection.) revised in 01/05/03 by Hitoshi Araki

Inputs

theta, sample_size, number_of_replications, random_seed

Outputs

Sample sequences, Ave[Ttot], Var[Ttot], Ave[S], Var[S] in replications, and Mutation frequency spectrum.

embedded version of (ge102.c, gefuncs.c, stat.c, ge.h).

Genealogy with bottleneck

genealogy201.c

A genealogy program with bottleneck in past (No recombination, No population subdivision, No selection.) revised in 01/05/03 by Hitoshi Araki

Inputs

theta, sample_size, number_of_replications, time_of_size_change, bottleneck_factor, random_seed

Outputs

Ave[Ttot], Var[Ttot], Ave[S], Var[S] in replications, and Mutation frequency spectrum.

embedded version of (ge201.c, gefuncs.c, stat.c, ge.h).

genealogy202.c

A genealogy program with bottleneck in past (No recombination, No population subdivision, No selection.) revised in 01/05/03 by Hitoshi Araki

Inputs

theta, sample_size, number_of_replications, time_of_size_change, bottleneck_factor, random_seed

Outputs

Sample sequences, Ave[Ttot], Var[Ttot], Ave[S], Var[S] in replications, and Mutation frequency spectrum.

embedded version of (ge201.c, gefuncs.c, stat.c, ge.h).

Random generator

drand48.c (direct link to the program file)

Random number generator between 0 and 1.
Link this program of a program requires drand48()
if there is no drand48() in stdlib.h of your OS.