Acessibilidade / Reportar erro

A program for representing and simulating population genetic phenomena

Abstracts

The paper describes a computer program for representing and simulating population genetic phenomena, such as the distribution of gene and genotype frequencies under different mating systems (panmixia, inbreeding and assortative mating systems) and under influence of evolution factors (mutation, selection, gene flow and genetic drift). The program was written in Visual Basic (Microsoft, Inc.) and is able to run in any IBM-PC compatible computer running Windows 3.1 or later versions.


O artigo descreve o funcionamento de um programa capaz de representar e simular vários fenômenos de pertinência em genética de populações, como a distribuição de freqüências gênicas e genotípicas sob regime de diversos tipos de sistemas de cruzamentos, como pan-mixia, endogamia e cruzamentos preferenciais e sob influência de fatores evolutivos como mutação, seleção, fluxo gênico e deriva genética. O programa foi desenvolvido em Visual Basic (Microsoft, Inc.) e pode ser executado em qualquer computador IBM-PC compatível, em ambiente Windows 3.1 ou versões posteriores.


METHODOLOGY

A PROGRAM FOR REPRESENTING AND SIMULATING POPULATION GENETIC PHENOMENA

Paulo A.S. Nuin and P.A. Otto

Departamento de Biologia, Instituto de Biociências, USP, Caixa Postal 11461, 05422-970

São Paulo, SP, Brasil. Send correspondence to P.A.O.

ABSTRACT

The paper describes a computer program for representing and simulating population genetic phenomena, such as the distribution of gene and genotype frequencies under different mating systems (panmixia, inbreeding and assortative mating systems) and under influence of evolution factors (mutation, selection, gene flow and genetic drift). The program was written in Visual Basic (Microsoft, Inc.) and is able to run in any IBM-PC compatible computer running Windows 3.1 or later versions.

INTRODUCTION

The WinPop program was developed for Windows 3.1 or later versions using the Visual Basic programming language; the version here described was based on earlier programs developed by groups of the Biology Department of the University of São Paulo using BASIC [PopGen (Otto and Matioli, 1987)] and PASCAL [SuperPop (Reis and Matioli, 1994)] programming languages for DOS interface. The present version is a slightly modified version of a previously developed (Nuin, 1998) and comprises different modules that represent or simulate the following: panmixia, inbreeding, assortative matings (exclusive or in admixture with panmixia), selection, random genetic drift, mutation pressure and gene flow.

RESULTS

Figure 1 shows the main interface of the program and, like all figures illustrating this article, is a bitmap retrieved from the program running in real time in an IBM PC-compatible computer. As one can see from this and from other illustrations, the present version of the program shows all legends, explanations, user instructions and text help files in Portuguese. An English version is already under preparation and shall be opportunely announced in this journal.


These phenomena are represented graphically using either the isosceles triangular coordinate system (Otto and Benedetti, 1995; see Figure 2), or the classical Cartesian rectangular system. In the triangular represention, the user can also choose to show De Finetti's parabola, that represents the set of population points in Hardy-Weinberg proportions. Initial conditions of each situation under study must be entered. The points of successive generations can be obtained manually, generation by generation, or automatically by animation. Gene and genotype frequencies are plotted automatically in the graphs for each generation. Their values and other genetic parameters of relevance are displayed simultaneously in text-boxes and in small histograms bordering the main graph. All graphs generated can be saved as bitmaps for further printing. Some simulations can be stored as text-files for inspection at a later occasion.


Figures 3 and 4 show that the panmixia module makes it possible to represent the population evolution towards the equilibrium state in the case of autosomal as well as of sex-linked alleles.



Figure 5 demonstrates that the inbreeding module presents a series of curves representing the equilibrium population points as functions of gene frequencies and the average inbreeding coefficient (or fixation index) F.


Assortative mating systems are comprehensively studied as either forbidden or sterile crossings (14 different models of each). Figures 6 and 7 show that this module includes an option that automatically generates typical representations for different initial conditions, displaying the dynamic properties of each model, with population trajectories, domains of attraction and stable and unstable equilibrium points.



