Skip to content

fix(viewer): serve the local genome viewer from og and refuse a reversed locus - #539

Open
geiresx wants to merge 62 commits into
GeiserX:mainfrom
geiresx:pgp/port-viewer
Open

geiresx wants to merge 62 commits into
GeiserX:mainfrom
geiresx:pgp/port-viewer

Conversation

@geiresx

@geiresx geiresx commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The local genome viewer needed python3 on the host: scripts/owngenome-view.sh ran assets/viewer/serve.py. It also accepted two things it should refuse:

  • A reversed locus. owngenome-view.sh S chr1:8-2 started the viewer at a view igv.js cannot show.
  • A request a proxy forwarded. The viewer has no password. Behind a reverse proxy, anyone who reaches the proxy could read the sample. serve.py answered X-Forwarded-For with 200.

Its default SV track was step 22's consensus, which keeps only the calls two callers agree on. The reads are where a single-caller call gets checked, so Manta's calls should come first.

Fix

  • og view serve (rust/crates/og-live/src/viewer.rs) replaces the server. It builds the same igv.js config, checks the locus, and serves the page, igv.js, the config and byte ranges on 127.0.0.1 only, with the same policy and headers.
  • A locus whose end comes before its start stops the start with exit 2 and the reason.
  • A request with Forwarded, X-Forwarded-For, X-Forwarded-Host, X-Forwarded-Proto or X-Real-IP gets 403. There is no token: an ssh port forward adds none of these headers, so the documented remote setup and the report's fixed 127.0.0.1:8765 links keep working.
  • owngenome-view.sh runs og view serve through bin/og (or OG) and drops its python3 check. Its default SV track is Manta's diploid SVs, else step 22's consensus.
  • og view serve logs each request on stderr from the thread that owns stderr. The handler threads send their lines over a channel. og holds stderr's lock while the verb runs, so a handler that wrote to stderr itself would block before it closed its connection, and the viewer would stop answering once it ran out of file descriptors.
  • The live site's viewer also opens Manta's diploid SVs first. It picks its tracks with serve.sample_files, and one existing line there now lists Manta before the consensus.
  • docs/viewer.md says the viewer runs on og, that every account on the machine can reach 127.0.0.1, and documents both refusals.

