资源描述:
《hardy-weinberg平衡检验计算方法》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、12345678910111213141516171819202122232425262728293031323334353637/* *Copyright(c)2009TheBroadInstitute * *Permissionisherebygranted,freeofcharge,toanyperson *obtainingacopyofthissoftwareandassociateddocumentation *files(the"Software"),todealintheSoftwarewithout *re
2、striction,includingwithoutlimitationtherightstouse, *copy,modify,merge,publish,distribute,sublicense,and/orsell *copiesoftheSoftware,andtopermitpersonstowhomthe *Softwareisfurnishedtodoso,subjecttothefollowing *conditions: * *Theabovecopyrightnoticeandthispermissio
3、nnoticeshallbe *includedinallcopiesorsubstantialportionsoftheSoftware. * *THESOFTWAREISPROVIDED"ASIS",WITHOUTWARRANTYOFANYKIND, *EXPRESSORIMPLIED,INCLUDINGBUTNOTLIMITEDTOTHEWARRANTIES *OFMERCHANTABILITY,FITNESSFORAPARTICULARPURPOSEAND *NONINFRINGEMENT.INNOEVENTSHAL
4、LTHEAUTHORSORCOPYRIGHT *HOLDERSBELIABLEFORANYCLAIM,DAMAGESOROTHERLIABILITY, *WHETHERINANACTIONOFCONTRACT,TORTOROTHERWISE,ARISING *FROM,OUTOFORINCONNECTIONWITHTHESOFTWAREORTHEUSEOR *OTHERDEALINGSINTHESOFTWARE. */ packageorg.broad.tribble.util.popgen; /** *TheBroadI
5、nstitute *SOFTWARECOPYRIGHTNOTICEAGREEMENT *Thissoftwareanditsdocumentationarecopyright2004bythe *BroadInstitute/MassachusettsInstituteofTechnology.Allrightsarereserved. * *Thissoftwareissuppliedwithoutanywarrantyorguaranteedsupportwhatsoever.Neither *theBroadInstituteno
6、rMITcanberesponsibleforitsuse,misuse,orfunctionality. */ /** 3839404142434445464748495051525354555657585960616263646566676869707172737475*ThisclasscalculatesaHardyWeinbergp-valuegiventhreevaluesrepresenting *theobservedfrequencesofhomozygousandheterozygousgenotypesinthe
7、 *testpopulation. * *@authorBobHandsaker */ publicfinalclassHardyWeinbergCalculation{ /** *Thisclassisnotinstantiable. */ privateHardyWeinbergCalculation(){ } /** *Calculatesexacttwo-sidedhardy-weinbergp-value.Parameters *arenumberofgenotypes,numberofrar
8、eallelesobservedand *numberofheterozygotesobserved. * *(c)2003JanWigginton,GoncaloAbecasis(goncal