Two different selection models (general and frequency-dependent) are presented in the selection module, using the triangular representation system (Figure 8) or the rectangular one, in which the graph plots differences between gene frequencies in two consecutive generations - the delta-q method (Figure 9).



Genetic drift is studied in a two-part module. The first simulates the process with or without soft selection (replacement). It enables the simultaneous study of hundreds of different populations starting with the same initial gene frequencies and the same population number. The results can be viewed either in the triangular or in the rectangular systems (Figure 10); the first system shows the genotypic frequencies as well as the parabola representing Hardy-Weinberg proportions. Simulations performed can be saved as a text that includes goodness-of-fit tests for each simulation performed. The second part of the module shows the Markovian representation of the evolution of populations of size n, including all elements of the vector of states and the transition matrix of dimensions (2n + 1) x (2n + 1), an example of which is shown in Figure 11.



The effects of uni- or bidirectional mutation or migration rates are also considered by two other modules of the program (Figures 12 and 13).



The program also contains help and text sections, the latter describing all the formulae and elementary background used to develop the program code.

REQUESTS FOR THE PROGRAM AND COMMENTS ON ITS USE

The executable program (including its non-compiled code, that can be of interest to programmers) can be ordered at no cost from Paulo A.S. Nuin (e-mail address, nuin@usp.br). A copy of the executable file - winpop.exe - will be sent via e-mail in answer to requests, together with updated auxiliary files - cmdialog.vbx, gauge.vbx, grid.vbx and threed.vbx, a copy ofvbrun300.dll and a help file - winpop.hlp. All library files (with extensions .dll and .vbx) must be copied into the windows/system directory on hard disk C; the executable program and its help file should be copied into a subdirectory created in the root C directory (e.g., c:\winpop) of the hard disk. Although it has already been tested at Evolution and Population Genetics classes at the Biology Department of the University of São Paulo, the program probably still contains some minor bugs. Comments on these and on the program itself are most welcome at the electronic address above.

ACKNOWLEDGMENTS

Research and publication supported by FAPESP.

RESUMO

O artigo descreve o funcionamento de um programa capaz de representar e simular vários fenômenos de pertinência em genética de populações, como a distribuição de freqüências gênicas e genotípicas sob regime de diversos tipos de sistemas de cruzamentos, como pan-mixia, endogamia e cruzamentos preferenciais e sob influência de fatores evolutivos como mutação, seleção, fluxo gênico e deriva genética. O programa foi desenvolvido em Visual Basic (Microsoft, Inc.) e pode ser executado em qualquer computador IBM-PC compatível, em ambiente Windows 3.1 ou versões posteriores.

(Received April 8, 1999)

  • Nuin, P.A.S. (1998). Desenvolvimento de um programa de genética de populaçőes com aplicaçőes didáticas e de pesquisa. Master's thesis, Departamento de Biologia do Instituto de Biocięncias da USP, Săo Paulo, SP.
  • Otto, P.A. and Benedetti, L.A. (1995). A note on the graphical representation of genotype frequencies in population genetics. J. Hered. 86: 163-164.
  • Otto, P.A. and Matioli, S.R. (1987). PopGen. Population Genetics Program using the BASIC language. Complete listing in Nuin (1998), pp. 1-10.
  • Reis, E.A. and Matioli, S.R. (1994). SuperPop. Population Genetics Program using the PASCAL language. Complete listing in Nuin (1998), pp. 14-29.

Publication Dates

  • Publication in this collection
    25 Aug 2000
  • Date of issue
    Mar 2000

History

  • Received
    08 Apr 1999
Sociedade Brasileira de Genética Rua Cap. Adelmio Norberto da Silva, 736, 14025-670 Ribeirão Preto SP Brazil, Tel.: (55 16) 3911-4130 / Fax.: (55 16) 3621-3552 - Ribeirão Preto - SP - Brazil
E-mail: editor@gmb.org.br