wiki:generateArtificialGwas

Version 1 (modified by Patrick, 12 years ago) (diff)

--

This page describes how to create random GWAS data for plink. A fake phenotype is generated for which significantly associated SNPs are present in the data.

Required tools

Required data

Genotypes on which generated data is based. For instance: https://mathgen.stats.ox.ac.uk/impute/impute_v1.html#Using_IMPUTE_with_the_HapMap_Data

Procedure

For this analysis we used the hapmap data:

  • Genotype data: https://mathgen.stats.ox.ac.uk/wtccc-software/rel24_poly/haplotype+legend_files_CEU_r24.tgz

Generate the artificial GWAS data

hapgen2 -h hapmap_r24_b36_fwd.consensus.qc.poly.chr22_ceu.phased -l chr22.ceu.r24.legend -m genetic_map_chr22_CEU_b36.txt -o test -dl 14431347 0 2 10 -n 2000 2000