This lab is from A-Level and IB, and it is not in the NEET syllabus. A pest has a recessive resistance allele with frequency . You will write one generation of selection and then count the generations until the allele reaches a frequency of , with and without a refuge.
The idea. With a refuge of a share of the area, the effective loss of fitness is . For an effective loss , the mean fitness is , and the new frequency is .
Your tasks.
next_q. It gives the frequency after one generation of selection with the effective loss s_eff.generations. It gives the number of generations until q reaches , for a refuge of the share refuge.slows_down. It gives True if the refuge makes the resistance take more generations than no refuge.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…