Output change: both viewers' default SV track is now Manta's VCF when both exist. No option of the script, file or output name changes. og view serve takes the flags serve.py took, plus --assets (the page's folder).

Decisions

  • assets/viewer/serve.py and tests/test_live_viewer.py are kept, not deleted. The live site's viewer plugin bin/owngenome_live_viewer.py imports serve.py, and tests/test_live_viewer.py imports tests/test_viewer.py. Deleting them would break the live site, or need new Python in a file outside this package. So serve.py keeps only what the plugin imports (its server is gone), and tests/test_viewer.py keeps its config and report-link checks plus the helpers test_live_viewer.py uses. Both changes are deletions plus their docstrings. No Python line was added. They should go with the live server's move to og (port-live-server / port-live-switch).
  • The live site's viewer follows through serve.py. The swap is one existing line of serve.sample_files with its two arguments reordered. No Python line was added.
  • No og view --config-only. Its only caller would be the Python plugin, which this package does not edit.
  • Browser check in Rust, not tests/browser/viewer.py. The owner's rule is no owned Python, browser checks included. The page check lives in rust/crates/og-live/tests/port_viewer.rs and uses og-browser as a dev-dependency of og-live.
  • Files outside the package list, each needed to keep main true: rust/crates/og-live/Cargo.toml and rust/Cargo.lock (the dev-dependencies and indexmap), rust/crates/og-live/tests/port_viewer.rs (the cargo tests), tests/test_owngenome_view.sh (the launcher check that tests/test_viewer.py held), tests/browser/README.md (it listed test_viewer.py as a browser test), and two comment lines of assets/viewer/viewer.js that named serve.py and test_viewer.py.

How it was checked

Beads: plat-11, D12, D1.

…es of its records

Two variants phased on one copy, a combined allele counted with its own
parts, or a record with no alt copy called could complete the two hits a
recessive ACMG SF gene needs. The tier now counts haplotypes: a phased
heterozygote needs a "|" GT, a non-empty PS and every copy called; a half
call or a "|" GT without PS is phase unknown. Each finding of a two-hit
gene gets pair (biallelic or possibly biallelic) and phase fields, and a
ClinVar finding that is a combined allele keeps its combined_allele note.

Bead: clin-01
Bead: clin-02
Bead: clin-03
Bead: clin-04
Bead: clin-06
Bead: clin-29
…bly biallelic

Nothing says whether the deletion is real. A full loss of function called
homozygous hits both copies either way, so it stays biallelic with a
reason that says so; a hypomorph is biallelic only with a real deletion.

Bead: clin-32
… record the goldens

The summary-collect goldens change only by the new pair, phase and
combined_allele fields and the two-hit reason wording.

Bead: clin-01
Bead: D14
… phase

A present genotype was used whatever its quality. The reader now marks a
call with GQ under 20 or DP (else MIN_DP) under 8 as weak, keeping its
genotype, and keeps the haplotype of the marker's ALT and the phase set
of a phased call, for the rules to use.

Bead: trait-31
Bead: D10
…ssing chr9 as type O

A weak call gives its system confidence low and is named in the note.
Without a BAM, a system with no VCF record at any of its sites reads not
assessed instead of the reference phenotype at confidence medium. Duffy
places a GATA box phased with one Fyb on the chromosome the VCF gives. An
ABO A allele reads low, since no variant shows it. The ABO, RhD and
null-row notes say what the DNA cannot check. The bloodtype parity
goldens record these changes on purpose.

Bead: trait-31
Bead: trait-28
Bead: trait-32
Bead: trait-33
Bead: trait-35
Bead: trait-36
Bead: trait-37
Bead: D10
… and fix the position count

The step page, the script and module headers, the VCF-only page and the
e2e case now match the new rules. The crate doc said the VCF is read at
318 positions; the marker table has 271.

Bead: trait-39
Bead: trait-33
…s a reference call

A reference block that starts before a marker and covers it through
INFO/END was ignored, so without a BAM a gVCF could read a system as not
assessed although it covers it. Such a block is now a reference call at
the marker, with its GQ and MIN_DP. ABO's c.796C>A call now counts in
the ABO confidence and notes, and the VCF-only page says the blood
groups are opt-in.

Bead: trait-28
Bead: D10
Red first: summary.json has no ACMG card when clinical/ is missing, and
the agreement test compares every group b parity folder with and without
its clinical VCF. summary-clinical.sh gets NO_ORACLE=1 so the test can
write the folders without the oracle's helper modules.

Bead: D11
Bead: D14
… step 06

sections.acmg_sf follows step 06: ok when the ClinVar hits VCF is there,
not run or failed with step 06's reason otherwise. The verdicts come from
the same acmg::acmg_sf the clinical section calls. Without step 23's
clinical VCF the card says high_impact_checked false and high_impact_note
names why and what it can miss; an unreadable clinical VCF costs only the
HIGH-impact source. The clinical section keeps its nested card for the
readers that still use it. The full-summary parity goldens gain the
section.

Bead: D11
Bead: D14
… in e2e

acmg-sf-rules-1-reports gains a cell without clinical/: the card is
there with the 84 rules, says the HIGH-impact source was not screened and
keeps every ClinVar row of the full run's card. nf-wiring-1-report-tables
compares the card of the bash and the Nextflow summaries.

Bead: D11
Bead: D14
…ssed systems and new RhD notes

Without a BAM, the platelet case's control VCF had no record at the
HPA-1, HNA-3 and HNA-4 sites, which now read not assessed; it now plants
0/0 there. The copy-number case compared step 41's whole RhD row with
the tree before the engine, notes included; it now compares the
phenotype, genotype and confidence, the engine's result.

Bead: trait-28
Bead: trait-35
A homozygous hypomorphic allele inside a deletion is one copy, so the two-hit
verdict for RBM8A is now 'possibly biallelic'. The og-render clinical test
still asserted the old 'biallelic' and was the one red test of Guard rust on
this branch.

Bead: clin-32
…ll-floor

# Conflicts:
#	CHANGELOG.md
#	tests/e2e/cn-engine-1-parity.sh
Step 10 warned and ran TelomereHunter without -b when the band file was
missing, and the Nextflow module did so whenever --cytoband was unset
(the default), so reads were sorted by hg19 band ends on GRCh38
positions. The script now installs assets/reference/cytoBand.hg38.txt
first; the workflow passes that copy when --cytoband is unset.

Bead: trait-46
Bead: trait-47
TelomereHunter 1.1.0 is Python 2.7 code. TelomereHunter2 1.0.12 gives
the same tel_content on the planted test BAM (5347.255643 with 1,100
reads, 5337.585253 with 1,098, both versions). Its image has no
samtools, so the image test builds telo.bam with the samtools image
(new input telobam). It needs more than 1,024 open files on a BAM with
many contigs; the script and module raise the limit.

Bead: trait-49
The step script and module called the value a biological age
baseline. Reworded, the step doc covers TelomereHunter2 and the bands,
and tests/test_telomere_wording.sh fails when a file that describes
step 10 uses the phrase (with a planted control).

Bead: trait-48
Bead: trait-49
…off an unread ABO row

Also correct the gVCF block wording (DP, else MIN_DP) and the platelet
control label.
…dings card

When step 23 is not ok in this run and its clinical VCF predates the run,
sections.acmg_sf still reads that VCF. The card now says so in
high_impact_note, with the VCF's date and step 23's result, as the clinical
section goes stale.
# Conflicts:
#	CHANGELOG.md
#	tests/parity/golden/summary-collect/all-history/all-history.json
#	tests/parity/golden/summary-collect/all/all.json
…d agreement test

GeiserX#531 (i411-sf-haplotype-count) gives each reported row of a recessive gene
the gene's own verdict, `pair` and `phase`. GeiserX#533 (screen-acmg-card-section)
checks that every ClinVar row of the card without VEP is in the card with
VEP, unchanged. Together, cb-full fails: with step 23's clinical VCF a
HIGH-impact MUTYH row joins, and the gene's phase sentence names that pair
instead of the deletion. The row's own fields are the same. Rule (a) now
compares the row without `pair` and `phase` only when a HIGH-impact row of
its gene joined it; any other change still fails.
…st show in the annotation

The m.315 C>CC call is the m.310 T>TC insertion ClinVar and gnomAD list,
and m.308 CC>C is m.302 AC>A; today neither meets its record. A run whose
NuMT filter had no autosomal depth must say so in the table. Both tests
fail on main.

Bead: lin-35
Bead: lin-32
Every non-browser check of tests/test_report_charts.py now runs on og
report charts in rust/crates/og-render/tests/charts.rs, each with its red
control, plus frozen hashes of the oracle's charts JSON on the fixture and
five changed copies. The Python file keeps only the live page's browser
check, which needs the Python live server.

Bead: D1
… script 04a

EVERYTHING=true reads assets/everything.tsv: every tool row goes into TOOLS
(html_report aside: run-all.sh writes the report itself), every switch row
is set to its value, and TOOLS or a switch set to another value stops the run
with exit 2. A step skipped because its data is not installed, or because a
panel is set to none, stops the run with exit 2 before Nextflow and names the
setup command. Skips that come from the sample stay skips: no BAM, no gVCF,
a female sample for steps 37 and 45, a BAM that is not PacBio HiFi for 35b.

Step 37 on a female sample is now listed as skipped, as step 45 was; the
pipeline skipped it already. Step 35b runs og paraphase check-bam on the BAM
first, so a BAM that is not PL:PACBIO, or a FASTQ row, is a skip instead of a
failed step.

TIDDIT=true runs 04a-tiddit.sh after the pipeline, so every optional step is
reachable from one command. EVERYTHING and TIDDIT join SWITCHES, the replay
list of og recheck, the output contract, and step 04a joins assets/steps.tsv
and RUN_ALL_STEPS, which the tests keep equal to what run-all.sh records.

Bead: D8
assets/everything.tsv lists every optional item: each --tools name of
main.nf, each run-all.sh switch, each setup.sh flag, each false-by-default or
opt-in parameter of nextflow.config and each optional image of versions.env,
as tool, switch, setup, input, image or excluded with the reason.
og dev everything-check fails when one of them has no row, when a row names
an item that is gone, when conf/everything.config sets other tools or
parameters than the rows, or when conf/test_all.config misses a tool. Guard
runs it; its planted cases are og-dev unit tests.

-profile everything (conf/everything.config) gives the Nextflow path the same
tools and switches as EVERYTHING=true.

Bead: D8
Every data folder stubbed: every tool row runs and every script step runs
after the pipeline. Without Yleaf's tables it exits 2 before Nextflow and
names setup.sh --yleaf-data. A female sample still runs with the Y steps
skipped; a BAM that is not PacBio HiFi skips Paraphase. TOOLS, KIR=false or
ARCHAIC_DIR=none with EVERYTHING=true are refused.

Bead: D8
og view serve does what assets/viewer/serve.py did: it builds the igv.js
config from the sample's files, checks the locus against the reference,
and serves the page, igv.js, the config and byte ranges of the files on
127.0.0.1 only, with the viewer's Content-Security-Policy.

Two refusals are new. A locus whose end comes before its start is refused
at start (serve.py accepted chr1:8-2). A request with a Forwarded,
X-Forwarded-* or X-Real-IP header gets 403: the viewer has no password,
so a reverse proxy in front of it would hand the sample to anyone who
reaches the proxy. An ssh port forward adds no such header.

sample_files picks Manta's diploid SVs before step 22's consensus, for
the live server to reuse. The cargo tests carry the server checks of
tests/test_viewer.py and the page check in headless Chrome.

Bead: plat-11
Bead: D12
Bead: D1
scripts/owngenome-view.sh now runs og view serve (bin/og, or OG) and no
longer needs python3 on the host. Its default SV track is Manta's diploid
SVs, else step 22's consensus: the consensus keeps only calls two callers
agree on, and the reads are where a single-caller call gets checked.

tests/test_owngenome_view.sh checks the launcher with a python3 that fails
first on PATH: the pinned igv.js and its sha256, the printed address,
Manta's SV VCF first, 403 for a foreign Host and a forwarded request, and
exit 2 for a reversed locus. Against the old launcher it fails (python3
was called).

Bead: plat-11
Bead: D12
Bead: D1
…nd needs no python3

docs/viewer.md now names og view serve, drops the python3 requirement,
says every account on the machine can reach 127.0.0.1, documents the
reversed-locus and forwarded-request refusals and Manta's SVs first, and
lists the tests that check it. docs/live-site.md says the live viewer
still takes step 22's consensus first until its server moves to og.

assets/viewer/serve.py keeps only what bin/owngenome_live_viewer.py
imports (sample_files, build_config, send_file, LIVE_CSP and what they
call); its server is gone. tests/test_viewer.py keeps its config and
report-link checks and the helpers tests/test_live_viewer.py imports; the
server, launcher and browser checks moved to Rust and shell. Both are
deletions plus their docstrings: no Python line was added.

Bead: plat-11
Bead: D12
Bead: D1
@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 121 files, which is 21 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

CodeRabbit couldn't verify your organization's usage billing state, so no usage-priced review was started. Retry after the billing service recovers.

Check out review usage here.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4ee60e6 and 0d88e39.

Files ignored due to path filters: 37

  • assets/acmg_sf.tsv is excluded by !**/*.tsv
  • assets/everything.tsv is excluded by !**/*.tsv
  • assets/output_contract.tsv is excluded by !**/*.tsv
  • assets/steps.tsv is excluded by !**/*.tsv
  • rust/Cargo.lock is excluded by !**/*.lock
  • tests/parity/cases.tsv is excluded by !**/*.tsv
  • tests/parity/gen/summary-clinical.sh is excluded by !**/gen/**
  • tests/parity/golden/bloodtype/abo-ab-duffy-gata-kell-null/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/abo-ab-no-bam/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/abo-bad-para-bombay-lan/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/abo-odd-fyx-kidd-two-nulls/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/bam-without-chr1-chr9/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/bgzip-no-index-abo/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/bombay-null-null/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/gvcf-hna-disagree/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/hna1c/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-abo/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-blocks/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-bombay/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-gvcf/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-nochr/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/indexed-vcf-quirks/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/low-site-depth/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/plain-nochr/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/pseudogene-one-copy/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/ref-blocks-second-record/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/ref-no-bam/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/ref-reads/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-boundary/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-broken-flank/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-hybrid/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-low-flank/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-none/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-one/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/rhd-three/t.tsv is excluded by !**/*.tsv
  • tests/parity/golden/bloodtype/vcf-quirks/t.tsv is excluded by !**/*.tsv
  • tests/smoke/commands.tsv is excluded by !**/*.tsv
Files selected for processing: 121

  • .github/workflows/guard.yml
  • CHANGELOG.md
  • assets/viewer/serve.py
  • assets/viewer/viewer.js
  • bin/collect_summary.py
  • conf/containers.config
  • conf/everything.config
  • docs/00-reference-setup.md
  • docs/06-clinvar-screen.md
  • docs/10-telomere-analysis.md
  • docs/20-mtoolbox.md
  • docs/21-cyrius.md
  • docs/23-clinical-filter.md
  • docs/24-html-report.md
  • docs/32-pypgx.md
  • docs/36-pgx-consensus.md
  • docs/41-bloodtype.md
  • docs/getting-started.md
  • docs/live-site.md
  • docs/nextflow.md
  • docs/parameters.md
  • docs/pipeline-overview.md
  • docs/results/secondary-findings.md
  • docs/results/traits-and-somatic.md
  • docs/rust.md
  • docs/vcf-first.md
  • docs/versions.md
  • docs/viewer.md
  • modules/local/bloodtype/main.nf
  • modules/local/mito_variants/main.nf
  • modules/local/telomere_hunter/main.nf
  • nextflow.config
  • nextflow_schema.json
  • rust/README.md
  • rust/crates/og-bam/src/cyp2d6.rs
  • rust/crates/og-bam/tests/i411_cyp2d6_gate.rs
  • rust/crates/og-bloodtype/src/genotypes.rs
  • rust/crates/og-bloodtype/src/lib.rs
  • rust/crates/og-bloodtype/src/rules.rs
  • rust/crates/og-bloodtype/tests/port_tests_cn_traits.rs
  • rust/crates/og-bloodtype/tests/report.rs
  • rust/crates/og-dev/src/everything.rs
  • rust/crates/og-live/Cargo.toml
  • rust/crates/og-live/src/viewer.rs
  • rust/crates/og-live/tests/port_viewer.rs
  • rust/crates/og-recheck/src/rerun.rs
  • rust/crates/og-render/src/chapters.rs
  • rust/crates/og-render/src/charts/build.rs
  • rust/crates/og-render/src/charts/mod.rs
  • rust/crates/og-render/src/charts/svg.rs
  • rust/crates/og-render/src/index.rs
  • rust/crates/og-render/tests/charts.rs
  • rust/crates/og-render/tests/clinical.rs
  • rust/crates/og-render/tests/port_report_core.rs
  • rust/crates/og-steps/src/pgx_rules.rs
  • rust/crates/og-summary/src/collect/acmg.rs
  • rust/crates/og-summary/src/collect/acmg_card.rs
  • rust/crates/og-summary/src/collect/carrier.rs
  • rust/crates/og-summary/src/collect/group_b.rs
  • rust/crates/og-summary/src/collect/model.rs
  • rust/crates/og-summary/src/collect/post.rs
  • rust/crates/og-summary/src/collect/sections.rs
  • rust/crates/og-summary/src/collect/two_hits.rs
  • rust/crates/og-summary/src/mito.rs
  • rust/crates/og-summary/src/mito/tests.rs
  • rust/crates/og-summary/tests/i411_sf_haplotype_count.rs
  • rust/crates/og-summary/tests/screen_acmg_card_section.rs
  • scripts/10-telomere-hunter.sh
  • scripts/20-mtoolbox.sh
  • scripts/41-bloodtype.sh
  • scripts/ci/image-smoke.sh
  • scripts/owngenome-view.sh
  • scripts/run-all.sh
  • scripts/validate-setup.sh
  • tests/browser/README.md
  • tests/e2e/acmg-sf-rules-1-reports.sh
  • tests/e2e/bloodtype-1.sh
  • tests/e2e/cn-engine-1-parity.sh
  • tests/e2e/nf-wiring-1-report-tables.sh
  • tests/e2e/platelet-antigens-1.sh
  • tests/fake-docker/bash-step-hla.sh
  • tests/fake-docker/bash-step-setup-data.sh
  • tests/fake-docker/bash-step-somatic-mito.sh
  • tests/fake-docker/run-all-everything.sh
  • tests/parity/golden/bloodtype/abo-ab-duffy-gata-kell-null/stdout
  • tests/parity/golden/bloodtype/abo-ab-no-bam/stdout
  • tests/parity/golden/bloodtype/bgzip-no-index-abo/stdout
  • tests/parity/golden/bloodtype/indexed-abo/stdout
  • tests/parity/golden/bloodtype/indexed-nochr/stdout
  • tests/parity/golden/bloodtype/plain-nochr/stdout
  • tests/parity/golden/bloodtype/pseudogene-one-copy/stdout
  • tests/parity/golden/bloodtype/ref-no-bam/stdout
  • tests/parity/golden/summary-collect/all-bad/all-bad.json
  • tests/parity/golden/summary-collect/all-default-out/history-bad/summary.json
  • tests/parity/golden/summary-collect/all-empty/all-empty.json
  • tests/parity/golden/summary-collect/all-failed/all-failed.json
  • tests/parity/golden/summary-collect/all-history-bad/all-history-bad.json
  • tests/parity/golden/summary-collect/all-history/all-history.json
  • tests/parity/golden/summary-collect/all-inf/all-inf.json
  • tests/parity/golden/summary-collect/all-nf/all-nf.json
  • tests/parity/golden/summary-collect/all/all.json
  • tests/parity/golden/summary-collect/cb-full/cb-full.json
  • tests/parity/golden/summary-collect/cb-nf/cb-nf.json
  • tests/parity/golden/summary-collect/cb-nfbad/cb-nfbad.json
  • tests/parity/golden/summary-collect/cb-notbi/cb-notbi.json
  • tests/parity/golden/summary-collect/cb-quoted-dosage/cb-quoted-dosage.json
  • tests/parity/golden/summary-collect/cb-quoted-interval/cb-quoted-interval.json
  • tests/parity/golden/summary-collect/cb-quoted-smn/cb-quoted-smn.json
  • tests/parity/golden/summary-collect/cb-unicode-contig/cb-unicode-contig.json
  • tests/parity/oracle.ref
  • tests/schema/summary.schema.json
  • tests/smoke/README.md
  • tests/smoke/telomerehunter.sh
  • tests/test_live_demo.py
  • tests/test_owngenome_view.sh
  • tests/test_report_charts.py
  • tests/test_run_state.py
  • tests/test_telomere_wording.sh
  • tests/test_viewer.py
  • versions.env
  • workflows/bam_analysis.nf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@geiresx

geiresx commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…iserX#531 adds

GeiserX#533 (screen-acmg-card-section) recorded the new sections.acmg_sf card in
the all, all-nf and all-history goldens before GeiserX#531 (i411-sf-haplotype-count)
gave each row of the card its gene's `pair` and `phase` and kept the
`combined_allele` note. The merged og writes the card with those fields,
the same card as sections.clinical.data.acmg_sf, so oracle-diff reported
3 items that differ. The goldens are og's output for the merged tree;
only those card rows and the masked generated_utc change.
… too

c9961b9 let a HIGH-impact row of a gene change that gene's pair and phase
in the og-summary agreement test. The e2e case acmg-sf-rules-1-reports
checks the same rule on a real run and still demanded strict equality, so
the two copies of the rule disagreed. The jq check now ignores pair and
phase only when a HIGH-impact row of that gene is in the full run's card;
any other change still fails. Checked with jq on hand-made cards: a pair
change with a HIGH-impact row passes, and a pair change without one, a
changed field and a lost row all fail. The old check failed the first.
…epth

A successful task's stderr stays in its work directory, so the
MITO_VARIANTS WARNING never reached a Nextflow user. The workflow now
says it with log.warn when mito_variants runs without mosdepth.
…and open Manta's SVs first on the live site too

og's main holds stderr's lock while og view serve runs, so a handler thread
that logged with eprintln! blocked forever before it closed its connection:
no request was logged, every socket stayed in CLOSE_WAIT, and the viewer
stopped answering once it ran out of file descriptors. The handlers now send
their lines over a channel and the thread that owns stderr writes them.
tests/test_owngenome_view.sh checks that a request is logged and that the
server closes the connection; both fail on the previous build.

The live site's viewer picks its SV track with serve.sample_files, so the
order swap there makes both viewers open Manta's diploid SVs first.
… figures

Old checks 7 and 8 test what bin/render_report.py still ships: each chart once in its section below the caveat, every anchor resolving, and two renders giving the same charts file. og report render does not embed the figures yet, so they stay in Python until html.rs does. The charts.rs header and the changelog now say which checks moved.
left_allele trimmed first, so m.314 CG>CCG passed as C>CC on the rCRS
and met m.310's record. The docs now say the table writes the trimmed
spelling, not the moved one.
…index

GRIDSS (script 04b, after the pipeline) needs the classic BWA index, which
setup.sh does not build; an EVERYTHING=true run now refuses up front instead
of failing hours in. A refused run puts the last run's run_status.tsv back
and posts no run-finished event. pipeline-overview.md lists TIDDIT=true.
…r attributes were set in

The live page sets the <html> data-pgp-* attributes as its files arrive, so
two renders can carry the same attributes in another order. CI failed once
on T7's and once on GeiserX#536's Guard on 'child with no act, a search typed' and
passed on a rerun. Each element of the clone now gets its attributes back
sorted by name before outerHTML: an order swap passes, while a changed value,
an added or a missing attribute still differ (checked in Chromium on a planted
order swap, value change, added and missing attribute).
…rpus summaries

GeiserX#537 ported the charts but left its corpus rows out of the parity list, so CI
held the charts only on the six frozen summaries. One report-charts case per
report-render summary, compared as JSON, and the oracle row at 65095e9.
scripts/ci/oracle-diff.sh report-charts: all 616 items in 154 cases agree;
a planted key rename in og's charts file makes both cases it touches differ.
It writes the chart specs as render_report.py --charts-json does (GeiserX#537); no
step calls it yet.
@geiresx
geiresx requested a review from GeiserX as a code owner November 20, 2026 14:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants