The Creation of a Hardy-Weinberg Calculator for Five Alleles Utilizing Python Coding Language

CSEF · 2018 Computational Systems & Analysis

Overview

Objectives/Goals The objective of this project is to create a pair of calculators for the Hardy-Weinberg equations using Python coding language. Methods/Materials A computer and Python coding software were used in this project. Results This project was successfully completed. The calculators developed in this project enable the user to calculate the genotype and allele frequencies in a population with up to five alleles. These are the only Hardy-Weinberg equations calculators that can calculate from genotype to allele frequency. Conclusions/Discussion The goal of this project was to create a pair of calculators for the Hardy-Weinberg equations. The goal was achieved in this project. This project improves upon existing versions by allowing the user to calculate allele and genotype frequencies for a multi-allele gene. The Hardy-Weinberg equations are an inexpensive and noninvasive means of determining the frequency of a genetic disease in a given population. These calculators can also be used to easily calculate the frequency of other health-related genotypes. For example, the frequencies of blood types in a population can be found with these calculators. This is critical information for hospitals and blood banks. The function of these calculators is especially important with the growing understanding of the influence of genetics on health.

Summary statement

I created a pair of calculators for the Hardy-Weinberg equations that can calculate both allele and genotype frequency in a population using up to five alleles.

Help received

I did internet research on Python coding. I based my work on previous work done on programming quadratic equations. I was mentored by Tyler Sutterley, a software engineer. I wrote my own code and did all of my work at school or at home.

Competition history

  • CSEF 2018 Computational Systems & Analysis · Entry J0805

Resources

Related projects

Closest projects by meaning, across every fair and year in the corpus.

Browse more like this

Source: California Science & Engineering Fair public projects

Save projects to your library

Sign in with Google to keep track of projects you find interesting, organized into folders. An account also raises your daily allowance for “Has this been done?”, and lets you create a key for the MCP server with a much higher limit than anonymous use. Browsing stays public.

Continue with Google