PostHoc documentation

PostHoc is a Python toolkit for post-hoc variant attribution on GWAS-scale genotype data. It trains neural models on PLINK2 genotype matrices and produces PLINK-like output tables that can be compared or merged with standard GWAS pipelines.

PostHoc builds upon the neural-network attribution framework introduced by Yelmen et al. for identifying genome-wide association signals from artificial neural networks. In particular, PostHoc implements and extends the PAL (Post-hoc Attribution Loci) analysis described in that work within a modular, command-line framework designed for reproducible analysis of genotype data. See Concepts and methodology for details and citation.

The project currently includes:

  • phenotype simulation on real genotype matrices

  • baseline sparse logistic regression benchmarking

  • Integrated Gradients SNP attribution

  • PAL (Potentially Associated Loci) discovery with null-model significance testing

  • PLINK2-compatible genotype input and GWAS-style outputs

  • repeated-model analysis for robust locus discovery

Get started with Installation and Quickstart.

Project

License

PostHoc is distributed under the Apache License — see LICENSE in the repository.