HAPNEST: efficient, large-scale generation and evaluation of synthetic datasets for genotypes and phenotypes

Sophie Wharrie, Zhiyu Yang, Vishnu Raj, Remo Monti, Rahul Gupta, Ying Wang, Alicia Martin, Luke J. O'Connor, Samuel Kaski, Pekka Marttinen, Pier Francesco Palamara, Christoph Lippert, Andrea Ganna

TL;DR

This paper introduces HAPNEST, a novel tool for efficiently generating large-scale, realistic synthetic genotype and phenotype datasets. It addresses the limitations of existing methods in scalability and evaluation, providing a benchmark dataset and software to advance research in areas like polygenic risk scoring.

What Problem Does This Paper Address?

The field of genomics is increasingly reliant on large-scale biobanks for analyzing common genetic variants and developing methods like polygenic risk scoring (PRS). However, accessing and sharing real genomic data is hampered by privacy concerns. This creates a demand for high-quality synthetic datasets that can mimic real data properties without compromising privacy. Existing simulation tools often struggle with scalability, making it difficult to generate datasets large enough for biobank-scale analyses. Furthermore, there's a lack of standardized approaches for evaluating the quality of synthetic data and a benchmark dataset for developing and testing PRS methods across diverse populations and genetic architectures.

Methods

HAPNEST employs a reference-based approach to simulate synthetic haplotypes by resampling segments from real reference genomes. It builds upon the Li and Stephens model of linkage disequilibrium (LD) but introduces a novel aspect by modeling varying coalescence ages of segments, inspired by the sequential Markovian coalescent model. This allows for the preservation of key statistical properties (fidelity) while limiting overfitting to the reference data (generalizability) by introducing variability. Phenotypes are then assigned based on user-defined genetic effects (heritability, polygenicity), covariates, and environmental factors. A key innovation is the integration of an end-to-end pipeline for generating, evaluating synthetic data quality, and optimizing model parameters using approximate Bayesian computation (ABC). The software is implemented in Julia for efficient multithreading and memory management, enabling it to handle large reference panels that may not fit into memory.

Datasets

The paper utilizes the 1000 Genomes Project and Human Genome Diversity Project (1KG+HGDP) datasets, comprising 4062 phased genotypes from six major discrete ancestry groups, as the reference panel for genotype simulation.

A significant contribution is the creation of a large synthetic dataset: 1,008,000 individuals and nine traits for 6.8 million common variants. This dataset is made publicly available as a benchmark for evaluating statistical methods.

Key Insights and Ideas

  • Balancing Fidelity and Generalizability: The paper highlights a crucial trade-off between generating highly accurate (high fidelity) synthetic data that closely matches the reference, and generating diverse data (high generalizability) that is less likely to be a direct copy of the reference. HAPNEST's ABC approach aims to find an optimal balance.
  • Scalability is Key: Existing methods struggle to scale to the millions of individuals and millions of variants needed for modern biobank-scale analyses. HAPNEST's efficient implementation, particularly its multithreading capabilities, directly addresses this bottleneck.
  • Synthetic Data for PRS Evaluation: The paper demonstrates the utility of HAPNEST by using its synthetic data to compare various polygenic risk scoring (PRS) methods. This provides a controlled environment to assess PRS performance across different genetic architectures and ancestry groups, which is critical given the known limitations in PRS transferability.
  • Privacy-Preserving Potential: The generated synthetic data, while not explicitly tested for differential privacy guarantees, exhibits properties that make it difficult to distinguish from real data, suggesting its potential for privacy-preserving genomic research.

Key Results

  • Computational Efficiency: HAPNEST is significantly faster than HAPGEN2 for large-scale simulations, being 2.4-8.2x faster for a single thread and 5.3-24x faster for multiple threads when simulating 100,000 individuals. It also uses substantially less RAM.
  • Data Quality: HAPNEST generates synthetic data that preserves key statistical properties like LD structure and population structure, often outperforming or matching other methods in evaluations of fidelity.
  • Generalizability and Diversity: HAPNEST achieves better generalizability and diversity compared to HAPGEN2, especially for larger sample sizes.
  • PRS Performance Replication: The study successfully replicated known issues with PRS transferability across ancestries using HAPNEST-generated data, validating its utility for method development and evaluation.

Limitations and Future Work

  • Admixed Sample Generation: The paper acknowledges that the method for generating "admixed" samples by sampling from multiple reference populations does not perfectly reflect the complex biological processes of multipopulation divergence and intermixing.
  • Differential Privacy Guarantees: While the synthetic data aims for privacy, the paper explicitly states that differential privacy guarantees have not been tested. Users are advised to use the method with publicly available genomics datasets.
  • Future Work: The authors suggest that their tool can benefit the community for GWAS-related method development, particularly for PRS computation and evaluation. The provided benchmark dataset and software aim to facilitate standardized evaluation of new statistical methods.

Summary updated

BibTeX
@article{wharrie2023hapnest,
  author = {Sophie Wharrie and Zhiyu Yang and Vishnu Raj and Remo Monti and Rahul Gupta and Ying Wang and Alicia Martin and Luke J. O'Connor and Samuel Kaski and Pekka Marttinen and Pier Francesco Palamara and Christoph Lippert and Andrea Ganna},
  title = {{HAPNEST: efficient, large-scale generation and evaluation of synthetic datasets for genotypes and phenotypes}},
  journal = {Bioinformatics},
  year = {2023},
  doi = {10.1093/bioinformatics/btad535},
}
Figure