Compare genomes
compare_genomesCompare by-trait PRS reports across two or more genomes, grouping results by trait to reveal percentile differences between individuals in one call.
Instructions
Compare saved by-trait PRS reports across two or more genomes.
result_paths — the result_paths list from compute_prs_by_trait
(or any saved report JSONs). At least two paths are required. Files are
grouped by trait, so a family comparison across several traits is one call.
Rankings use just-prs summarize_trait_rows: the median in-scope
percentile is the headline (not a single "best" model). High percentile is
not automatically good or bad — interpret direction from the trait.
When every path is the same trait, include_prompt=True (default) attaches
the same multi-sample LLM prompt as prs prompt / the UI Ask-AI buttons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ancestry | No | EUR | |
| assistant | No | other | |
| model_scope | No | usable | |
| result_paths | Yes | ||
| genome_labels | No | ||
| include_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | No | just-prs multi-sample LLM prompt (same text as ``prs prompt`` / the UI Ask-AI buttons). Present when include_prompt=True and every path is the same trait. Multi-trait comparisons leave this null — call build_prs_prompt per trait. | |
| traits | Yes | Per-trait comparison details. | |
| summary | Yes | Human-readable summary of the comparison. | |
| n_traits | Yes | Number of traits compared. | |
| model_scope | No | just-prs trait-summary scope used for medians (usable / all / high_quality / high_moderate). | usable |
| genome_labels | Yes | Labels of the compared genomes, in input order. | |
| most_divergent_traits | Yes | Trait labels sorted by percentile_spread descending — traits where the genomes differ most, for the LLM to highlight. |