Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
3ae8ecc
fix(carrier): keep the low-confidence mark and the zygosity on every …
GeiserX Nov 20, 2026
f1d31c8
docs(carrier): say what each carrier row carries and when a row is no…
GeiserX Nov 20, 2026
799d247
fix(carrier): keep showing rows with no unchanged copy in both report…
GeiserX Nov 21, 2026
e2737d8
test(personal-data): allow the synthetic LPA genotypes of the all rep…
GeiserX Nov 21, 2026
f631b3c
test(parity): fix the time of the report corpus, so its goldens hold …
GeiserX Nov 21, 2026
6785e78
Merge remote-tracking branch 'origin/main' into pgp/i411-carrier-conf…
GeiserX Nov 21, 2026
6b93bf4
Merge the T11 batch tip into #559
GeiserX Nov 21, 2026
6059508
fix(sf): cap a secondary-findings pair that rests on a low-confidence…
GeiserX Nov 21, 2026
fa5f6e6
fix(live): flag the carrier headline of og live serve for hom or hemi…
GeiserX Nov 21, 2026
4df2db0
test(parity): whole-report goldens for the carrier cases
GeiserX Nov 21, 2026
12341ab
fix(carrier): give the carrier list and the SF card one answer beside…
GeiserX Nov 21, 2026
87f194a
fix(carrier): let only confident calls give the phase of a two-copy pair
GeiserX Nov 21, 2026
6ec4394
docs(carrier): say where the carrier list and the SF card agree
GeiserX Nov 21, 2026
ff501c3
fix(carrier): let no weak call make an allele firm or give it a phase
GeiserX Nov 21, 2026
ae476db
docs(carrier): name the weak HIGH-impact call where the two lists differ
GeiserX Nov 21, 2026
4299bb3
docs(carrier): name the real split between the two lists, not allele …
GeiserX Nov 21, 2026
366365f
fix(carrier): let a phased combined allele lend no phase to its weak …
GeiserX Nov 21, 2026
8c2adf8
Merge remote-tracking branch 'origin/main' into pgp/i411-carrier-conf…
GeiserX Nov 21, 2026
a1b27b3
test(parity): regenerate 38 report-render goldens on main's SV suppor…
GeiserX Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Each release's notes. From 1.0.0 on, a major or minor release has hand-written n

## Unreleased

