Entering edit mode
8.9 years ago
lisesandenbergh
▴
40
I had to do this recently (C: Recoding lgen into Ped using plink)
awk 'NR > 11 { next } !seen[$2]++ {print $2,$2,0,0}' final_report.txt > Plate3_final_report.fam
awk 'NR > 11 { next } {print $2,$2,$1,$3,$4}' Plate3_final_report.txt > Plate3_final_report.lgen
awk 'NR < 2 { next } {print $3,$2,0,$4}' SNP_Map.txt > Plate3_final_report.map
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.