Python API reference
PostHoc’s CLI commands are thin wrappers around a regular importable Python
package. Every function and class documented here is available under the
posthoc namespace and can be used directly in scripts or notebooks —
for example, to run a custom analysis loop around posthoc.attribution
.pal.compute_pal() without going through the command-line interface.
Package overview
Module |
Contents |
|---|---|
|
Genotype ( |
|
MAF, missingness, and LD-pruning filters. |
|
The MLP model, its training loop, and shared training utilities. |
|
Integrated Gradients attribution, PAL/AMAS aggregation, and null-model significance testing. |
|
The additive/dominant/recessive/interaction phenotype simulation model. |
|
The Click command implementations documented in Command-line reference — thin orchestration over the modules above. |