Presentation on theme: "Hardy-Weinberg Lab. Materials MS Excel ESTEEM module at: - or-"— Presentation transcript:
Materials MS Excel ESTEEM module at: - or- product_id=193# (a downloadable Excel book – must register at BioQuest) product_id=193# Allele1 at Folder/AlleleA1.html Folder/AlleleA1.html A ‘save early, save often’ attitude
Lab Goals 1.Students will build a spreadsheet that models how a hypothetical gene pool changes from one generation to the next 2.Students will generate their own questions regarding the evolution of gene alleles in a population, and then 3.Explore possible answers to those questions using a more sophisticated model than the one they created in Step 1.
Student “Prerequisites” 1.Know what the ‘null hypothesis’ is. 2.Have some familiarity with Excel. 1.This includes entering numbers, labels, and formulas and functions such as the SUM function 2.Creating graphs 3.Using logical statements such as the IF and SUM statements 3.Evaluate given data sets.
Lab Question How do inheritance patterns or allele frequencies change in a population? Assume a diploid organism Instead of “A-a” to represent alleles, it is easier in a spreadsheet to use “A-B” to represent a pair of alleles. Assume the infinite: all into one gene pool, all live to juvenile stage, all live to adults, none leave or enter, and no mutations. Gametes Zygotes Juveniles Adults
Lab Procedure First, model how allele frequencies change through one lifecycle using a spreadsheet. Have computer randomly draw gametes form the pool Let p = frequency of allele A and Let q = frequency of allele B
Lab Procedure 1.Start Excel. 2.Select cell D4. 3.Type p = frequency of allele A = and then press Enter. 4.In D5, type q = frequency of allele B = and then press Enter.
Lab Procedure 5.Now, place your pointer on the solid line between the column headings ‘D’ and ‘E’. 6.When the pointer changes shape, double-click. 7.The column resizes to a ‘best fit.’
Lab Procedure 8.Now, click in cell E4. 9.Type 0.6 and press Enter. Save your work!
Lab Procedure 10.In cell E5, type =1-E4 and press Enter. 11.The results of the calculation appear in E5.
Lab Procedure 12.Click and drag from D4 to E5. 13.On the ‘Home’ tab, click the ‘Fill Color’ paint bucket and shade these cells a color of your own choosing.
Lab Procedure 14.Select cell C2. 15.Type =rand() and then press Enter. 16.Press the F9 key a few times to see RAND in action. 17.Delete the RAND function from C2.
Lab Procedure 18.Select cell F7, type gametes, and then press Enter. 19.Now, select cells F7 and G7; apply an underline to them using the Home ribbon (look for a “U”) 20.On the ‘Home’ ribbon, click the ‘Merge & Center’ button.
Lab Procedure 21.Now, set up ‘The Randomizer’ to select one of your alleles. 22.Select cell F8 and enter the following but DO NOT press Enter yet: =if(rand()>=E4 23.Press the F4 key once – E4 changes to $E$4. 24.Press the F4 key again – now $E$4 changes to E$4. Good. 25.Still in F8, type this:,“A”,“B”) – and THEN press Enter. 26.Build the EXACT SAME formula in cell G8. Save your work!
Lab Procedure 27.Next, Press the F9 key to make ‘The Randomizer’ recalculate (or else you’ll just get the same results over and over, right?). 28.Press the F9 key times and watch what happens. 29.Select cell E4 and try higher and lower p-values; for example what would you expect if you changed p to 0.8 (and you have 2 cells using that value)? 30.Predict what will happen before you press F9 on these trials.
Lab Procedure 31.You *could* just record with paper and pencil these ‘press F9’ recalculations. But what if you want a larger number, *and* you want Excel to graph the results? 32.Click and drag over cells F8 and G8. 33.Locate the solid black ‘fill handle’ in the lower right corner of the cell border – drag that down to row 23.
Lab Procedure 34.That gives you 16 offspring. Now let’s build some zygotes! 35.In cell H7, type zygotes and press Enter. 36.Now enter a cell function that ‘sews together’ whatever is in the two gamete cells next to it. In H8, type =concatenate(F8,G8) and then press Enter. 37.The results show a zygote with a genotype. Aw, cute! 38.Use the fill handle to fill this down to row 23 as well. Save your work!
Lab Procedure 39.Next you’ll track some results. Select cell i6, type genotype count and press Enter. 40.Click & drag from i6 to K6. Merge & center. 41.Select cell i7. Type AA and press Tab. 42.Type AB and press Tab. Type BB and press Enter. 43.Now select cell i8. Type =if(H8=“AA”,1,0) and press Tab twice.
Lab Procedure 44.In cell K8, type =if(H8=“BB”,1,0) and press Tab. 45.Now select the middle cell, J8. This cell can be either ‘AB’ or ‘BA’ – so we’ve got to outsmart it. 46.In J8, type =if(H8=“AB”,1,(if(H8=“BA”,1,0))) and press Enter. 47.That was called a “nested IF” statement. Now click and drag over cells I8, J8, and K8. 48.Fill those formulas down to row Check to make sure you entered these formulas correctly; no row should have a ‘1’ in more than one cell. Save your work!
Lab Procedure 50.Press the F9 key a number of times now. Check to make sure the functions and formulas you have entered are working properly. What is the expected outcome in the genotype area? If you aren’t sure, set the p-value to 0.5 and press F9 a few times. Now what’s the expected pattern? 51.Now let’s create some areas we can use to chart the results. Click cell H25. Type Genotype Totals and press Tab. 52.In i25, type =sum(i8:i23) and press Enter. 53.Fill this function into both cells to the right.
Lab Procedure 54.Select cell H28, type gamete percent and press Tab. 55.In i27, type =i25 and press Enter. 56.In i28, type this: ‘ and press Enter. 57.In i29, type 16 and press Enter. 58.Click and drag from i7 to K7. Copy those cells. Click on i24 and paste the copied cells into place. 59.In j27, type = and then click on j25 and press Enter. 60.In k27, type = and then click on k25 and press Enter (this fills in the ‘BA’ and ‘BB’ columns) 61.Select cell i31. Type =i27/i29 and press Enter.
Lab Procedure 61.While still in cell i31, click the ‘Home’ tab and then click the ‘%’ button in the ‘Number’ category. Save your work!
Lab Procedure 62.Repeat for the other two genotype percentages. Drag i31 fill handle to k31. Save your work!
Lab Procedure 63.Next, you will create a chart of your results. 64.Click and drag from H24 to K Press the ‘F11’ key to create a chart.
Lab Procedure 66.Click the chart legend and press Delete. 67.Click the genotype letters at the bottom of the chart. Right click and select font. Increase their font size to 14 points and bold. 68.Now do the same for the numbers along the vertical axis.
Lab Procedure 69.Click once inside the boundaries of the chart; the Chart Tools appear along the top. 70.Click ‘Change Chart Type.’ 71.Select the 3-D bar chart, and then click OK.
Lab Procedure 72.Click once outside the boundaries of the chart, and then once just inside the edge; press CTRL + C (to copy the chart). 73.Along the bottom edge of Excel, click the ‘Sheet 1’ tab. 74.Click cell M9 and press CTRL + V (to paste the chart). 75.Resize the chart using the handles along the edges. Save your work!
Lab Procedure 76.Save your work in Excel. 77.Click chart 1 tab 78.Print chart 79.Test your created model by clicking in E4 and changing the frequency of p 80.Note what happens to your chart and your tables 81.Again, click chart 1 tab and print.