Entering edit mode
4.6 years ago
brendaumoh6
▴
10
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
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
So, given your input file, you could not spot why there is an error in your awk?