- The carrier list in `summary.json` keeps each hit's call quality and zygosity. It judged every hit at GQ 30 and DP 10, whatever floor the hits file states (`##PGP_CALL_FLOOR`), and it dropped the low-confidence mark the ClinVar section shows for the same hit. Each row of `sections.carrier.data` now has `zygosity` (`het`, `hom`, `hemizygous` or `unknown`), `gq`, `dp` and `low_confidence`, judged against the file's own floor. A homozygous or hemizygous P/LP row has no unchanged copy, so it is no carrier finding: it moves from `carriers` to a new list, `hom_or_hemizygous`. Both reports still print it in the carrier list, on a line of its own that says it is not the pattern of a carrier, and the list's first line counts it apart (`2 with no unchanged copy`); the live page keeps its finding for it, and its carrier headline (the Python server's and `og live serve`'s) asks for attention. Two different heterozygous hits in one recessive gene are now counted as copies, with the phase rule of the secondary-findings card: each row gets `pair` (`two hits` when read-backed phase puts them on different copies, `possible two hits` when the phase is unknown; none when they sit on one copy) and `phase`, which says why. The carrier list and the secondary-findings card now count a gene's hits the same way, twice: with every call, and with the confident calls alone. A pair that the confident calls prove stays `two hits` on the list and `biallelic` on the card, even when another hit of the gene is a low-confidence call; so does a confident homozygous call or a confident deletion pair. When the confident hits count two copies of unknown phase, the pair is `possible two hits` on the list and `possibly biallelic` on the card, even when a low-confidence call would prove it. Any other pair that needs a low-confidence call is `possible two hits (low-confidence call)` on the list and `possibly biallelic (low-confidence call)` on the card. On the card a low-confidence call is one below step 06's call floor or a weak HIGH-impact call (`weak_call`). A deletion plus a low-confidence call reads `possibly biallelic (low-confidence call)` under `two_hits` and on the card's two-hit line. A combined allele counts as confident when any call of it is, and it then counts with the copies, GT and phase set of that confident call, beside a deletion too. The list's `pair` counts heterozygous hits only. For a recessive gene that the card counts by two copies (MUTYH, ATP7B, CYP27A1, GAA, RPE65, CASQ2, TRDN, and BTD apart from its hypomorph), the two give the gene the same answer, apart from one rare deletion shape where the card is more cautious and from a call the card judges by its HIGH-impact record (a lower call floor in the clinical VCF, or a HIGH-impact call of a part of a combined allele): on the list, that answer is the best of `pair`, the gene's `two_hits` verdict and its `hom_or_hemizygous` rows. Output change: rows move from `carriers` to `hom_or_hemizygous`, and fields are added; no field is renamed or removed. `tests/schema/summary.schema.json` now describes the carrier section. Part of #411 (clin-15, clin-19).
- A step you selected that produced nothing now says so. A report-only Nextflow step (TelomereHunter, VNtyper, the CHIP genes and the others in `nextflow.config`) is dropped when it fails, after one retry when the exit was a memory kill. Its section had no file, so the report listed it as not run, the same as a step nobody asked for. `HTML_REPORT` now records the run's `--tools` list, and `og summary collect` lists selected sections with no file under Steps Not Run as "(selected, no result)", with a note naming the tool and the step. Y haplogroup, Y tree placement, and Y-STR markers get this label only for samples declared male. `summary.json` gets a new top-level list, `selected_no_result`, with those section keys. It is present only when the run recorded its tool list, so a bash run's summary is unchanged. The section's state stays `missing`.
- One section that cannot be written no longer stops the whole report. Step 24, the Nextflow `HTML_REPORT` module and `scripts/generate-report.sh` ran `bin/render_report.py`, and a section whose data it could not read stopped it with a Python error: the run got no text report and no HTML report at all. The three now run `og report render` (`rust/crates/og-render`), so no Python runs for the reports. A section that cannot be written says so in its own place, `[could not be read: ...]` in the text report and an Unreadable card in the HTML report, and every other section is still written; `og report render` prints one `WARNING` line on stderr that counts and names those parts, and still exits 0. A panic inside a section writer counts the same way, so the release build now unwinds on a panic (`rust/Cargo.toml`); a panic anywhere else still aborts og at once, through the panic hook og installs first. A search index or charts file that cannot be made is written empty and named in the same `WARNING` line. On the 164 report-render parity summaries (154 before, and 10 new ones that reach each state of the mosaic sex-loss, raw-data export and structural-variant sections) both reports are byte for byte the Python's, whole, with two changes on purpose: a gene the ACMG card names is listed once in the closing gene list, not twice (the `acmg_sf` section repeats the card the clinical section holds), and a run whose BAM has no unplaced unmapped reads says the viral screen was not assessed instead of "no read". The checks of `tests/test_render_report.py` are cargo tests (`rust/og/tests/report_checks.rs`, and `rust/crates/og-render/tests/section_failure.rs` for a section that panics), and the Python file is gone. `bin/render_report.py`, `bin/report_charts.py` and `bin/results_index.py` stay only for the Python live site.
- Nextflow's `docker` profile now runs each task as you, as the step scripts do, not as root. Before, every task ran with `--user root:root`, so a file a task wrote outside its work directory, beside an input under `GENOME_DIR`, stayed root's (Nextflow's `docker.fixOwnership` gives back only the work directory). Tasks now run with `-u` and your UID and GID, with `HOME=/tmp`. `CPSR` and `CNVPYTOR` still run as root, with `HOME=/root` as before: PCGR has not been shown to run unprivileged, which is why step 17 runs it as root too, and the CNVpytor module copies its resources into its image. A file those two write outside their work directory stays root's. The ids are written as bash's `${UID}:${GROUPS}`, which have no space. The PRS module, which hands the run's options on to pgsc_calc, now also drops a user flag with its whole value: a config's common `-u $(id -u):$(id -g)` gave pgsc_calc a stray `-g)` before. pgsc_calc's containers now also get `HOME=/tmp`. A sample folder written by an older run can hold root-owned files that a task running as you cannot overwrite: [troubleshooting](docs/troubleshooting.md#permission-denied-writing-to-mounted-volumes) gives the `chown` that takes it back. `tests/test_prs_runopts.sh` checks the profile's user and the PRS module's user flag drop, and the e2e case `prs-runopts-and-trace-1` checks the docker run line of every task of a stub run.
Expand Down
7 changes: 4 additions & 3 deletions bin/live_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def a_carrier(S, s):
if d.get("unavailable"):
return {"lines": rr.carrier_lines(d), "attention": True}
rows = [[c.get("gene"), c.get("variant"), c.get("genotype"), c.get("significance"), c.get("stars"),
c.get("inheritance"), c.get("condition")] for c in d.get("carriers") or []]
c.get("inheritance"), c.get("condition")] for c in (d.get("carriers") or []) + (d.get("hom_or_hemizygous") or [])]
two = (d.get("two_hits") or {}).get("genes") or []
return {"facts": [["Genes on the carrier list", d.get("genes_on_list")], ["Carrier findings", len(rows)],
["Genes with two hits", ", ".join(g if isinstance(g, str) else g.get("gene", ".") for g in two)
Expand Down Expand Up @@ -833,7 +833,7 @@ def gene(x):
return g if isinstance(g, str) else None
sf_genes = {gene(x) for x in _items(sf.get("clinvar_hits")) if isinstance(x, dict)}
car = _data(S, "carrier")
carrier_genes = {gene(c) for c in _items(car.get("carriers")) if isinstance(c, dict)}
carrier_genes = {gene(c) for c in _items(car.get("carriers")) + _items(car.get("hom_or_hemizygous")) if isinstance(c, dict)}
th = car.get("two_hits") if isinstance(car.get("two_hits"), dict) else {}
two_hit = {gene(g) for g in _items(th.get("genes"))} - {None}
# 1. ACMG secondary findings: the gene's own reporting rule already said "report". The report's own
Expand Down Expand Up @@ -943,7 +943,8 @@ def gene(x):
"A ranking to bring to a clinical geneticist, not a diagnosis.", gene=x.get("gene"),
evidence=[["Score", x.get("exomiser_score")], ["Inheritance", x.get("moi")]]))
# 7. Carriers: one changed copy in a gene of the carrier list, and the couple screen.
for c in _items(car.get("carriers")):
# A row with no unchanged copy (hom_or_hemizygous) takes the branch below that says it is not a carrier.
for c in _items(car.get("carriers")) + _items(car.get("hom_or_hemizygous")):
with _Row(out, "carrier-list", "act"):
if c.get("gene") in two_hit:
continue
Expand Down
2 changes: 1 addition & 1 deletion bin/owngenome_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def _h_clinvar(d, summary):

def _h_carrier(d, summary):
lines = _rr().carrier_lines(d)
return lines[0], bool(d.get("carriers"))
return lines[0], bool(d.get("carriers") or d.get("hom_or_hemizygous"))


def _h_couple(d, summary):
Expand Down
7 changes: 7 additions & 0 deletions bin/render_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2025,13 +2025,20 @@ def carrier_lines(c):
"""The sample's own carrier list (no partner), the same in both reports."""
if c.get("unavailable"):
return [f"Carrier list: not made, {c['unavailable']}"]
both = c.get("hom_or_hemizygous") or [] # no unchanged copy: listed apart, not counted as carriers
lines = [f"Carrier list ({c['genes_on_list']} genes): {len(c['carriers'])} finding(s)"
+ (f", {len(both)} with no unchanged copy" if both else "")
+ (f", {len(c['set_aside'])} set aside" if c["set_aside"] else "")]
def hemi(x):
return f" ({x['hemizygous']})" if x.get("hemizygous") else ""
for x in c["carriers"]:
lines.append(f"{x['gene']} ({x['condition']}; {x['inheritance']}): {x['variant']} {x['genotype']}{hemi(x)}, "
f"ClinVar {x['significance']}")
for x in both:
lines.append(f"{x['gene']} ({x['condition']}; {x['inheritance']}): {x['variant']} {x['genotype']}{hemi(x)}, "
f"ClinVar {x['significance']}: "
+ ("two changed copies" if x["genotype"] == "hom" else "the only copy changed")
+ ", not the pattern of a carrier")
for x in c["set_aside"]:
lines.append(f"Set aside: {x['gene']} {x['variant']} {x['genotype']}{hemi(x)}: {x['name']} is a {x['kind']} "
"allele, not a carrier finding on its own")
Expand Down
Loading