hwfreq.py

Created by elodie-gamot

Created on April 27, 2022

347 Bytes

Script à compléter afin de calculer automatiquement les fréquences génotypiques dans une population à la génération actuelle puis la suivante.


E1=int(input("E1="))
E2=int(input("E2="))
E3=int(input("E3="))
pop= ...
print("On a :")
print("f1=",round(.../pop,3))
print("f2=",round(.../pop,3))
print("f3=",round(.../pop,3))
p=(E1+0.5*E2)/pop
q=(E3+0.5*E2)/pop
print("Et à la génération suivante :")
print("f1=",round(...,3))
print("f2=",round(...,3))
print("f3=",round(...,3))

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.