About

DetectGxT is a method for detecting gene-by-treatment (GxT) interactions on molecular count phenotypes, such as RNA-seq and ATAC-seq data. The key feature of this method is the use of nonlinear regression, which captures the relationship between genotypes and transformed molecular count phenotypes more accurately than a commonly used linear regression model. See Get started and Reference for how to run the method on a test dataset.

Portions of the code and documentation were generated with the assistance of Claude Code (Anthropic) and Codex (OpenAI). We have reviewed and verified the materials produced by these tools.

Publication

Yuriko Harigaya, Michael I. Love*, William Valdar*. “DetectGxT: detecting gene-by-treatment interactions on molecular count phenotypes accounting for allelic additivity.” (* These authors contributed equally to this work.)

Data input

DetectGxT takes as input a list of feature-SNP pairs for which significant genotype effects have already been identified in at least one of the control and treated conditions. Individual genotype and phenotype data for these pairs in both conditions are also required. The input set of feature-SNP pairs can be identified by a standard method, such as MatrixEQTL, TensorQTL, and limix_qtl. See Get started for the format of input data.

Installation

R package

The detectgxt R package can be installed from GitHub using BiocManager.

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")

if (!requireNamespace("remotes", quietly = TRUE))
    BiocManager::install("remotes")

BiocManager::install("yharigaya/detectgxt")

Container image

A container image with detectgxt and its runtime dependencies is published to GitHub Container Registry.

With Docker:

docker pull ghcr.io/yharigaya/detectgxt:latest
docker run --rm ghcr.io/yharigaya/detectgxt:latest Rscript -e 'library(detectgxt)'

On HPC systems that use Apptainer, pull the same image directly:

apptainer pull detectgxt.sif docker://ghcr.io/yharigaya/detectgxt:latest
apptainer exec detectgxt.sif Rscript -e 'library(detectgxt)'