plink 软件中 --set-missing-var-ids参数实现对缺失的snp位点命名
001、测试数据
(base) root@DESKTOP-IDT9S0E:/home/test# ls a.map a.ped (base) root@DESKTOP-IDT9S0E:/home/test# cat a.map 1 OAR19_64675012.1 0 85204 1 OAR19_64715327.1 0 122948 1 . 0 356863 1 . 0 400518 1 . 0 487423 1 . 0 578716 (base) root@DESKTOP-IDT9S0E:/home/test# cat a.ped DOR 1 0 0 0 -9 C C G G A A G G G C A G DOR 2 0 0 0 -9 G C G G A A A G C C A G DOR 3 0 0 0 -9 C C G G A A A G G C G G DOR 4 0 0 0 -9 C C G G A A G G G G G G DOR 5 0 0 0 -9 C C G G A A A G G C G G DOR 6 0 0 0 -9 C C G G A A A A C C G G (base) root@DESKTOP-IDT9S0E:/home/test# plink --file a --set-missing-var-ids @_# --recode tab --out result 1> /dev/null (base) root@DESKTOP-IDT9S0E:/home/test# ls a.map a.ped result.log result.map result.nosex result.ped (base) root@DESKTOP-IDT9S0E:/home/test# cat result.map ## 命名结果 1 OAR19_64675012.1 0 85204 1 OAR19_64715327.1 0 122948 1 1_356863 0 356863 1 1_400518 0 400518 1 1_487423 0 487423 1 1_578716 0 578716