1 2 3 4 5 6 7 8 9 10 11 12 13
| awk 'BEGIN {FS="\t" }
NR==1 { print "PCSK9",FILENAME }
NR==86,NR==93 { if ($12~/not/) print $14,""
else if ($8~/he/) print $14,"1"
else if ($8~/ho/) print $14,"2" }
NR==94 { if ($12~/not/) print $14,""
else if ($8~/he/ && $9!~(/^6/ || /^7/)) print $14,"1"
else if ($8~/ho/) print $14,"2"
else if ($8~/he/ && $9~(/^6/ || /^7/)) print $14,"" }
NR>=95 { if ($12~/not/) print $14,""
else if ($8~/he/) print $14,"1"
else if ($8~/ho/) print $14,"2" }
END { } ' $patientHaplo > /Volumes/DATA/Bioinf/Execute/HaploGS/Temp/tempPCSK9.txt |