使用hiblup计算个体杂合率和个体纯合率
001、计算纯合率
(base) [root@PC1 test]# ls outcome.bed outcome.fam outcome.map outcome.ped outcome.bim outcome.log outcome.nosex (base) [root@PC1 test]# (base) [root@PC1 test]# hiblup --bfile outcome --homo --out test &> /dev/null (base) [root@PC1 test]# ls ## 计算个体纯合率 outcome.bed outcome.fam outcome.map outcome.ped test.log outcome.bim outcome.log outcome.nosex test.homo (base) [root@PC1 test]# cat test.homo ## 结果 id a1a1 a2a2 1 0.4 0.4 2 0.2 0.6 3 0 1 4 0 1 5 0 1 6 0 1 (base) [root@PC1 test]# cat outcome.ped DOR 1 0 0 0 -9 T T C C A A G G A G DOR 2 0 0 0 -9 T T G C G G G G G G DOR 3 0 0 0 -9 G G C C G G G G G G DOR 4 0 0 0 -9 G G C C G G G G G G DOR 5 0 0 0 -9 G G C C G G G G G G DOR 6 0 0 0 -9 G G C C G G G G G G
002、计算杂合率
(base) [root@PC1 test]# ls outcome.bed outcome.fam outcome.map outcome.ped outcome.bim outcome.log outcome.nosex (base) [root@PC1 test]# hiblup --bfile outcome --hete --out test &> /dev/null (base) [root@PC1 test]# ls ## 计算个体杂合率 outcome.bed outcome.fam outcome.map outcome.ped test.log outcome.bim outcome.log outcome.nosex test.hete (base) [root@PC1 test]# cat test.hete ## 计算结果 id a1a2 1 0.2 2 0.2 3 0 4 0 5 0 6 0 (base) [root@PC1 test]# cat outcome.ped DOR 1 0 0 0 -9 T T C C A A G G A G DOR 2 0 0 0 -9 T T G C G G G G G G DOR 3 0 0 0 -9 G G C C G G G G G G DOR 4 0 0 0 -9 G G C C G G G G G G DOR 5 0 0 0 -9 G G C C G G G G G G DOR 6 0 0 0 -9 G G C C G G G G G G
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
2022-05-28 linux 中如何删除^M(dos2unix异常)
2021-05-28 c语言中指针作为参数的函数同时计算两个数的和与差
2021-05-28 c语言中将指针作为函数的参数。
2021-05-28 c语言中指针