Your GWAS file must include these 8 columns (in exact order):
| Column | Description | Example |
|---|---|---|
| SNP_ID | Variant identifier (rs number) | rs11130222 |
| CHR | Chromosome number (1-22) | 3 |
| POS | Genomic position | 49901060 |
| A1 | Effect allele | A |
| A2 | Other allele | T |
| Beta | Effect size | 0.026 |
| SE | Standard error | 0.003 |
| Pval | P-value | 4.581e-25 |
.gz fileUsing R:
# Save your data as a .gz file
library(R.utils)
write.table(your_data, "yourfile.txt", sep="\t", row.names=FALSE, col.names=TRUE, quote=FALSE)
gzip("yourfile.txt", destname="yourfile.gz", overwrite=TRUE)
Using Windows:
Right-click file → 7-Zip → Add to archive → Select .gz format