fastGxE is a scalable and effective method designed for genome-wide GxE association analysis. fastGxE handles multiple environmental factors and examines one SNP at a time, decomposing the phenotype into SNP main effect, environmental main effects, GxE interaction effects, while controlling for polygenic effects, polygenic interaction effects, and noise heterogeneity (a). fastGxE evaluates various GxE effect size configurations and combines the resulting p-values into a single p-value to test whether the SNP interacts with at least one environmental factor (b). By explicitly modeling polygenic background and heteroscedastic noise, fastGxE generates calibrated p-values for identifying candidate GxE loci (c). Additionally, it utilizes mmSuSiE, an extension of the SuSiE algorithm, to identify the environmental factors driving the detected GxE interactions and employs the stratified Wald test to visualize and support these interactions (d).
A statically compiled executable for 64-bit Linux systems is available: fastGxE Linux Executable. This can be used directly on compatible systems.
chmod +x fastgxe
./fastgxe -h
Ensure the following dependencies are installed on your system:
- C++ Compiler (GCC 9+ or Intel C++ Compiler)
- CMake (Version 3.16 or higher)
- Intel MKL (2024.1)
- GSL (2.7)
- Eigen (3.4.0)
- LBFGSpp
- OpenMP
- CLI
- spdlog
git clone https://github.com/chaoning/fastGxE.git
cd fastGxEModify CMakeLists.txt to update the paths of external libraries (MKL, GSL, Eigen, LBFGSpp, etc.) according to your system.
Run the following commands to compile fastGxE:
mkdir build
cd build
cmake ..
cmake --build .After compilation, you can execute FastGxE:
./fastgxe -h- If you encounter missing library errors, check that all paths in
CMakeLists.txtare correctly configured. - Use
make clean && maketo rebuild after modifications.
Check our vignettes.
If you find the fastGxE package or any of the source code in this repository useful for your work, please cite:
Chao Ning and Xiang Zhou (2025). Powering genome-wide detection of genotype-environment interactions in biobank studies.
Visit our group website for more statistical tools on analyzing genetics, genomics and transcriptomics data.
