Skip to main content

FedGWAS overview

FedGWAS is a federated pipeline for genome-wide association studies (GWAS). It helps multiple research centers run a coordinated GWAS workflow while keeping raw genotype and phenotype data under local control. The pipeline combines Flower-based federated orchestration, PLINK-compatible genetics processing, and privacy-aware relay protocols for multi-center association analysis.

Background

GWAS studies

Genome-wide association studies are large-scale statistical studies that test genetic variants across the genome for association with a trait or disease. A typical case-control or quantitative-trait GWAS combines genotype data, phenotype labels, covariates, quality-control filters, and an association model such as linear or logistic regression. The output is usually a table of variant association statistics, including effect estimates and p-values, which can be visualized with Manhattan and quantile-quantile plots.

GWAS study illustration

GWAS results are association signals, not automatic proof of causality. Careful study design, sample quality control, variant quality control, population structure adjustment, relatedness handling, and replication are essential for interpretable results. Larger and more diverse cohorts can improve statistical power and generalizability, but many valuable datasets remain distributed across institutions.

Selected GWAS references:

Federated setting

Federated learning addresses this collaboration problem by moving computation to the data. In a federated GWAS setting, each center keeps its genotype and phenotype data locally, runs agreed-upon pipeline stages on its own infrastructure, and exchanges only configured protocol outputs with a coordinating server or with other participating clients. This model is useful when legal, ethical, governance, privacy, or data-size constraints make raw data pooling impractical.

Federated setting illustration

Federation does not make a workflow private by itself. Intermediate statistics, model parameters, gradients, or partial data products can still expose information if the protocol is not designed carefully. Practical federated GWAS systems therefore combine local computation with measures such as secure transport, encrypted client-to-client messages, masking, secure aggregation, or cryptographic computation, depending on the threat model and performance budget.

Selected federated-learning and federated-GWAS references:

What the FedGWAS pipeline does

FedGWAS implements a stage-based federated GWAS workflow, it solves the technical challenges of coordinating multi-client GWAS stages, and it provides a framework for developing and testing federated GWAS protocols.

FedGWAS workflow illustration

Its procedural stages include:

  • Reads center-level genotype data in PLINK binary format, with optional VCF conversion where configured.
  • Applies local and global quality-control checks for sample missingness, SNP missingness, minor allele frequency, and Hardy-Weinberg equilibrium.
  • Performs ECC-backed client key exchange and encrypted client-to-client relay for protocol messages that should not be decrypted by the server.
  • Uses pairwise pseudo-random masking where supported by the aggregation stage.
  • Partitions anonymized genotype data for iterative KING kinship analysis.
  • Runs local logistic-regression filtering and iterative federated association analysis.
  • Organizes logs, intermediate files, result tables, and evaluation artifacts by center and experiment scenario.

The current implementation is intended for reproducible multi-center GWAS experiments, development of federated GWAS protocols, and deployment testing with real Flower server and client processes.

Operating modes

FedGWAS supports two primary ways to run the same core pipeline.

Simulation mode

Use simulation mode when you want to validate an installation, reproduce example experiments, develop configurations, or compare federated outputs against a centralized baseline on one machine. The recommended entry point is the fedgwas-sim command-line interface, which can initialize a study directory, prepare synthetic example data, validate configuration, run Flower local simulation, generate a centralized baseline, evaluate results, and collect output artifacts.

Start with Local Simulation for the guided setup, or see Simulation Mode and the fedgwas-sim CLI for the full command reference.

Deployment mode

Use deployment mode when the server and clients should run as separate Flower processes, usually on separate machines, containers, or terminals. In this mode, Flower SuperLink coordinates the federation and each SuperNode runs a client with its own center configuration and local data paths. This is the closest repository-supported workflow to a real multi-site deployment.

Start with Federated Deployment, then see Deployment Mode for SuperLink, SuperNode, port, and TLS details.

Start here

  • Pre-requisites: Install Python dependencies, Flower, and PLINK.
  • Local Simulation: Run a complete local multi-client simulation.
  • Federated Deployment: Run FedGWAS with separate Flower server and client processes.
  • Configuration: Understand center-level YAML settings and Flower run configuration.
  • Pipeline Workflow: Follow each federated stage from key exchange through final logistic regression.
  • Privacy and Masking: Review the current privacy mechanisms and limitations.
  • Experiments: Explore shipped correctness, performance, and real-world experiment layouts.

License

FedGWAS is distributed under the MIT License. See the repository LICENSE for the full license text.