Question: CALCULATING Z-SCORE from GWAS summary statistics.

0

brendaumoh6 •

**0**wrote:How do I calculate Z-score from a GWAS summary statistics. Note; I tried using awk command but i got an error massage :

```
awk '{print $0, $3/$4}' SBP_gwas.txt > SBP_Zscore
awk: cmd. line:1: (FILENAME=SBP_gwas.txt FNR=1) fatal: division by zero attempted
```

ADD COMMENT
• link
•
modified 12 weeks ago
by
geek_y ♦

**11k**• written 12 weeks ago by brendaumoh6 •**0**
Please show a sample of your input data. Also, it seems that you are simply trying to divide column #3 by #4?

I have put some code here for calculating Z-score from GWAS output: A: SNP dataset and Z Score

61k61k• written 12 weeks ago by brendaumoh6 •0So, given your input file, you could not spot why there is an error in your awk?

11k