用于分析系谱文件的包
peds的Python项目详细描述
peds:基本系谱分析
所有这些操作都是解析pedigree文件,并将家庭中的个人分组。 只执行最小验证。
安装
pip install peds
用法
frompedsimportopen_pedfamilies=open_ped(PATH)family=families[0]# find affected family membersaffected=[xforxinfamilyisx.is_affected()]# find parentsforpersoninfamily:father=family.get_father(person)mother=family.get_mother(person)