Phylo GWAS
Phylogenetic genome-wide association study
Command identity
- Canonical command:
phylo_gwas- Handler:
phylo_gwas- Aliases:
pgwas
- Standalone executables:
pk_phylo_gwas, pk_pgwas
- Categories:
Phylogenetic comparative methods
Runtime interface
Synopsis
phykit phylo_gwas --alignment <alignment> --phenotype <phenotype> --output <output> [--tree <tree>] [--partition <partition>] [--alpha <alpha>] [--exclude-monophyletic] [--dot-size <dot_size>] [--csv <csv>] [--fig-width <fig_width>] [--fig-height <fig_height>] [--dpi <dpi>] [--no-title] [--title <title>] [--legend-position <legend_position>] [--ylabel-fontsize <ylabel_fontsize>] [--xlabel-fontsize <xlabel_fontsize>] [--title-fontsize <title_fontsize>] [--axis-fontsize <axis_fontsize>] [--colors <colors>] [--ladderize] [--cladogram] [--circular] [--color-file <color_file>] [--json]
Arguments
This table is generated from the live command parser. It is the authoritative source for accepted spellings, required arguments, types, defaults, and choices.
Argument |
Required |
Type |
Default |
Choices |
|---|---|---|---|---|
|
true |
str |
required |
any |
|
true |
str |
required |
any |
|
true |
str |
required |
any |
|
false |
str |
none |
any |
|
false |
str |
none |
any |
|
false |
float |
0.05 |
any |
|
false |
boolean |
false |
any |
|
false |
float |
1.0 |
any |
|
false |
str |
none |
any |
|
false |
float |
none |
any |
|
false |
float |
none |
any |
|
false |
int |
300 |
any |
|
false |
boolean |
false |
any |
|
false |
str |
none |
any |
|
false |
str |
none |
any |
|
false |
float |
none |
any |
|
false |
float |
none |
any |
|
false |
float |
none |
any |
|
false |
float |
none |
any |
|
false |
str |
none |
any |
|
false |
boolean |
false |
any |
|
false |
boolean |
false |
any |
|
false |
boolean |
false |
any |
|
false |
str |
none |
any |
|
false |
boolean |
false |
any |
Output and errors
--json provides the command's structured JSON representation. Output-file options: --output. Invalid command syntax exits with status 2. Input
validation and scientific limitations are described in the guidance below.
Guidance, interpretation, and examples
Phylogenetic genome-wide association study following the Pease et al. (2016) approach. Performs per-site association tests between alignment columns and a phenotype, applies Benjamini-Hochberg FDR correction, optionally classifies significant associations as monophyletic or polyphyletic using a phylogenetic tree, and produces a Manhattan plot.
Categorical phenotypes use Fisher's exact test (2 groups) or chi-squared test (>2 groups). Continuous phenotypes use point-biserial correlation. Only biallelic sites are tested; invariant and multiallelic sites are skipped. Sites with gaps or ambiguous characters are also skipped.
phykit phylo_gwas -a <alignment> -d <phenotype> -o <output>
[-t <tree>] [-p <partition>] [--alpha 0.05]
[--exclude-monophyletic] [--csv <file>] [--json]
Options:
-a/--alignment: FASTA alignment file
-d/--phenotype: two-column TSV file (taxon<tab>phenotype)
-o/--output: output Manhattan plot path
-t/--tree: optional Newick tree for monophyletic/polyphyletic classification
-p/--partition: optional RAxML-style partition file for gene annotations
--alpha: FDR significance threshold (default: 0.05)
--exclude-monophyletic: exclude monophyletic associations from results
--dot-size: scale factor for dot size in the Manhattan plot (default: 1.0; use 2.0 for double, 0.5 for half)
--csv: output per-site results as CSV to the specified file
--fig-width: figure width in inches (auto-scaled if omitted)
--fig-height: figure height in inches (auto-scaled if omitted)
--dpi: resolution in DPI (default: 300)
--no-title: hide the plot title
--title: custom title text
--legend-position: legend location (e.g., "upper right", "none")
--colors: comma-separated colors (hex or named)
--json: optional argument to print results as JSON