fam <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.fam", header = FALSE)
+nrow(fam)[1] 4000
+ # The dataset contains 4000 samplesdiff --git a/02_activities/assignments/assignment_1.html b/02_activities/assignments/assignment_1.html new file mode 100644 index 0000000..83a414b --- /dev/null +++ b/02_activities/assignments/assignment_1.html @@ -0,0 +1,1737 @@ + +
+ + + + + + + +You only need to write lines of code for each question. When answering questions that ask you to identify or interpret something, the length of your response doesn’t matter. For example, if the answer is just ‘yes,’ ‘no,’ or a number, you can just give that answer without adding anything else.
+We will go through comparable code and concepts in the live learning session. If you run into trouble, start by using the help help() function in R, to get information about the datasets and function in question. The internet is also a great resource when coding (though note that no outside searches are required by the assignment!). If you do incorporate code from the internet, please cite the source within your code (providing a URL is sufficient).
+Please bring questions that you cannot work out on your own to office hours, work periods or share with your peers on Slack. We will work with you through the issue.
+You will need to install PLINK and run the analyses. Please follow the OS-specific setup guide in SETUP.md. PLINK is a free, open-source whole genome association analysis toolset, designed to perform a range of basic, large-scale analyses in a computationally efficient manner.
Before fitting any models, it is essential to understand the data. Use R or bash code to answer the following questions about the gwa.qc.A1.fam, gwa.qc.A1.bim, and gwa.qc.A1.bed files, available at the following Google Drive link: https://drive.google.com/drive/folders/11meVqGCY5yAyI1fh-fAlMEXQt0VmRGuz?usp=drive_link. Please download all three files from this link and place them in 02_activities/data/.
fam <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.fam", header = FALSE)
+nrow(fam)[1] 4000
+ # The dataset contains 4000 samplesfam <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.fam", header = FALSE)
+head(fam$V6)[1] -0.6944381 1.8538454 2.0826368 2.7387147 1.3411404 0.4167786
+unique(fam$V6) [1] -0.694438130 1.853845361 2.082636778 2.738714739 1.341140356
+ [6] 0.416778587 2.382971233 1.514299288 0.718686391 2.089041362
+ [11] 1.433708345 1.033029984 1.975368955 3.209670788 2.493291214
+ [16] 3.079400042 1.671769648 2.049343898 1.322094772 1.258426470
+ [21] 2.102163139 1.566221015 2.581470920 1.730205789 2.004985294
+ [26] -0.058513492 1.238375706 2.315751569 0.985770460 1.829232363
+ [31] 1.722300677 2.180546731 2.335088328 -0.693529930 3.260521823
+ [36] 3.310500156 0.506915444 1.509406726 1.218114308 3.507849744
+ [41] 3.346117587 2.506476654 2.439118421 1.807498169 1.895426988
+ [46] 2.377298644 2.529290450 2.744653693 1.100191754 2.167363329
+ [51] 3.342415951 2.793413766 1.156579496 1.035552521 1.479569922
+ [56] 1.838068420 -0.014366565 2.522184384 1.806915341 2.207659351
+ [61] 2.205528359 0.623251317 2.531756939 4.097813272 3.762014272
+ [66] 0.431761345 2.215890581 1.675112896 0.883731594 4.641487155
+ [71] 0.374082541 3.468537269 2.267154935 1.785755057 1.435838996
+ [76] 2.587247596 -2.006701444 0.253630770 0.599780453 0.469739488
+ [81] -0.123851232 0.654743493 2.611123660 1.634531315 4.117327350
+ [86] 0.174426236 3.304140663 2.238053247 1.044512311 0.019296285
+ [91] 0.625495638 2.437928630 2.347273022 3.310032389 1.780590239
+ [96] 1.974598297 2.058363015 1.018402087 1.509081317 2.731016109
+ [101] 1.748453585 0.979299431 1.188656047 -0.524088559 1.042040892
+ [106] 1.323044405 2.356660710 0.870997127 2.837386141 2.726655362
+ [111] 1.460346978 2.840649132 2.132147695 2.151303710 2.299044642
+ [116] 4.138514697 1.642086374 2.659968880 2.955879243 1.920681131
+ [121] 3.351828590 1.292746404 0.994527391 3.427501649 3.049818271
+ [126] 2.726717085 1.931537280 1.995914985 1.078576579 4.007170275
+ [131] 2.401770283 3.192948689 3.219229017 0.842491512 1.088879188
+ [136] 2.057716182 2.173508086 1.371332202 1.531674015 2.013047259
+ [141] 1.068673134 3.115767261 0.510361633 2.791354444 -0.210818675
+ [146] 1.148166585 2.148778987 1.136915662 1.842871611 -0.553895831
+ [151] 1.925520229 0.103274418 0.811968988 2.301112277 3.526507795
+ [156] 3.198984996 3.671754550 1.357815837 3.057257121 2.195575784
+ [161] 2.248137549 1.679840250 1.404687806 0.261494520 1.907313649
+ [166] -0.145578698 1.285916570 0.242850692 1.824798829 1.691437229
+ [171] 0.360192806 1.485242646 2.465706067 0.708295055 2.153754677
+ [176] -1.030929629 3.480148455 1.490442424 -0.692611348 2.346240474
+ [181] 3.095545112 1.129041297 1.801703473 1.061099821 1.384751005
+ [186] 0.780210165 1.892249324 0.102955250 1.492011179 2.100254841
+ [191] 2.697571797 0.393302126 1.321786007 1.262540798 1.217333229
+ [196] -0.100920393 1.652407884 0.985878837 3.026327588 -0.463205499
+ [201] 2.731473528 1.724238998 1.651770950 2.838135449 0.890834180
+ [206] 1.892707703 2.097820198 2.390617452 0.349449074 2.408120599
+ [211] 1.880484703 1.038536319 1.736916337 -0.559819349 2.186028229
+ [216] 1.327516000 2.623907430 1.568061721 3.066206512 1.075616886
+ [221] 0.817854142 2.236680319 2.342407452 2.284577464 3.120133683
+ [226] 1.078001737 2.853302085 1.557323463 2.709542532 2.801843461
+ [231] 2.695516592 2.822305372 2.859986522 1.324729804 0.902415026
+ [236] 3.188001430 2.368579728 1.024975577 0.781750370 1.578860416
+ [241] 3.066653014 1.181859018 -0.764796782 1.701477289 2.335529464
+ [246] 1.667863777 2.378341148 3.448943969 2.385706312 2.861593620
+ [251] 1.530349386 -0.317939800 2.334187496 2.955702655 4.383430878
+ [256] 2.207483571 -0.197977730 3.847997213 2.557736612 2.933921399
+ [261] 1.753645808 1.263703524 0.808443120 2.371870400 1.453968215
+ [266] 2.908903376 -0.108387020 -0.029709200 2.994608257 2.709902967
+ [271] 1.926632472 1.940933863 3.124260707 2.124666543 0.652523738
+ [276] 3.043848605 2.100930938 2.494120078 1.930340127 1.425774722
+ [281] 1.854863666 2.799554323 1.664877805 0.670860251 1.909973109
+ [286] 3.783266537 -0.200325139 2.762722590 1.970838417 2.945919226
+ [291] 2.194765920 2.706943276 2.429795682 2.744446381 1.786103094
+ [296] 1.645024255 2.624597012 3.579593237 1.020394645 0.953786897
+ [301] 2.565905608 3.238821453 1.312282781 1.585104579 3.110143291
+ [306] 2.004163369 3.716853042 2.110491758 2.558766539 1.816662684
+ [311] 0.023732867 1.102436498 2.702764527 1.630442305 2.618130832
+ [316] 2.375206716 2.993039927 1.016023942 1.559019723 3.050515894
+ [321] 2.844940182 1.476171861 3.604799179 2.149667539 1.320989092
+ [326] 1.285455448 0.678643548 -0.058815922 0.678709951 3.449832158
+ [331] 3.776384521 2.443058454 1.942625610 1.312929440 3.940311425
+ [336] 2.152427991 2.524270397 4.235004153 2.298337150 0.537469769
+ [341] 2.525743354 2.338030573 2.406142266 1.532481270 0.614829981
+ [346] 1.710305030 1.346656867 1.127818894 3.218320924 0.268510317
+ [351] 0.615796059 2.926446019 1.077265584 1.883019584 2.214150966
+ [356] 2.944378437 1.026355235 3.227128432 2.933304818 2.780203045
+ [361] 1.185259571 2.868228784 3.885233302 3.068855779 2.299368873
+ [366] 1.494790681 3.177930603 0.567652089 2.455684920 1.680997962
+ [371] 0.545867318 3.289920945 1.077261928 2.675635539 1.774605512
+ [376] 1.755039292 1.249466902 1.605290763 0.199205239 3.394314347
+ [381] 0.860253991 3.121594215 3.120291774 1.645153793 0.678071685
+ [386] 1.228437724 1.995058990 2.520112811 1.508758545 0.280150964
+ [391] 2.035979617 0.899866286 0.685218418 1.182444692 0.667062528
+ [396] 2.831444811 1.251555031 1.564861954 1.878870189 2.399027229
+ [401] 2.365121668 3.382648500 2.928825518 1.923482255 0.936677691
+ [406] 3.870428068 3.207714949 4.152316471 3.840582504 2.329402834
+ [411] 1.866467502 2.082233874 1.835601116 2.143850418 3.364769795
+ [416] 1.962193731 1.543623633 1.365137406 1.996928675 2.088613113
+ [421] 0.300135661 -0.171641102 3.625745609 2.214860105 1.036725289
+ [426] 2.876905335 1.353958746 1.497098941 1.333517324 0.707993809
+ [431] 0.330356951 3.570959072 1.447920048 3.001205977 0.954537829
+ [436] 1.862152214 2.431437692 1.280544452 1.882409554 1.593091663
+ [441] -0.850181603 2.409744036 3.639852276 1.479409811 1.780423628
+ [446] 1.777619257 1.045520739 1.564019714 1.682522049 0.328216622
+ [451] 1.051102947 2.092540093 2.491426290 1.777657735 3.083721958
+ [456] 1.915009438 0.765235446 3.276415290 0.812836900 -0.891856059
+ [461] 1.676607789 1.038019892 1.831607448 1.239052628 0.334411394
+ [466] 1.098696145 -0.809609715 1.610306995 1.774002397 1.425556599
+ [471] 3.211797002 1.246899057 1.121624008 -0.305767860 0.825725927
+ [476] 0.603409395 0.500145249 3.767707516 3.569615463 2.258333484
+ [481] 1.761094865 0.806523421 1.549627622 2.496386387 1.760422764
+ [486] 1.458460061 1.881076124 1.733107628 3.099816093 1.549171085
+ [491] 0.914360939 2.740287227 0.542231567 4.325177404 1.082174121
+ [496] 1.691177053 0.009434676 2.234156025 1.295861028 1.390699864
+ [501] 1.114845453 2.751997389 2.360513128 2.718573392 1.443067662
+ [506] 2.820915464 3.148531901 -0.399967711 3.700911428 1.248309270
+ [511] 1.256171653 0.833352575 0.634215300 1.922819775 1.633589989
+ [516] 1.158896234 2.061809708 2.102451350 3.559292006 1.594974914
+ [521] 1.175562400 1.137204658 1.252437631 2.174733711 2.910410387
+ [526] 1.335235488 -1.940405135 1.954554706 3.488654941 2.351584053
+ [531] 3.272280095 3.608537464 1.533850613 1.410789258 1.210505287
+ [536] 0.464111162 2.873385987 2.099980817 1.111901693 1.856961164
+ [541] 3.687446070 0.874552138 2.708285413 3.326176646 2.344108754
+ [546] 0.216337456 1.304591236 1.226664385 0.789128859 3.534488061
+ [551] 3.163240239 0.363738685 3.403020764 1.728918364 2.086572081
+ [556] 3.117345327 2.212440966 3.124556354 2.153435550 2.327053332
+ [561] 3.033980251 -0.353315330 2.995613394 0.378220571 1.434415101
+ [566] 4.239449413 2.312921588 2.654329218 3.939204628 2.860185085
+ [571] 2.310879104 2.934968329 2.716487793 2.092143364 0.155205006
+ [576] 2.988127887 0.542145610 1.793349841 1.263913256 1.404892024
+ [581] 3.189845170 1.408439034 2.225203319 2.040203201 3.670287975
+ [586] 3.342710937 0.924186990 2.755537973 1.658831882 0.829559652
+ [591] 2.519810344 2.141501649 1.040394757 3.076282128 1.092519160
+ [596] 2.257072966 1.390608751 3.888533313 2.600580294 2.987824626
+ [601] 2.731066999 2.609655913 2.190609470 1.057177105 1.302351747
+ [606] 1.193674731 0.696145256 1.697215805 1.204549534 2.147036528
+ [611] 0.645526035 1.525829823 2.574064916 1.283501267 0.945212156
+ [616] 2.529312040 3.819763174 1.402369340 4.736095389 2.513710792
+ [621] 2.104634376 0.906219092 1.801724797 0.396460781 0.300888572
+ [626] 2.823011663 2.967963251 2.169436341 -0.019844734 1.006005101
+ [631] 2.639513765 3.549134824 0.289995316 1.436516551 0.654968650
+ [636] 1.464995726 0.767662486 3.901729850 1.477136095 2.265545160
+ [641] 1.423009243 1.824100183 2.766608654 0.685656054 2.539682194
+ [646] 1.472029387 2.739249824 2.471321048 2.418761725 1.021413903
+ [651] 2.262268975 3.584420246 1.418564409 2.467999002 2.124674682
+ [656] 4.129801686 5.326807923 1.342083987 0.479397052 0.646175370
+ [661] 1.279172668 2.287844003 0.412431670 1.683302010 0.772601892
+ [666] 2.226882832 1.319977038 3.367460977 0.757070672 1.011853611
+ [671] 1.215070328 2.487414656 1.668081501 1.395490763 4.007654495
+ [676] 3.194841449 2.620177211 2.146974007 1.268136195 -1.141618580
+ [681] 0.977361269 3.169663945 2.188122346 3.244364978 3.403518170
+ [686] 2.815717800 0.891435138 1.620071594 2.739638622 1.968687114
+ [691] 3.305984014 2.344883158 2.742411052 2.330388383 1.605246561
+ [696] 1.590944723 1.206500878 3.380229557 0.880526113 1.046455235
+ [701] 0.815626283 0.130602709 1.313302512 2.021314066 2.867300860
+ [706] 2.187652960 3.204651909 0.448201441 1.874552615 0.948098546
+ [711] -0.527040023 1.125284552 3.375675510 -0.076865569 -0.932342605
+ [716] 2.627053673 1.393690012 1.367860469 1.718833157 2.643367153
+ [721] 1.768516540 0.996956431 1.893223686 1.876918429 1.230027437
+ [726] 1.418898135 -0.454594215 2.521765450 1.091402836 1.867116890
+ [731] 1.304534186 3.158838039 -1.143137286 1.385498803 3.929063957
+ [736] 1.730604547 3.733207605 0.427484949 3.275684628 2.424798131
+ [741] 1.019540402 1.441342288 2.576544924 1.467044894 3.526979777
+ [746] 3.894384870 1.519326725 0.768645679 3.100528943 2.592045550
+ [751] 2.002028075 2.109144194 0.661183419 1.796887046 2.006765986
+ [756] 3.268559368 2.151134828 0.609944681 3.115758321 2.398489660
+ [761] 2.238852338 -0.971623548 1.776008472 1.129792321 2.457107381
+ [766] 2.786908845 1.248169232 1.499728955 1.052838987 0.978502719
+ [771] 2.014111969 1.946946856 3.108678665 2.159920651 2.498698751
+ [776] -0.255466602 0.221040891 2.299717170 2.036050032 1.364718778
+ [781] 1.184439463 0.161205728 1.167810084 1.381980254 2.558047895
+ [786] 2.881420765 3.141311953 2.794967117 1.356979560 1.275361130
+ [791] 0.845106102 2.364356069 2.997935805 3.254961785 0.176618991
+ [796] 0.666572623 0.709690341 1.391824960 1.536242213 1.714921745
+ [801] 2.810557788 1.890963844 2.107235959 2.648267643 1.564742134
+ [806] 2.165389660 -0.066219795 4.433295778 1.048896989 1.158799825
+ [811] 2.689361582 2.496898040 -0.026973862 4.065329353 1.350547607
+ [816] 3.091101547 1.397653290 1.353361005 3.255405335 2.027703001
+ [821] 2.250686109 0.659020547 2.751857605 2.625392005 3.386624195
+ [826] 0.286780784 0.477995668 1.310790699 1.229196084 3.617157687
+ [831] 0.021809537 1.565263471 1.222856944 3.192218330 4.007883711
+ [836] 2.017702602 0.659254470 1.324340639 2.581196171 0.037212011
+ [841] 1.323140969 3.730925014 2.023245838 4.094914885 1.844057220
+ [846] 2.719307341 1.430970565 1.605828031 1.228297108 1.955229673
+ [851] 2.317124761 2.649228235 3.144907152 3.455616650 2.098441297
+ [856] 2.858467362 1.076699440 3.194114706 2.223407742 -0.246710900
+ [861] 2.366493517 1.366128195 3.153869367 1.977654205 1.754403488
+ [866] 2.546865558 2.786321252 2.040586724 2.832697257 3.827690178
+ [871] 2.609646045 -0.110971290 3.800183859 1.073647825 1.275679353
+ [876] 3.589583019 1.609480695 1.729517452 1.469130793 1.346412269
+ [881] 1.824565846 2.044188923 0.261233979 2.724626397 0.671869748
+ [886] 3.318855641 3.124800757 2.521691621 4.412108655 -0.297471539
+ [891] 2.410528649 -0.002139037 0.253064117 3.004727893 3.189787890
+ [896] 0.829168440 1.350453663 2.456340775 1.659727787 3.162788438
+ [901] 1.677288513 0.668660090 1.923936649 2.791168716 0.481596298
+ [906] 0.856779986 2.003556889 1.291206606 2.676046944 2.800008252
+ [911] 0.888041200 1.327940555 2.444398735 3.990883583 2.748809471
+ [916] 2.052232804 1.201164860 1.002967635 0.837150303 2.095742694
+ [921] 3.788494747 1.483942861 1.245734984 3.365169692 2.497523426
+ [926] 2.791880766 0.895266184 0.323826809 1.825848220 3.663463538
+ [931] 3.094437616 3.748025713 1.643780682 2.899934843 3.054147802
+ [936] 1.724873885 2.251751767 3.090082444 2.137253953 2.592584154
+ [941] 0.940245550 2.231293361 2.048125289 2.132462570 2.172839008
+ [946] 2.678538065 3.986868908 0.533472078 1.148210676 1.250273113
+ [951] 2.569290252 1.588810909 2.577932389 1.158621922 -0.814049610
+ [956] 1.531930036 0.734205143 1.842316855 3.544312235 2.278360840
+ [961] 1.365502730 1.989801494 0.861025692 2.032288733 1.653516073
+ [966] 2.535795379 2.202185294 0.734506949 2.384152728 2.849300059
+ [971] 1.199865856 0.459898066 2.950513257 1.589733998 2.961319492
+ [976] 1.203441857 1.475155735 4.426034843 0.208238691 1.106607276
+ [981] 0.282600582 3.323911499 3.703970797 1.540217029 2.566569284
+ [986] 2.887735521 2.096475233 2.387254402 2.491968350 2.869773141
+ [991] 3.712856670 2.430868826 3.247981924 2.240282456 1.747191067
+ [996] 2.247494359 -1.178268247 1.484504866 3.074494522 3.337468970
+[1001] 2.413719736 0.313359945 2.998551435 1.235554445 2.244049876
+[1006] 0.737312622 0.241169436 3.376680990 1.379833571 2.077585762
+[1011] 0.895540986 2.572268663 1.892939379 1.510733002 1.733085108
+[1016] 1.277081759 0.926438000 1.098794014 0.692137440 1.508465834
+[1021] 1.102849671 1.508930209 3.383353735 2.396558826 1.543422930
+[1026] 2.225899308 -0.689723166 1.872653917 2.579212604 2.892757344
+[1031] 1.589352746 2.754575807 1.849474222 3.451767899 1.849382590
+[1036] 1.358795960 2.485173879 2.668349135 2.412314782 -0.974176303
+[1041] 2.037779999 0.148891815 2.700172742 1.250706048 0.659526019
+[1046] 2.789389534 2.380699090 3.843205090 0.596424154 2.216038434
+[1051] 2.666708822 3.425973096 3.212861808 4.452484898 2.502778279
+[1056] 3.594655232 2.684580674 0.742207741 2.033515887 1.125743729
+[1061] 0.567217576 1.898646548 1.800172635 1.656393103 4.059929248
+[1066] 0.579787661 3.348080807 2.710548015 1.717523133 1.245663703
+[1071] 2.825275184 1.993219644 1.998079805 2.537672704 1.280688282
+[1076] 3.231919422 1.216261439 1.181767406 1.966907401 1.153976363
+[1081] 1.746593507 1.443901794 2.578562942 3.286428905 0.568484136
+[1086] 1.984160865 2.262594445 3.698831889 1.432509048 1.074341792
+[1091] 2.195333653 2.462446466 0.272286923 3.260870485 0.584282509
+[1096] 2.734937445 3.437257895 1.733811046 1.703916896 1.270091510
+[1101] 3.327763532 0.506000019 2.886817750 3.554223552 0.192407072
+[1106] 3.019401046 1.491783193 2.228390894 3.678510730 2.649373723
+[1111] 1.844634794 2.718310048 2.158445673 2.303163337 2.547450028
+[1116] 2.361784822 1.213802597 1.056428019 1.424073560 0.770046785
+[1121] 1.320674562 1.878132117 1.943631018 0.942742449 1.234156191
+[1126] 1.300939349 1.029381533 2.859690040 1.705830710 -0.230108195
+[1131] 2.449978954 1.786838248 1.928785460 2.666501453 2.782553855
+[1136] 1.622237227 1.071470479 0.484471038 1.876442541 1.167567799
+[1141] 3.809417513 1.151721440 3.295524637 2.392197541 2.164453073
+[1146] 2.183172379 3.188147158 0.952066983 1.062836958 3.513366823
+[1151] 0.960324431 1.686389497 2.775266871 1.723682669 1.332423191
+[1156] 2.098615032 1.343151085 2.477044622 2.265487111 0.932007700
+[1161] 0.952336401 2.110925791 0.851977604 0.629240509 2.087103774
+[1166] 3.164751598 3.220535651 1.060357662 2.606758404 2.159656891
+[1171] 1.982965111 0.451095828 1.540261177 2.191760190 3.283733803
+[1176] 1.167687309 1.223357972 2.364211156 1.850141806 1.406362436
+[1181] 2.201652834 2.115846619 3.345165343 1.920831743 1.976562017
+[1186] 1.771701092 2.851066912 1.645772658 2.061993828 2.152487937
+[1191] 2.484851736 1.077587180 2.228396561 -0.184830404 3.681595814
+[1196] 2.401432496 2.048253621 1.108580675 2.289472991 1.712040153
+[1201] -0.782844012 3.130507695 3.096331092 1.900783203 0.235193659
+[1206] 2.139817896 2.630465859 0.971204496 1.976500148 0.732268853
+[1211] 2.193606308 1.937367355 2.241460765 2.648883421 2.380757501
+[1216] 3.028727445 2.197064902 2.443799557 2.724483512 1.951931699
+[1221] 1.305287599 1.952929949 1.803182886 1.985505322 0.098915488
+[1226] 1.023358717 2.719572517 -0.733155518 3.241891737 1.355874627
+[1231] 0.493607223 0.342723118 1.240540390 2.823691900 1.780624693
+[1236] 0.041375517 2.537963192 2.566538176 0.985453315 0.338495442
+[1241] 2.306289054 1.352274754 2.401195062 1.609758582 2.072474276
+[1246] 1.287085170 0.924296883 1.898637265 2.374277525 0.491565825
+[1251] 1.666538471 2.283040120 2.204292345 2.608038112 1.950233163
+[1256] 2.965604506 3.454704953 1.956438154 2.264223710 1.523715424
+[1261] 1.863390115 2.284980258 -0.258186817 1.003108108 1.092097650
+[1266] -0.002940843 3.073277966 1.924811214 2.395960905 0.752399592
+[1271] 1.469849050 2.613107262 1.885851540 1.453639393 1.952849429
+[1276] 1.971757061 1.432561899 1.700704863 1.714526980 2.499774253
+[1281] 1.586474409 2.347232161 1.717024177 -0.073348789 2.216762867
+[1286] 2.234022236 2.359879595 0.689943630 2.264868127 2.938288097
+[1291] 1.950282093 2.947379229 1.679159410 1.488656244 3.303291246
+[1296] 4.605323692 3.269520424 0.998303976 -1.217898085 4.880559368
+[1301] 0.016301589 3.057052846 1.788615900 1.854382985 2.023248651
+[1306] 2.365552775 0.660960455 1.527562609 2.016780792 2.900717784
+[1311] 0.656507539 2.696353688 0.768870258 2.016217578 1.651000437
+[1316] 0.498678636 1.407931698 1.833120857 -0.004872587 2.740710157
+[1321] 1.876156134 1.717490741 2.041498085 1.716569577 0.413152722
+[1326] 2.267013254 1.397855363 2.309928146 1.754403492 2.226568600
+[1331] 1.726824971 1.839823467 1.649302500 1.929773991 2.345268577
+[1336] 2.556230280 2.043501511 1.096489737 4.376053922 2.429165512
+[1341] -0.030054417 1.157726320 2.901515701 2.410685449 3.098329316
+[1346] 2.615429126 2.602658399 3.658556906 1.988222222 0.968291627
+[1351] 2.437928523 2.721452828 3.093983685 2.578895904 3.402190617
+[1356] 2.033268389 -0.303563397 1.026057370 -0.430606982 2.616188954
+[1361] 1.431965714 0.261381209 2.771258602 4.142608178 1.153227919
+[1366] 1.432516301 1.614537289 1.652894744 1.519976499 3.199478602
+[1371] 2.593345602 2.453563559 0.846762151 1.288295433 1.320940522
+[1376] 1.666097373 1.328357548 2.878501656 2.976040139 2.020863342
+[1381] 2.213480953 1.854589967 2.921190739 1.310083058 0.828143691
+[1386] 2.095218866 0.276109137 2.737469974 0.964231980 4.619314395
+[1391] -0.832086415 1.203870082 0.503298457 0.898871098 1.425220978
+[1396] 2.715239387 3.294100620 0.236254179 2.676912325 2.287374092
+[1401] 0.597770946 1.010621717 2.652236097 4.090950876 2.804308710
+[1406] 1.113361711 2.265848237 2.229938215 1.759730190 2.967958351
+[1411] 2.565180024 2.230406486 1.626136437 1.799771376 2.418545292
+[1416] 1.812041139 0.959195730 2.232476479 2.421666032 1.934064301
+[1421] -0.712405696 1.393830483 1.658314849 3.548105393 0.625630849
+[1426] 1.168969416 1.665284711 2.326988129 1.624142507 1.185742631
+[1431] 1.785781117 2.619675144 2.414818032 0.048366086 2.507144802
+[1436] 2.498497826 2.041664044 1.300295395 2.166107261 2.939070401
+[1441] 2.975462376 -0.472131406 1.099012224 0.722508860 1.275962617
+[1446] 1.173901459 1.223617939 2.876937671 1.438054280 3.894550702
+[1451] 1.515818275 1.371616791 0.821299332 2.744107950 1.692046183
+[1456] 2.132499296 3.052828701 1.828110749 1.977452558 1.545607719
+[1461] 2.721483536 0.930023326 0.763652308 3.590289550 1.004631200
+[1466] 3.742449270 0.883472369 1.730004099 1.420580497 2.426166037
+[1471] 1.479841413 2.002036685 2.141210225 2.374244083 2.386180756
+[1476] 1.261185772 3.085479068 1.580601710 1.399852498 2.319098561
+[1481] -0.016001596 2.280370652 2.171611292 1.804734444 1.459831104
+[1486] 2.636020492 2.918761240 3.703054188 0.543258078 1.538113964
+[1491] 0.198171797 2.111472179 2.371467322 3.423666118 3.259708267
+[1496] 1.807210644 2.603197240 1.915851019 0.836982368 0.840851864
+[1501] 2.178192154 1.700250199 1.731537113 3.977668441 2.624431839
+[1506] 1.360946816 2.591110517 2.277818812 2.155409695 2.072920167
+[1511] 1.698931486 0.737751358 1.469326686 2.449134158 2.896875270
+[1516] 1.255288185 1.884317058 2.321549098 0.416171087 2.778599360
+[1521] 2.387626179 0.158753904 1.208097003 1.668890969 1.881996485
+[1526] 2.713097517 3.331445339 1.816433442 2.653481842 1.927275542
+[1531] 2.308628825 3.541211144 2.171273466 0.927124815 2.112026541
+[1536] 2.497337999 2.443914221 3.735263641 2.137306077 1.412137599
+[1541] 2.877990661 0.973019189 2.413843444 1.315443632 2.589407088
+[1546] 2.468413172 1.957282500 1.908887962 0.898289710 0.921349394
+[1551] 0.984440727 2.033528204 2.989211146 1.468855970 2.482776075
+[1556] 2.636031060 0.655982112 0.949683104 2.000756654 2.070989711
+[1561] 1.164679874 1.016958143 0.186791622 4.001566861 3.544271947
+[1566] 0.425965602 1.314995339 0.414247358 2.506841387 3.329692764
+[1571] 3.073792743 -0.468310690 0.222758094 2.569307357 2.314191112
+[1576] 3.212324658 2.017060271 3.061802989 -0.609024652 1.997629034
+[1581] 2.980529226 2.319092305 1.854167167 1.661519200 0.931317342
+[1586] 3.431606674 1.898869479 2.772854800 2.654416613 2.555444366
+[1591] 1.291567497 2.905557295 2.425461458 0.753161966 1.896119669
+[1596] 1.795147172 1.585977632 0.805049579 1.938046009 0.879088617
+[1601] 2.232200191 1.520265112 4.742336838 3.097570094 2.445958204
+[1606] 3.252763454 3.095407053 3.360861997 1.782121353 2.824983519
+[1611] 1.325183904 -0.816259164 2.661922850 2.088997567 0.480266141
+[1616] 2.947217773 2.447781090 3.983282297 1.485593954 2.763097146
+[1621] 1.246480991 1.939374356 3.363912569 3.417707187 3.494150127
+[1626] -0.343639526 -0.706931534 1.706824653 1.714643843 0.588787124
+[1631] -0.815784651 2.351460525 1.727929050 1.895181735 3.722021676
+[1636] 2.695172704 2.194836241 3.544632685 2.392520034 1.214778099
+[1641] 1.454563407 3.272650279 0.304831305 2.051807183 1.025420141
+[1646] 1.671483840 2.840314324 2.023709529 3.099696695 2.179050188
+[1651] 2.579254988 1.051231032 -1.056830674 3.070254229 0.371146923
+[1656] -0.169011738 3.146130643 1.035696898 0.308267947 1.220601371
+[1661] 3.478361275 2.225471205 1.466163183 1.888396035 1.894830766
+[1666] 1.119086982 2.795716578 1.230441195 3.083741014 3.458263429
+[1671] 1.530688052 -0.188594194 1.775855873 0.406480691 1.694625694
+[1676] 1.083681005 2.748920744 1.381228748 2.231736084 -0.145409664
+[1681] 2.909404445 0.156624814 2.916216081 1.983480507 0.297262371
+[1686] 3.776371481 2.412374750 4.556243868 2.102559472 4.337038411
+[1691] 2.885937286 3.085404291 -0.027456876 0.818847962 3.076235722
+[1696] 1.092560865 1.666257408 2.165119369 2.213816380 0.210464839
+[1701] 2.676269968 1.925175048 2.477511759 1.847453744 1.878795153
+[1706] 0.465745774 1.147955774 2.874963238 2.956664174 1.866026290
+[1711] 3.128387329 -0.162522123 2.639759690 2.314494763 1.631341694
+[1716] 1.877028981 1.870278638 1.785973884 3.899283477 0.538700456
+[1721] 1.885836350 1.409017710 0.071995906 3.054662960 1.458993024
+[1726] 2.638895501 1.509361574 2.068121596 0.335608175 1.236395513
+[1731] -1.002658635 2.793201376 1.026353361 2.454434124 0.796137172
+[1736] 2.733803634 0.926551651 3.551940548 1.144973961 -0.411891949
+[1741] 3.071722549 1.881192127 2.930260704 0.864579115 2.535647192
+[1746] -0.601817344 3.559227119 1.835875783 2.145715012 1.540656922
+[1751] 1.809520341 1.558231779 1.830793655 3.537261311 2.045089110
+[1756] -0.856394154 -0.789220622 2.772640738 2.827532536 1.825757598
+[1761] 2.905466215 1.731750654 1.400407669 2.040679710 2.748279393
+[1766] 2.541753342 2.389016718 0.978770461 1.203867517 2.195569402
+[1771] 2.417810118 0.903428550 0.894117508 0.652813014 1.340741915
+[1776] 1.228647833 -0.245651303 2.509882454 1.873609164 3.826060243
+[1781] 0.813813426 3.007971992 1.753775843 0.973227608 3.361109257
+[1786] 1.687918756 2.147768352 2.390880892 2.876216451 0.810028272
+[1791] 0.010086547 2.269763134 2.621701968 0.671177067 1.075603909
+[1796] 2.459491374 1.695025700 2.248071136 1.841010464 2.342177758
+[1801] 2.514489128 1.518797047 2.995824059 2.299558311 2.054297768
+[1806] 1.279167706 3.280246615 1.743283699 3.372819055 1.281634245
+[1811] 1.133413766 4.201540703 4.027670603 0.110363218 0.673110430
+[1816] -0.850266448 1.905389885 1.604314640 2.253651057 2.102207896
+[1821] 1.169484860 0.847562818 0.831057870 1.434523779 1.935961677
+[1826] 2.517402855 1.097793527 0.769011570 0.261391058 3.318349988
+[1831] 2.643994675 2.528577042 2.926695494 3.941336504 2.752205836
+[1836] 3.690911238 1.455457951 1.902604528 3.482875340 2.492038633
+[1841] 2.947846363 0.970900713 3.358365898 3.247997503 2.087688001
+[1846] 0.385721498 1.855527886 2.266096251 2.686050214 0.647676038
+[1851] 0.287955207 2.625305862 2.089038645 2.617210552 2.041408610
+[1856] 1.854563491 2.176741315 0.546687143 2.416042463 3.127476320
+[1861] 2.005926183 0.653122299 1.412647856 1.046767626 1.240730276
+[1866] 1.333445228 3.325224730 1.994556051 1.320392020 1.525034248
+[1871] 1.456865297 0.593908500 0.918061895 1.655379510 1.252909461
+[1876] 2.177070413 2.747182867 1.792065776 0.861941053 0.950249828
+[1881] 2.502205070 1.212438845 3.787467878 2.674979012 -0.281114130
+[1886] 1.575145969 1.654609339 4.160457273 1.146409584 -0.579759836
+[1891] 1.053707891 1.780698701 -0.128437904 2.358049769 3.393893541
+[1896] 1.696273594 3.534327462 1.719476977 2.221106453 -1.573389350
+[1901] 2.619356995 -0.090770117 0.853135154 -0.689259939 0.971838666
+[1906] 2.355042374 2.284400015 2.233866281 1.126223293 2.244359364
+[1911] -0.770337556 2.844158755 1.165971650 0.648158392 0.440057856
+[1916] -0.328475651 4.589214522 0.143845944 0.290044588 1.790250554
+[1921] 1.958227261 -0.667257260 1.170668271 -0.111978766 1.852909609
+[1926] 3.215778066 2.184631225 3.611706756 1.367290940 1.588962799
+[1931] 2.788437246 0.970270709 -0.139026418 1.761097691 2.037283637
+[1936] 2.288981596 0.535588330 2.381461316 0.966998814 1.784692267
+[1941] 2.220412310 2.614822047 2.508648253 2.565438866 2.720242037
+[1946] 2.415715994 1.620704460 2.667301772 0.551187733 3.202151117
+[1951] 1.340566499 2.411861694 0.561957018 2.351719265 0.941965606
+[1956] 1.413432289 1.905424531 0.968259800 1.636202306 1.369017117
+[1961] 0.438649227 2.233485038 2.988518236 1.804266243 1.429881896
+[1966] 1.355828546 1.023882478 1.209556183 0.858764634 4.045618580
+[1971] 2.169577015 -0.730065737 3.067472864 2.383227287 0.948616194
+[1976] 1.046991480 4.905640931 0.282595084 2.559646895 2.741464301
+[1981] 1.640795157 2.990971950 3.052002426 3.895240062 0.705762351
+[1986] 1.674133614 2.091493230 2.739913345 0.723324588 -0.522741106
+[1991] -1.620034881 3.742051265 1.836100267 0.828627888 0.801003901
+[1996] 0.855135955 1.997941783 0.781728574 1.933781033 0.089756400
+[2001] 1.345410839 1.452417853 2.879720090 1.479754052 0.172237824
+[2006] 1.001587043 2.375649984 1.989027563 1.464507174 -0.063032216
+[2011] 3.915506985 1.149265057 2.484708610 0.597881252 3.325046814
+[2016] 1.572477030 1.223134122 4.150298193 0.988500045 2.327775234
+[2021] 3.589320709 2.486779656 0.706873590 3.957725922 3.407606914
+[2026] 1.619332801 1.695724826 1.893269419 1.809859908 4.094656993
+[2031] 2.804914132 2.517924992 0.840821490 1.406381225 1.683937320
+[2036] 2.269198633 2.354839729 1.479655811 2.952040059 2.166464786
+[2041] 0.759203735 1.542334903 2.692927648 2.818742478 3.417849909
+[2046] 0.752486226 0.942216343 1.471647047 0.976882647 1.264313396
+[2051] 1.598869516 2.854199958 1.809812215 0.947883688 0.152900291
+[2056] 0.103211306 1.056284386 2.140070574 3.740679558 2.405617453
+[2061] 2.761304956 0.658884095 1.925018843 1.764678434 2.271624843
+[2066] 1.883012309 0.616137444 3.160806725 3.246706694 3.057040585
+[2071] 0.504558240 2.258275732 2.635894079 0.615945197 1.780115036
+[2076] 2.084120022 1.966068449 1.489647637 2.388463064 2.323003820
+[2081] 1.772833154 1.171889829 0.791563823 2.724355035 1.903839925
+[2086] 2.257909675 1.833643770 2.717696149 2.141811993 1.934535607
+[2091] 3.265963609 1.718393700 0.989347699 1.068615421 1.620206837
+[2096] -0.092534823 1.654280775 1.150866893 3.105476117 1.057233819
+[2101] 1.133215761 1.948206791 2.532340268 3.780904941 2.961997925
+[2106] 1.106544144 1.511293391 1.175796531 1.682243219 2.920776642
+[2111] 2.703447287 1.067643333 2.583241223 1.189891927 0.625014388
+[2116] 2.206091038 1.598168882 1.244751858 2.928315722 0.244521710
+[2121] 1.186463629 2.232190905 0.688531247 2.203439896 2.094280615
+[2126] 0.614105347 1.248005073 -0.413897801 1.863694484 2.567426551
+[2131] 1.622534531 2.775534464 0.676559102 1.839878649 2.150923637
+[2136] 2.180146651 0.744277151 1.942090221 2.189292588 0.394034926
+[2141] 1.689657139 2.490352721 2.914751801 2.770055209 1.765982257
+[2146] 2.369511402 1.757026345 1.373098773 3.460835336 2.399601690
+[2151] 1.576566847 1.667708646 1.540384776 2.664382350 3.522656650
+[2156] 2.052160213 1.237397382 1.382278568 1.931461881 2.614280658
+[2161] 2.089398443 2.495356709 1.821165167 0.578508759 1.975936097
+[2166] 2.765842618 2.575237001 2.625524885 2.943538648 1.326148997
+[2171] 1.932876677 0.733230671 1.344211517 3.740293700 3.777442592
+[2176] 0.506991828 2.057831200 -0.133098520 1.289528418 0.917240932
+[2181] 2.567667639 1.871425324 1.593576534 1.692224488 1.064903694
+[2186] 4.200887872 1.405753817 1.485632946 1.573810249 3.503138347
+[2191] 1.501752010 0.773937201 -0.487130147 0.643501923 -0.125724670
+[2196] 2.740050980 0.428811962 1.800893825 1.272940723 2.286879708
+[2201] 1.141099924 1.268712756 1.722172235 0.879485602 1.577444252
+[2206] 2.147431877 1.280987335 0.191452581 1.173777097 0.247447988
+[2211] 3.365015833 1.511262652 3.179721737 2.904532841 2.776379998
+[2216] 2.280410235 1.617363877 1.574568219 1.817634992 1.392307977
+[2221] 0.467101550 1.325755639 2.213657319 0.986129788 1.266098764
+[2226] 3.016288092 2.258044501 -0.207238651 4.449844024 3.354350352
+[2231] 1.613026129 0.033279702 2.038237073 1.433803606 3.037143732
+[2236] 2.662734332 1.546098761 1.616562763 2.205201765 -0.125728005
+[2241] 1.790214593 2.052271575 1.150744483 3.328498600 0.383345126
+[2246] 1.528948832 1.839475700 1.064991365 1.931046220 -0.247936430
+[2251] 1.012505492 2.042728909 2.858930473 2.104774891 2.513895619
+[2256] 2.425408735 1.279069224 1.566128942 3.162093179 1.810753252
+[2261] 3.355289051 -0.272305673 4.933597522 2.759404387 -0.216238418
+[2266] 1.770407113 2.041760066 2.442720204 1.937627626 3.442321116
+[2271] 1.975051933 3.336879819 1.087199875 2.542939650 1.656508136
+[2276] 2.922070248 1.186427729 0.771752452 0.615231923 0.074085665
+[2281] 4.036629718 2.651934020 2.337557696 1.341302687 3.127233058
+[2286] 2.634650887 2.069532169 3.491806010 1.264910420 0.408519530
+[2291] 1.850449681 2.181570234 1.966622786 2.799157592 1.685633567
+[2296] 0.518936041 1.906130212 2.655426925 2.238749288 1.462186131
+[2301] 2.326300739 1.742666046 2.040939700 2.258660164 2.933160552
+[2306] 1.878089542 2.507782547 1.108922654 0.776357020 2.558168834
+[2311] 1.739372496 1.479265037 1.178417812 1.447636162 1.350982936
+[2316] 1.797102175 0.443122086 2.825433368 2.240573702 1.012534158
+[2321] 0.901477709 1.338123914 1.344427174 1.753898938 2.689856352
+[2326] 1.696152733 3.779274381 1.878179545 3.393650007 1.174268284
+[2331] 1.018069264 0.283516390 1.984410442 3.042980270 1.851228892
+[2336] 0.829604961 2.724558021 3.582375559 1.206802820 1.761242727
+[2341] 1.920647271 2.076634723 2.137372527 1.344203459 0.755483691
+[2346] 2.217236646 -0.357669351 1.829307870 1.831857298 1.734472643
+[2351] 0.673946132 2.962830246 2.695198723 2.498722189 0.194062736
+[2356] 0.490777197 1.374138947 2.169805375 2.644966862 2.117864072
+[2361] 3.261028242 0.473670835 2.333145153 -0.123477144 1.999228565
+[2366] 0.779540164 2.919354810 1.098640673 2.769933535 2.359526926
+[2371] 1.985854633 2.675020049 0.215159409 1.947426560 0.562266429
+[2376] 2.076415514 2.486699582 1.010007795 1.218002427 -0.618351576
+[2381] -0.425082759 3.565080664 2.737809620 2.919746491 2.200146743
+[2386] 0.937765210 1.053270706 0.555430626 4.011309328 1.048201101
+[2391] 2.793946619 2.205197172 1.492479474 0.184126656 2.333583584
+[2396] 0.945330239 2.501280362 1.324742242 2.131764665 0.079471533
+[2401] 1.059336618 2.785639966 3.019406722 2.487199183 2.717185311
+[2406] 1.922841054 0.914939903 3.496889790 1.499422361 1.683521230
+[2411] 2.353376743 1.194642252 1.056247699 2.536153930 3.625512201
+[2416] 0.459659710 0.420910292 2.412733733 2.664095685 2.951568155
+[2421] 0.541139559 -0.176989437 1.944356782 2.269378999 3.387558700
+[2426] 2.744911390 1.438182855 0.945342902 1.622955261 -0.032834665
+[2431] 1.166446993 3.040394203 2.467966935 1.204208812 2.128820569
+[2436] 1.733405101 1.213429085 -0.562767543 2.648026816 2.281901409
+[2441] 3.375938118 2.454784978 3.922106634 1.583539618 2.129745160
+[2446] 1.140087446 2.166035233 4.448949238 1.939993692 2.101957691
+[2451] 1.657414528 1.213176457 3.389991375 1.104334497 2.329525846
+[2456] 2.365224421 0.638172995 1.265225243 0.160157534 2.652626773
+[2461] 1.291626872 0.401571442 2.593200501 2.510190665 1.086679407
+[2466] 2.152460946 0.930536719 1.854370923 1.078680907 2.389915668
+[2471] 4.023662226 1.183151399 -1.180843896 3.205181964 1.222044980
+[2476] 1.796180993 2.042954252 1.262794085 0.181355034 3.846763935
+[2481] 2.693694142 4.157923525 1.149257642 3.291170066 -0.272699065
+[2486] 1.581182093 1.929762080 1.694341508 0.261033244 0.510680135
+[2491] 1.563131341 1.862907915 1.811944702 0.891428188 2.505072487
+[2496] 2.250943365 2.462891485 3.026502110 -0.037468558 2.981655542
+[2501] 3.529160703 2.728909304 2.816014009 2.239197586 0.535110541
+[2506] 2.040144772 0.530904395 1.505996336 2.140550446 0.229194741
+[2511] 1.875130877 -0.350441609 0.423619155 4.050586569 3.297465846
+[2516] 0.329167060 1.336703231 2.236836362 1.625253168 0.500520769
+[2521] 1.531180901 0.460706781 1.305810650 0.917862337 0.447130348
+[2526] 2.211101925 0.224170638 2.654747272 2.653205077 1.279571861
+[2531] 1.187547689 1.276414114 3.716191932 2.335931387 0.996318886
+[2536] 0.637475832 0.892316533 1.904631184 3.242967263 2.582335046
+[2541] 2.372577887 2.242747639 1.907306864 1.144502673 2.039977680
+[2546] 2.410074512 3.079892088 3.217154264 4.206928693 1.015405678
+[2551] -0.274288441 1.462790596 2.147786140 2.793480930 4.457043021
+[2556] 1.456373589 1.044348952 3.235115395 2.326351043 0.592704850
+[2561] 2.211487110 0.246075799 2.289403770 1.439465774 3.153788574
+[2566] 1.359051933 1.610397031 0.169362138 2.524143193 -0.218333747
+[2571] 1.346851125 2.550552867 1.018837197 3.650654029 2.975949058
+[2576] 0.251244287 0.393803538 2.434907085 1.583333761 2.142658296
+[2581] 1.053428776 1.816832926 2.184717529 1.498642305 2.154284180
+[2586] 1.758141636 2.748617393 1.664621921 3.435325303 3.705165546
+[2591] 1.514610817 -1.104995361 2.687053257 3.481423526 3.278962083
+[2596] 1.696970199 2.020045041 2.907742945 1.567778003 2.860599676
+[2601] 3.549826825 0.969301755 2.616730261 4.359273852 -0.243374529
+[2606] -0.176170630 0.553896137 2.929047054 1.643013517 2.730928705
+[2611] 2.875390386 2.674127615 2.340344159 3.234929295 2.002297491
+[2616] 1.960020130 2.847969765 1.345322673 1.091739167 3.151889501
+[2621] 3.191556789 1.677330894 1.963798766 2.145655368 0.818055032
+[2626] 2.667089019 0.827241127 2.043002944 1.574715325 1.500714527
+[2631] 0.956253487 4.082580461 2.537643260 2.072988457 3.312939949
+[2636] 1.019513521 1.994268312 3.116913764 1.002230564 3.021747092
+[2641] 0.684695436 0.560937973 2.234885926 0.302798968 1.475381287
+[2646] 0.412345614 1.646878857 2.449698268 1.086333563 2.126184418
+[2651] 2.215178833 0.971196212 0.308176982 0.050287515 0.169693316
+[2656] 1.126550053 2.400196844 2.607663479 1.528865548 0.759766178
+[2661] 3.341560734 3.487460670 1.377712861 1.135493816 0.854814835
+[2666] 2.823453742 2.022338636 1.346012535 3.798774528 -0.190149459
+[2671] 0.767909339 0.515092387 2.267335251 1.220867104 2.236999927
+[2676] 2.226356804 3.836103531 1.719534827 2.892458241 1.525202449
+[2681] 3.360429019 4.236999945 1.424823792 0.413935907 0.350115929
+[2686] 1.541111249 3.080220652 2.457455292 1.572257519 4.230977077
+[2691] 2.961689726 0.034754743 2.783076730 2.546934108 2.372025395
+[2696] 2.570777548 2.683273817 2.735025218 2.987078206 0.671118673
+[2701] 2.876064785 2.891877663 0.796703439 0.648768165 2.693453775
+[2706] 2.815974650 3.167095340 2.908332736 2.439792514 -0.217362059
+[2711] 2.452096311 2.122519961 2.026793697 0.697774457 1.503603617
+[2716] 1.071383127 1.732714645 3.219853654 2.330081188 3.210791330
+[2721] 3.188845243 1.090893844 2.771165693 1.916966525 2.742374739
+[2726] 2.838802257 2.215042235 2.382704522 3.616090481 4.249632219
+[2731] 2.763158431 1.310396574 3.646694498 1.023858539 3.057392986
+[2736] 0.661870421 3.528367764 1.418768493 1.590033885 1.237891303
+[2741] 1.117319324 3.609279993 1.423802640 2.698535313 1.793444134
+[2746] 2.964760844 0.840890483 1.748714306 3.246671199 0.639023100
+[2751] 1.082216941 1.779730987 1.892997727 3.557544502 2.550160192
+[2756] 2.343091395 2.290543411 1.952249383 2.321755190 4.446395642
+[2761] 1.390073172 1.982326930 1.363697259 2.758067958 1.642804226
+[2766] 1.238655684 3.192996057 1.652667425 1.495438447 1.286784374
+[2771] 3.563833924 3.918080897 0.512114666 3.909722723 1.723716704
+[2776] 2.568861829 2.444158870 -0.274562019 2.304611032 1.194018301
+[2781] 2.716749775 1.358311064 1.487797986 -0.784591149 1.057096038
+[2786] 2.369826033 3.335337058 2.266170951 1.771993448 2.067464465
+[2791] 0.636635137 1.393257473 3.818547554 1.932509933 1.317035869
+[2796] 2.258248621 1.573189650 1.122733638 2.404554179 1.583854334
+[2801] 2.876253959 2.769204875 2.560723109 2.058251104 2.312199876
+[2806] 1.598978879 0.429489309 1.961514626 0.460507733 0.919542682
+[2811] 0.392110928 2.069148466 2.839291316 1.695939676 0.780345283
+[2816] 3.208872503 1.527237405 3.088599011 2.176919335 1.088950427
+[2821] 2.273329306 -0.056891961 1.438889413 1.085313735 3.610424644
+[2826] 0.580932464 3.524941491 3.005390533 2.717991165 2.045001827
+[2831] 2.445583566 3.379083960 1.804271274 1.653585693 1.552887559
+[2836] 1.060325541 1.568419766 -0.813697134 2.422201472 2.007803916
+[2841] 2.456459767 2.171035170 1.984276179 2.610292082 0.622953261
+[2846] 1.252532311 1.048988604 3.214700360 0.850521299 1.340063464
+[2851] 1.961695326 1.085320852 2.194853197 1.713467458 4.064455961
+[2856] 1.757489870 1.762896300 2.981311307 2.203820361 1.687618772
+[2861] 1.032413800 1.698473391 1.283269088 -1.021582432 2.081604739
+[2866] 2.564936353 0.977609606 1.970545386 0.570997625 0.674836346
+[2871] 1.723462539 2.301515311 3.916873507 3.187778282 2.315077112
+[2876] 3.630043481 0.370582190 1.176927144 1.543075295 1.465406760
+[2881] 2.280837993 0.431137610 2.284934198 2.533377590 0.243299892
+[2886] 1.169951997 3.031250254 1.891466004 1.905255631 1.628732451
+[2891] 2.968414610 4.120790313 2.610252835 1.774475085 2.463344230
+[2896] 1.667189353 1.912640563 2.851450090 2.071656002 2.140258013
+[2901] 2.713978771 4.422378470 0.637991679 0.159938471 1.113665026
+[2906] 0.869210159 4.173420143 2.387224566 2.391961824 3.502766439
+[2911] 0.960372483 2.955446629 1.785800042 1.402064688 0.786748975
+[2916] 1.943903174 1.301723217 -0.010311625 -0.009113789 3.976158100
+[2921] 1.007791362 2.241985205 1.807473638 1.769726272 1.568678956
+[2926] 0.274273568 0.918223986 2.467744815 2.501343950 2.986699435
+[2931] 1.466368867 0.999750376 -1.336197013 1.001866033 1.496387322
+[2936] 2.528131624 2.214164256 1.560221487 0.945384125 2.053845094
+[2941] 0.845176089 2.973618556 1.277846096 -0.445879186 3.048928225
+[2946] 0.789445327 1.725206138 3.209212597 2.293049120 2.205078780
+[2951] 3.636935465 2.072107907 0.833315320 2.825608391 1.925570674
+[2956] 2.231843772 1.366691567 0.982040815 0.072456587 0.588147104
+[2961] 0.917277938 1.959788040 3.690623955 1.123675250 0.392773803
+[2966] -0.229436782 0.772601109 1.783372710 1.550626318 1.370837785
+[2971] 2.450256303 2.633407763 2.179322413 1.008274906 3.143510113
+[2976] 3.625454267 1.870365359 1.536751138 1.348689078 2.273958328
+[2981] 2.921511923 2.123874244 2.438591520 1.545755985 1.281990615
+[2986] 1.317876441 2.084321150 2.626916580 0.729385691 2.082041525
+[2991] 0.701096128 1.112883478 0.154672754 2.485449956 1.730203008
+[2996] 0.746004470 2.837039803 0.166423359 1.807763545 1.805263207
+[3001] 1.787367360 4.037087939 2.757629722 2.837913076 2.838984806
+[3006] 3.249990199 0.878780709 0.907575529 1.787285036 2.651575552
+[3011] 2.305622737 2.543565418 1.485010929 2.726121414 1.082813416
+[3016] 3.263911042 -0.056888916 1.305381979 3.791169245 2.475541117
+[3021] 2.606309278 0.820498915 2.267770365 2.342316136 1.495545205
+[3026] 0.624470494 0.940673456 2.478767192 2.412450040 1.432796845
+[3031] 2.950837209 1.416334148 2.188367016 0.539352483 2.090794408
+[3036] 2.876764094 2.207803827 3.129761538 2.723666688 3.392763766
+[3041] 3.355080414 2.437499178 2.709881042 2.848179435 -0.072040984
+[3046] 4.387191128 1.633154973 2.187882487 1.008539134 0.583804330
+[3051] 1.319244165 0.891998291 2.043292380 1.609765120 3.364206216
+[3056] 2.147806366 3.101660703 2.586677206 0.556374016 0.016887691
+[3061] 1.708735146 1.419907401 1.883477980 2.294323519 3.589266351
+[3066] 2.832937449 1.536110982 0.378037832 2.630934588 0.696585121
+[3071] 3.228287034 2.457088698 2.176158909 2.662011357 1.523402087
+[3076] 2.010462995 -0.218195380 0.906527917 3.513164680 2.332986479
+[3081] -0.074832409 2.662880485 3.869460525 1.819975058 0.972640238
+[3086] 0.040533987 1.211052074 1.672396253 3.508893574 1.418894801
+[3091] 1.149630744 2.188509116 3.136466421 1.650002160 1.891885583
+[3096] 1.512041831 1.699961074 -0.039588673 0.724832809 1.182975092
+[3101] -0.674414097 0.251362436 2.094834732 2.144312416 2.607148822
+[3106] 3.064245706 1.751844254 1.645588529 2.606103031 -0.266602018
+[3111] 0.494219022 0.518396144 1.292608008 3.208061241 0.905887810
+[3116] 3.516543000 0.950873953 2.536970648 1.719411117 3.169646638
+[3121] 1.809545045 2.000649170 0.825873903 1.823010855 2.517929408
+[3126] 1.865490485 1.261591325 0.523523028 2.232814571 0.260748570
+[3131] 2.701666616 1.566150811 0.397647189 0.537931441 0.716414963
+[3136] 3.487276339 1.238436791 1.994773739 3.569168811 0.765761416
+[3141] 2.849141564 2.240153307 2.275628671 0.871825063 2.927930267
+[3146] 0.561200734 1.581654628 1.598909670 2.140670134 2.191442648
+[3151] 2.960003651 1.901301811 2.200941019 1.143200321 3.069670026
+[3156] 1.722126424 2.210527837 3.650057336 1.695698598 2.634424068
+[3161] 2.897244650 3.585673356 0.564904446 1.827284032 1.409211030
+[3166] 2.972110944 2.841693620 2.861023493 1.452400357 1.913938899
+[3171] 1.822306257 2.620716612 2.806406691 0.452488089 0.430329119
+[3176] 1.953105920 2.711285958 1.941924127 1.038684329 1.711515315
+[3181] 1.134733945 1.847878885 2.769317819 1.257801607 3.837440157
+[3186] 1.548909393 3.168791192 3.245773854 1.943808059 0.762755687
+[3191] 0.646016590 1.680724533 3.856124671 1.064052281 1.950660835
+[3196] 2.806327054 2.755320935 2.311817111 0.835117819 -0.132887282
+[3201] 1.338486570 3.073668629 1.423605071 2.020287495 2.207988661
+[3206] 1.724868333 2.536986859 1.472242639 0.349523499 3.877220091
+[3211] 0.266835322 1.296838852 2.788957767 2.956814523 2.147859827
+[3216] 2.732428478 0.166150144 1.515229147 2.657525365 2.954604445
+[3221] 1.841091792 1.536080815 1.387740370 2.219224641 2.785534943
+[3226] 0.459392481 1.278733608 1.539195204 -0.383448015 3.118669999
+[3231] 1.182621031 1.822191093 3.358359002 2.877473453 1.380715695
+[3236] 1.938860411 1.724614679 0.555920242 0.818711345 1.546490350
+[3241] 0.957154658 3.813151235 1.785249847 1.136928756 1.165164330
+[3246] 2.127350382 2.351828912 1.712356710 1.852242237 2.754311145
+[3251] -0.140822510 3.072455458 2.857108890 1.604388686 1.555676143
+[3256] 1.893256811 2.582509808 2.746206394 1.057522462 2.451531426
+[3261] 4.169370082 1.933593496 1.323177369 2.722022712 -0.007680486
+[3266] 1.013479083 1.508785615 2.285254944 1.847518597 2.268125101
+[3271] 3.881140866 1.109060727 2.488911141 3.384687899 0.631443582
+[3276] 4.223102861 0.676643337 2.096921059 2.120473623 2.918029620
+[3281] 2.283920775 1.602321262 1.464966603 3.945840583 3.281013316
+[3286] 2.565084342 1.512568798 2.997717451 2.409768930 3.491687682
+[3291] 2.431783641 0.696590841 2.946451872 3.151435999 0.415852715
+[3296] 1.192767155 1.945635455 1.467734586 2.529787867 2.604534022
+[3301] 1.724593230 1.483661780 2.332507167 2.860452724 1.970517223
+[3306] 1.054675826 1.365064584 0.773395218 3.045517334 3.153871441
+[3311] 3.216829182 0.654209936 1.630787227 1.882681484 2.852638306
+[3316] 1.015763050 2.787268936 1.656440604 -0.675042833 0.687805179
+[3321] 2.080559019 0.498997940 3.306271689 -0.071507950 0.359176155
+[3326] 2.037721246 1.447090756 2.764469058 3.345640719 1.727408028
+[3331] 1.236448858 1.653313681 3.063182562 1.499298938 1.980747812
+[3336] 2.411578873 3.659517871 -0.830977214 2.764050094 3.475113212
+[3341] 1.365488433 2.489761413 1.837781044 1.380615397 2.128028106
+[3346] 3.879276583 0.481141381 1.324237853 3.911626467 2.338134784
+[3351] 3.486128988 0.849144160 1.809703231 2.377107833 1.740049680
+[3356] 1.214029056 1.355503093 1.293403032 0.883153369 3.333988860
+[3361] 0.944740407 3.467271978 1.369081706 1.348474532 2.772825389
+[3366] 3.122879029 2.056797292 1.757467353 2.876919149 0.390211877
+[3371] 0.571551745 1.588271201 4.009665112 2.240464603 1.975490718
+[3376] 2.041121886 0.196173120 1.451939079 2.298424159 1.460403175
+[3381] 2.024752888 1.872966459 2.232604879 3.342327227 1.700935375
+[3386] 0.481736076 4.640412599 2.004674547 1.620823479 2.472014616
+[3391] 4.126992556 0.816360022 2.780198486 0.918496346 1.255559180
+[3396] 2.180397223 2.358895938 3.031560907 1.857988637 2.532774965
+[3401] 2.778067353 2.326119886 3.180608701 4.466709331 1.979009411
+[3406] 1.497340087 -0.975099450 2.536752868 -0.348187915 2.222124079
+[3411] 3.417211393 2.150373716 3.808074212 1.496786902 1.711369984
+[3416] 2.845680432 2.241165168 1.633270508 2.077740858 1.866696657
+[3421] 3.459864248 4.096503722 0.188037212 3.067954482 2.254588895
+[3426] 1.420425853 2.553230354 1.048619523 2.331290165 0.785046594
+[3431] 0.596486213 -0.022725521 0.262738092 2.558969059 2.564359812
+[3436] 3.156729449 1.491310038 3.506333050 1.971165713 0.947080658
+[3441] -0.440291778 1.804932085 1.986054236 2.268000912 4.185383656
+[3446] 1.218453420 0.112656775 0.476606322 2.799754130 0.009228082
+[3451] 2.487611945 2.595311785 1.532617508 1.097790769 1.142984055
+[3456] 5.221735496 3.289029240 3.033435586 1.832462119 2.503569396
+[3461] 1.673412820 1.564368843 4.776324984 2.416340941 2.036728889
+[3466] 1.547245464 2.019278809 0.289644076 1.822625406 3.831018619
+[3471] 2.177141407 1.687520370 2.304805493 2.658781437 3.330955593
+[3476] 3.198034337 1.387438600 3.007848526 1.812215363 0.793061272
+[3481] 3.247368127 2.701407498 2.246935825 2.439797668 0.634281275
+[3486] 1.353527598 -0.741178760 0.461639618 1.509373928 3.601381180
+[3491] 4.621975309 3.195883051 1.318686162 2.727818437 1.938426525
+[3496] 2.508459210 0.971699546 0.632783752 3.080337115 0.679204103
+[3501] 2.450202318 1.653952362 3.564987134 2.897724870 2.646203800
+[3506] 1.016397470 1.860290479 2.510282288 0.701086392 2.852751785
+[3511] 2.076265886 1.641772369 0.347270085 1.121202625 0.622022337
+[3516] 0.789408072 2.717839015 0.735399668 4.089023147 0.976471596
+[3521] 0.590307465 2.336571828 2.746559297 1.903467326 2.311139744
+[3526] -0.149468871 0.760466486 1.481608671 2.157945094 1.110211971
+[3531] 2.806406858 2.844971294 3.501151906 1.663528916 1.314942333
+[3536] 2.391867254 3.441558425 2.906856636 1.957028361 0.577295683
+[3541] 0.441161762 3.386046860 1.860776740 1.040048856 3.167719277
+[3546] 2.419769138 1.614802580 1.072872063 3.005719584 -0.036199503
+[3551] 2.920064348 2.135313542 2.196823215 1.083529818 0.457658232
+[3556] 2.017131462 0.858758476 2.124553822 1.333263131 2.667083428
+[3561] 3.399487792 2.362858390 -0.915811505 -0.017617117 0.277181188
+[3566] 1.783092566 1.297620129 1.873898634 1.857023979 0.242569722
+[3571] 1.685767630 0.370105498 2.176759981 2.179786781 0.294584902
+[3576] 2.777195926 -0.166359923 -0.018231967 2.261976521 1.797139692
+[3581] 2.468178262 2.685415464 0.024256671 0.671107731 2.720478658
+[3586] 2.562700859 2.435460423 2.173607388 0.769414519 2.122620752
+[3591] 0.300977491 2.155449520 2.021707744 1.159814992 1.113006337
+[3596] 1.770408860 1.182670964 -0.263204539 2.484586343 2.339724512
+[3601] 1.844429118 2.411221862 2.578795739 1.647792645 0.624681377
+[3606] 2.274649767 2.723029759 2.024111060 1.435318151 1.295358935
+[3611] 2.423110110 3.345564752 3.443860712 1.719062130 1.530304986
+[3616] 1.776098866 -0.587255252 1.778152463 2.571339752 1.523263217
+[3621] 2.657761704 2.615801303 2.028696989 2.288342318 3.676021351
+[3626] 1.919300584 2.492471047 2.679351610 2.002558620 3.610442119
+[3631] 2.199717455 1.130105614 1.816946214 1.316929404 0.308898353
+[3636] 0.814214713 4.228499954 3.972023770 1.693085159 2.409418267
+[3641] 1.705982271 1.265340450 2.506171958 1.055077149 2.087730657
+[3646] 2.102857742 2.818831094 1.859435408 0.963746653 3.292056020
+[3651] 2.376663779 2.572732737 0.919753918 1.564292778 -0.227473603
+[3656] 1.066805822 2.922525381 3.532853168 1.731510641 2.512457178
+[3661] 2.011847889 1.572157036 2.558159638 3.636415381 1.144523413
+[3666] 3.134634866 2.951463951 1.571812645 0.899892068 -2.175237472
+[3671] 3.196363069 0.470053911 2.732527913 3.469041908 -0.048363219
+[3676] 3.227662256 2.584198244 2.018518980 3.900786143 3.088562578
+[3681] 2.538769892 0.372019865 1.572537048 2.293642461 3.999785471
+[3686] 1.835259933 2.741511220 4.528983788 3.085496404 2.977063729
+[3691] 2.406021141 2.299747462 1.898737492 1.098111631 2.001983525
+[3696] 1.423106608 1.708194831 2.164433808 4.180962407 2.240012501
+[3701] 2.482398272 2.069966116 0.759023991 2.892663630 2.522659374
+[3706] 2.658662185 0.359769357 2.211204211 1.698397585 1.722692986
+[3711] 1.795861718 0.157965859 0.927675758 1.468179238 1.740026888
+[3716] 0.043945585 2.663095419 2.034464982 1.422425866 3.453403807
+[3721] 3.447469301 3.370947890 2.826184390 1.944582455 0.475119178
+[3726] 2.002419776 1.795302319 1.355376639 1.295774517 2.194958381
+[3731] 2.629834026 1.573731964 1.734463388 0.961681918 1.737039793
+[3736] 0.197191354 2.237427453 0.722857744 2.909945510 1.720443712
+[3741] 0.489508474 2.162405209 1.927191160 3.368291796 1.383484905
+[3746] 2.912173172 2.136063221 1.217926389 3.346851718 2.050675987
+[3751] 0.959114063 3.156746522 3.949903804 2.044792956 0.961877549
+[3756] 1.602293322 1.375540038 2.239598876 2.721385714 1.605092855
+[3761] 3.455175158 1.099539939 1.041064532 0.974161121 0.108106971
+[3766] 0.393117541 1.740237340 2.033058274 1.346255131 2.287088204
+[3771] 0.099744738 0.049358224 0.796591477 1.871258866 1.519363920
+[3776] 0.492441499 1.701296194 3.783675735 0.482529531 2.646321113
+[3781] 1.964236500 1.557551383 4.260375164 1.255032776 4.922849902
+[3786] 0.627770808 -0.576730253 2.811893672 1.743012471 1.910398239
+[3791] 2.216832352 2.440836499 1.823731016 4.247426202 1.493836378
+[3796] 1.057148229 3.350836797 0.196989926 1.657187352 0.736739371
+[3801] 2.859262961 2.074016781 1.333865750 2.567358146 2.298975231
+[3806] 1.888543508 1.239529342 2.109264457 0.663797668 2.214229707
+[3811] 3.037478491 1.601350845 1.018846476 1.898625681 2.381438384
+[3816] 1.786479595 1.144546838 3.631067377 2.578493102 2.695829550
+[3821] 1.102991026 2.667597608 2.337733467 -1.543865785 0.128829774
+[3826] 2.502826943 1.897086396 -0.179195142 1.478077458 2.249300549
+[3831] 1.355244541 1.287812070 3.020831926 1.562783895 1.685355012
+[3836] 4.196534029 2.824979508 0.839408901 3.999127565 0.681634610
+[3841] 3.015271506 1.776082027 2.194772944 1.812298112 0.768185327
+[3846] 2.354107855 1.659614366 1.364719501 3.478871846 2.250220906
+[3851] 3.421229180 0.652472027 1.117170224 0.285964915 2.942685707
+[3856] 0.972233468 1.345849344 2.723644128 2.044220813 1.337925285
+[3861] 2.009624487 1.932512826 3.861295080 3.151701886 2.446049774
+[3866] -0.300903501 0.901270029 2.255772279 2.727545891 1.103344376
+[3871] 1.288437572 0.833169563 -0.572180354 3.008780039 1.561072850
+[3876] 2.081424078 1.563093392 0.606901409 2.792722208 2.618119004
+[3881] 1.539593273 1.152736816 4.365382376 3.247836542 1.982595434
+[3886] 1.465533779 1.459825685 0.823261961 0.056992403 3.072574767
+[3891] 1.465310949 2.120166823 2.510458561 1.299370790 1.803371062
+[3896] 2.115943520 2.410706436 -0.106773137 1.034127930 0.230118551
+[3901] 0.647062522 1.878672351 2.163581189 3.331088649 1.838497926
+[3906] 1.669851625 1.607699771 3.447460395 1.228072411 1.965055514
+[3911] 2.144572269 0.531540271 2.804693883 4.059926402 1.507595886
+[3916] 2.863279956 3.290160325 0.740429215 0.513128271 0.513392632
+[3921] 2.278906076 1.427822148 1.251685788 1.936062756 2.906787533
+[3926] 2.618211156 0.828728263 1.635341876 4.121141812 1.302693329
+[3931] 1.103946602 1.850404058 1.153250184 1.684511361 2.618351518
+[3936] 1.071955121 1.995777958 1.488187644 0.410240012 1.259283046
+[3941] 1.462409421 2.173325316 0.560423478 1.884714271 0.751006408
+[3946] 4.140458995 1.793244069 1.225137892 2.216311036 0.535053521
+[3951] 0.478460576 3.183607060 2.094318554 1.891558512 2.437425305
+[3956] 1.197585211 0.572653464 0.262836302 1.801774354 0.851853963
+[3961] 2.214844309 0.876795069 2.974828256 1.602691955 3.823117420
+[3966] 3.192662619 2.169309599 1.105424099 0.203320852 2.372429213
+[3971] 1.624611911 -0.127232763 0.707475896 3.200847916 -1.029698830
+[3976] 2.102372173 -0.776985194 2.068228234 1.139866988 1.630073796
+[3981] 0.615501345 2.193273400 -0.708950257 0.445528694 1.483704102
+[3986] 3.005934380 3.179665223 2.081869716 1.344246133 2.532178239
+[3991] 0.848357003 1.247300773 0.869393374 0.825096270 4.298838832
+[3996] 0.972865400 2.328812589 1.640779696 3.301833427 2.763848937
+ # The variable type is continuousbim <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.bim", header = FALSE)
+nrow(bim)[1] 101083
+ # The dataset conatins 101083 SNPs plink2 --bfile ../data/gwa.qc.A1 --export A --out ../data/gwa.qc.A1_additivePLINK v2.0.0-a.7 64-bit (10 Jan 2026) cog-genomics.org/plink/2.0/
+(C) 2005-2026 Shaun Purcell, Christopher Chang GNU General Public License v3
+Logging to ../data/gwa.qc.A1_additive.log.
+Options in effect:
+ --bfile ../data/gwa.qc.A1
+ --export A
+ --out ../data/gwa.qc.A1_additive
+
+Start time: Mon Mar 16 23:01:30 2026
+16108 MiB RAM detected; reserving 8054 MiB for main workspace.
+Using up to 12 threads (change this with --threads).
+4000 samples (2000 females, 2000 males; 4000 founders) loaded from
+../data/gwa.qc.A1.fam.
+101083 variants loaded from ../data/gwa.qc.A1.bim.
+1 quantitative phenotype loaded (4000 values).
+
+--export A pass 1/1: loading... 0%64% writing... 0%1%2%3%4%5%6%7%8%9%10%11%12%13%14%15%16%17%18%19%20%21%22%23%24%25%26%27%28%29%30%31%32%33%34%35%36%37%38%39%40%41%42%43%44%45%46%47%48%49%50%51%52%53%54%55%56%57%58%59%60%61%62%63%64%65%66%67%68%69%70%71%72%73%74%75%76%77%78%79%80%81%82%83%84%85%86%87%88%89%90%91%92%93%94%95%96%97%98%99% done.
+--export A: ../data/gwa.qc.A1_additive.raw written.
+End time: Mon Mar 16 23:01:32 2026
+library(data.table)
+
+# Load the genotype matrix (additive coding)
+geno <- fread("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1_additive.raw")
+
+# Select the 4 SNPs using exact column names
+geno_sub <- geno[, .(rs1861_C, rs3813199_G, rs3128342_C, rs11804831_T)]
+
+# Calculate allele frequencies (divide by 2 because additive coding is 0,1,2)
+af <- colMeans(geno_sub, na.rm = TRUE) / 2
+af rs1861_C rs3813199_G rs3128342_C rs11804831_T
+ 0.9460141 0.9430874 0.6948789 0.8456588
+ # Allele frequencies for the 4 SNPs:
+# rs1861_C = 0.9460141
+# rs3813199_G = 0.9430874
+# rs3128342_C = 0.6948789
+# rs11804831_T = 0.8456588 # MAF is the smaller of AF and 1-AF
+maf <- pmin(af, 1 - af)
+maf rs1861_C rs3813199_G rs3128342_C rs11804831_T
+ 0.05398587 0.05691262 0.30512109 0.15434124
+ # Minor Allele Frequencies for the 4 SNPs:
+# rs1861_C = 0.05398587
+# rs3813199_G = 0.05691262
+# rs3128342_C = 0.30512109
+# rs11804831_T = 0.15434124plink2 --bfile ../data/gwa.qc.A1 --hardy --out ../data/gwa.qc.A1_hwePLINK v2.0.0-a.7 64-bit (10 Jan 2026) cog-genomics.org/plink/2.0/
+(C) 2005-2026 Shaun Purcell, Christopher Chang GNU General Public License v3
+Logging to ../data/gwa.qc.A1_hwe.log.
+Options in effect:
+ --bfile ../data/gwa.qc.A1
+ --hardy
+ --out ../data/gwa.qc.A1_hwe
+
+Start time: Mon Mar 16 23:01:38 2026
+16108 MiB RAM detected; reserving 8054 MiB for main workspace.
+Using up to 12 threads (change this with --threads).
+4000 samples (2000 females, 2000 males; 4000 founders) loaded from
+../data/gwa.qc.A1.fam.
+101083 variants loaded from ../data/gwa.qc.A1.bim.
+1 quantitative phenotype loaded (4000 values).
+Calculating allele frequencies... 0%64%done.
+--hardy: 0%1%2%3%4%5%6%7%8%9%10%11%12%13%14%15%16%17%18%19%20%21%22%23%24%25%26%27%28%29%30%31%32%33%34%35%36%37%38%39%40%41%42%43%44%45%46%47%48%49%50%51%52%53%54%55%56%57%58%59%60%61%62%63%64%65%66%67%68%69%70%71%72%73%74%75%76%77%78%79%80%81%82%83%84%85%86%87%88%89%90%91%92%93%94%95%96%97%98%99%
+--hardy: Autosomal Hardy-Weinberg report (founders only) written to
+../data/gwa.qc.A1_hwe.hardy .
+End time: Mon Mar 16 23:01:39 2026
+ # Load the HWE results
+library(data.table)
+hwe <- fread("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1_hwe.hardy")
+head(hwe) #CHROM ID A1 AX HOM_A1_CT HET_A1_CT TWO_AX_CT O(HET_A1)
+ <int> <char> <char> <char> <int> <int> <int> <num>
+1: 1 rs3737728 G A 1713 1841 428 0.462330
+2: 1 rs1320565 C T 3368 589 19 0.148139
+3: 1 rs3813199 G A 3531 428 12 0.107781
+4: 1 rs11804831 T C 2820 1061 81 0.267794
+5: 1 rs3766178 T C 2391 1378 214 0.345970
+6: 1 rs3128342 C A 1927 1655 382 0.417508
+ E(HET_A1) P
+ <num> <num>
+1: 0.447932 0.0437892
+2: 0.145262 0.2734290
+3: 0.107347 1.0000000
+4: 0.261040 0.1133540
+5: 0.350629 0.4158770
+6: 0.424044 0.3302730
+library(data.table)
+
+# Load HWE results
+hwe <- fread("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1_hwe.hardy")
+
+# Filter for our 4 SNPs and show their p-values
+snps <- c("rs1861", "rs3813199", "rs3128342", "rs11804831")
+hwe[ID %in% snps, .(ID, P)] ID P
+ <char> <num>
+1: rs3813199 1.000000
+2: rs11804831 0.113354
+3: rs3128342 0.330273
+4: rs1861 0.274719
+ # HWE p-values for the 4 SNPs:
+# rs1861 = 0.274719
+# rs3813199 = 1.000000
+# rs3128342 = 0.330273
+# rs11804831 = 0.113354library(data.table)
+
+# Load genotype and phenotype data
+geno <- fread("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1_additive.raw")
+fam <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.fam", header = FALSE)
+
+# Extract phenotype (column 6) and rs1861 genotype
+phenotype <- fam$V6
+rs1861 <- geno$rs1861_C
+
+# Fit linear regression
+model_add <- lm(phenotype ~ rs1861)
+summary(model_add)
+Call:
+lm(formula = phenotype ~ rs1861)
+
+Residuals:
+ Min 1Q Median 3Q Max
+-3.5439 -0.6850 0.0021 0.6993 3.3268
+
+Coefficients:
+ Estimate Std. Error t value Pr(>|t|)
+(Intercept) 0.05238 0.09486 0.552 0.581
+rs1861 0.97382 0.04943 19.703 <2e-16 ***
+---
+Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
+
+Residual standard error: 1.003 on 3962 degrees of freedom
+ (36 observations deleted due to missingness)
+Multiple R-squared: 0.08924, Adjusted R-squared: 0.08901
+F-statistic: 388.2 on 1 and 3962 DF, p-value: < 2.2e-16
+ # p-value for rs1861 = <2e-16# The beta coefficient for rs1861 is 0.97382library(data.table)
+
+# Reload data
+geno <- fread("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1_additive.raw")
+fam <- read.table("C:/Users/minal/OneDrive/Desktop/gen_data/02_activities/data/gwa.qc.A1.fam", header = FALSE)
+phenotype <- fam$V6
+rs1861 <- geno$rs1861_C
+model_add <- lm(phenotype ~ rs1861)
+
+# Plot scatterplot with regression line
+plot(rs1861, phenotype,
+ xlab = "Genotype of rs1861 (additive coding)",
+ ylab = "Phenotype",
+ main = "Phenotype vs rs1861 Genotype")
+abline(model_add, col = "red")
# Recessive coding: only 2 copies of allele = 1, everything else = 0
+rs1861_rec <- ifelse(rs1861 == 2, 1, 0)
+table(rs1861_rec)rs1861_rec
+ 0 1
+ 413 3551
+## Linear regression with recessive coding
+model_rec <- lm(phenotype ~ rs1861_rec)
+summary(model_rec)
+Call:
+lm(formula = phenotype ~ rs1861_rec)
+
+Residuals:
+ Min 1Q Median 3Q Max
+-3.5437 -0.6892 0.0015 0.7016 3.3270
+
+Coefficients:
+ Estimate Std. Error t value Pr(>|t|)
+(Intercept) 0.99231 0.04945 20.07 <2e-16 ***
+rs1861_rec 1.00754 0.05224 19.29 <2e-16 ***
+---
+Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
+
+Residual standard error: 1.005 on 3962 degrees of freedom
+ (36 observations deleted due to missingness)
+Multiple R-squared: 0.08582, Adjusted R-squared: 0.08559
+F-statistic: 372 on 1 and 3962 DF, p-value: < 2.2e-16
+# Answer: p-value shown in rs1861_rec row under Pr(>|t|)
+ # p-value for recessive model = <2e-16 # Plot scatterplot with recessive coding and regression line
+plot(rs1861_rec, phenotype,
+ xlab = "Genotype of rs1861 (recessive coding)",
+ ylab = "Phenotype",
+ main = "Phenotype vs rs1861 Recessive Genotype")
+abline(model_rec, col = "blue")
summary(model_add)$r.squared[1] 0.08923678
+summary(model_rec)$r.squared [1] 0.08582295
+# The additive model fits better.
+# Additive R-squared = 0.08924
+# Recessive R-squared = 0.08582
+# Higher R-squared means better fit| Criteria | +Complete | +Incomplete | +
|---|---|---|
| Data Inspection | +Correct sample/SNP counts and variable type identified. | +Missing or incorrect counts or variable type. | +
| Allele Frequency Estimation | +Correct allele and minor allele frequencies computed. | +Frequencies missing or wrong. | +
| Hardy–Weinberg Equilibrium Test | +Correct PLINK command and p-value extraction in R. | +PLINK command or extraction incorrect/missing. | +
| Genetic Association Test | +Correct regressions, plots, coding, and interpretation. | +Regression, plots, or interpretation missing/incomplete. | +
📌 Please review our Assignment Submission Guide for detailed instructions on how to format, branch, and submit your work. Following these guidelines is crucial for your submissions to be evaluated correctly.
+If you like, you may collaborate with others in the cohort. If you choose to do so, please indicate with whom you have worked with in your pull request by tagging their GitHub username. Separate submissions are required.
+Submission Due Date: 11:59 PM – 16/03/2026
Branch name for your repo should be: assignment-1
What to submit for this assignment:
+assignment_1.qmd).quarto render assignment_1.qmd.assignment_1.qmd and the rendered HTML file assignment_1.html in your pull request.What the pull request link should look like for this assignment: https://github.com/<your_github_username>/gen_data/pull/<pr_id>
Checklist:
+assignment_1.qmd and assignment_1.html are included in the pull request.If you encounter any difficulties or have questions, please don’t hesitate to reach out to our team via our Slack help channel. Our technical facilitators and learning support team are here to help you navigate any challenges.
+