Skip to content

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 00:05
· 89 commits to main since this release
69c2945

Breaking

  • Reference Completion keeps each observed row's source_alid, and the validator refuses a lifted release with none (issue #449). Dense and Ragged completion rewrote the Store Variant Table without the pre-liftover ALID the build recorded, so a completed release lost which source variant any row came from (OGS-00009: . on all 11,191,070 rows) and nothing failed. Observed rows now keep their source's source_alid; rows added from the panel stay ., and a row the build left blank stays blank. The new rule variant_table.source_alid fails a release whose manifest records a liftover (provenance.chain_file, or a provenance.lift that lifted a variant) and whose table holds no source_alid at all, on every format_version.

    Ragged builds (build-ragged-ssf, build-ragged-besd) now write source_alid too: the pre-lift ALID of a lifted row, the ALID itself for an unlifted one, and . where two origins reach one variant (#85).
    A hosted release built before this fails the new rule until it is rebuilt (opengwas/opengwasdb-stores#498): every completed 0.2 Dense release that lifted, and every lifted Ragged release, holds no source_alid.

  • The Store Reader: every read the query facade makes now lives in one
    subpackage, opengwasdb.store_reader, which imports only numpy, zarr,
    numcodecs and the standard library (issue #464, epic #450).
    The release
    envelope and format-version check, the encoding plan and decode, the decoded
    planes, the association readers, the Ragged CSR, By-Variant Index, Indexed
    Variant Subset, Rho and Top-Hit readers, the Analyses index, the Variant Axis,
    and the facade and result resolution moved there; builders, completion and
    validation import them from it. import opengwasdb.store_reader loads none of
    pandas, scipy, pysam, sqlite3 or threadpoolctl, and import opengwasdb no
    longer loads the builders (its names, and the encoding, variants, index,
    store and layouts.dense packages' re-exports, are imported on first use).
    opengwasdb.query keeps its public names and answers every query as before
    (tests/test_store_reader_digests.py pins the answers of the code before the
    move). log10_p and the Top-Hit z_critical are computed without scipy:
    log10_p is within 3.9e-16 relative error of a 50-digit reference across
    -40 <= z <= 40 (809 points), and z_critical cuts every stored |z| where the
    scipy form did. The 0.2.x Store Variant Table's pysam and SQLite reads move to
    opengwasdb.variants.legacy_table, behind the Store Reader's
    LegacyVariantTable seam.

  • Three module paths are removed, with no shim (issue #464). Import from the Store
    Reader instead: opengwasdb.associations (and its cells, csr, dense, record
    and subset modules, Associations among them) is opengwasdb.store_reader.associations;
    opengwasdb.query.facade is opengwasdb.store_reader.facade; and
    opengwasdb.query.resolve is opengwasdb.store_reader.resolve. opengwasdb.query
    itself keeps query_store, StoreQuery, resolve_rows and log10_p_two_sided.

  • The query TSV gains a beta column after se, so p, eaf, n (where
    present) and association_status each move one column right (issue #466,
    ADR 0104).
    Default columns are now analysis_id, analysis_label, chromosome, position, alid, effect_allele, other_allele, z, se, beta, p, eaf, association_status: p moves from column 10 to 11, eaf from 11 to 12 and
    association_status from 12 to 13, one further right with --variant-info.
    A reader that selects columns by position must move with them. Every query
    result now carries beta and pval, derived once by the Store Reader:
    association_statistics turns a result's z and SE into beta (z * se),
    pval and log10_p, all float64, on Dense, Ragged and Hybrid alike, and
    resolved rows carry all three. A missing association is NaN in all three,
    and so is an infinite SE (ADR 0068), never inf; where p is below float64's
    range pval is 0.0 and log10_p stays exact. The TSV p column prints the
    reader's pval, and NA for an infinite SE where it used to print the p of
    z. --format json gains beta, pval and log10_p. The benchmarks read
    beta and -log10 p from the Store Reader instead of deriving them again.

  • Builds and completion write Store format 0.3.0, a new series that older packages
    refuse (issue #467, ADR 0105).
    A 0.3.0 release indexes its ALIDs with a variable-length sidecar
    (variant_alid_utf8.npy, variant_alid_offsets.npy, variant_alid_keys.npy,
    variant_alid_order.npy). The sidecar holds every ALID, however long. The fixed-width
    variant_alid_bytes.npy/variant_alid_rows.npy pair, which is no longer written, left
    out each ALID over 32 bytes. Those resolved only by scanning the Variant Table with
    pysam: 115,043 such ALIDs on OGS-00010, 2,026 on OGS-00024. On 0.3.0, lookup and
    phewas by such an ALID return its row without loading pysam. A package without the
    0.3 series refuses a 0.3.0 release by name (… declares format_version='0.3.0', a release series this build does not implement). This package still reads 0.1.0 and every 0.2
    release.

  • ogdb rewrite-release SOURCE DESTINATION derives a new 0.3.0 release from a 0.2.3
    one (spec §21.4).
    It never writes its source and refuses a destination that exists.
    It runs named steps on a staged copy, one for each thing 0.3.0 changes. Before it publishes, it
    asks the source and the copy the same fixed set of questions and refuses on any
    difference, then validates the copy. The questions include the release's longest ALIDs
    and ALIDs at 23, 24, 25, 32 and 33 bytes, and the step refuses unless every ALID resolves
    to its own row. A release before 0.2.3 is refused: it lacks 0.2.3's reference-first
    indels and SE count, which no rewrite can add, so it is rebuilt. Hosted Stores are not
    rewritten: they are rebuilt from source at 0.3.0 (opengwas/opengwasdb-stores#498). The
    rewrite proves each format step on fixture and small releases.

  • New validation rule variant_table.alid_sidecar. It checks a 0.3.0 release's
    sidecar against its Variant Table. envelope.required and envelope.closed now follow
    the release's version: the sidecar from 0.3.0, the fixed-width pair before it.

  • The query-result digests are production code (opengwasdb.store.query_digests). The
    rewrite's proof and the store-reader golden test share them, and the store-comparison
    benchmark takes digest_array and result_digests from there.

  • docs/store-format-compatibility.md has the 0.3.0 row. Both repositories' docs change:
    opengwasdb-stores' release manifests and walkthrough name the envelope's files.

  • A 0.3.0 release is queried without reading variants.tsv.gz (issue #469, ADR 0105
    §7).
    variants_table() and
    resolve(..., include_variant_info=True) answer from the sidecars: the ALID sidecar
    names each row, its ALID gives the chromosome, position and alleles, and the rsID index,
    inverted, gives the rsID. The variant count is the ALID sidecar's. No query loads pysam,
    through the Python API or opengwasdb query-*: the CLI imports Reference Completion,
    which does, only inside the complete-* commands. Nor does opengwasdb query-* load
    sqlite3, pandas or scipy: each build, resolve, ancestry, validation and overview command
    imports its modules on use.
    The answers equal 0.2.x's column by column: a row with no rsID is None in
    variants_table() and . in a resolved row, and a cell naming several (rs1;rs2) is
    that cell whole. Naming a few rows scans the rsID index (0.04 s for one row on
    OGS-00004's 23.7 M); once the scans would cost more than one inversion (1.0 s, 95 MB),
    it inverts, once, and keeps it. 0.2.x is unchanged.

  • variant_offsets.npy is not written from 0.3.0. A 0.3.0 release carrying it fails
    envelope.closed. The Dense builder's provenance.dense.variant_axis.row_offsets no
    longer names it, and the index.sqlite dense blob that also named it is gone from
    builds and rewrites alike (#471). variants.tsv.gz and its .tbi still ship, written with htslib,
    as a convenience for tabix, bedtools and R. Spec §4 gives the command that rebuilds a lost
    .tbi: tabix -s1 -b2 -e2 -c'#' variants.tsv.gz.

  • overview.html's file guide says so. variants.tsv.gz is a file to open directly,
    which no 0.3.0 query reads, and every sidecar and regions.tsv is described rather than
    listed as "Internal store file". --variant-info's help names the rsID index it reads.

  • A 0.3.0 release without its rsID index is refused (MissingRsidIndex), rather than read
    as naming no rsID. A 0.2 release built before #109 still opens without one.

  • The variant-axis writer refuses an rsID wider than 24 bytes (UnindexableRsidError).
    0.2.x left such a name out of the rsID index and kept it in the table. A 0.3.0 reader names
    rows from the index, so the name would vanish from every answer. None of the six
    releases measured holds one (OGS-00003, -00004, -00007, -00009, -00016, -00025: 0 cells
    over 24 bytes). The rebuild reads sources, though, and a GWAS-VCF ID cell is kept
    whole: one naming several rsIDs past 24 bytes (three of nine digits already are) is
    refused at build.

  • ogdb rewrite-release gains a variant_offsets step: the copy
    leaves the file out, and the step refuses unless the ALID and position sidecars count the
    rows the source's offsets did.

  • New validation rule variant_table.rsid_rows (0.3.0). It checks that the inverted rsID
    index names every row by the table's rsID. On 0.3.0, variant_table.rows counts against
    the ALID sidecar, and variant_table.representatives checks the tabix index only.

  • ogdb-api breaks on a 0.3.0 release. It reads variant_offsets.npy and seeks into the
    Variant Table through the axis's private attributes. Its owner moves its pin.

  • opengwasdb-stores' release manifests and walkthrough name the envelope's files, so they
    change when opengwasdb-stores moves its pin to this version; no change there is open yet.

  • Format 0.3.0 carries each row's source_alid in a sidecar (issue #470, ADR 0105 §8).
    variant_source_alid_state.npy
    gives each row a byte: 0, no source_alid; 1, its own ALID; 2, another ALID, which
    variant_source_alid_utf8.npy and variant_source_alid_offsets.npy hold for those
    rows alone, whole however long (an indel past 100 bytes). A release built on its own
    assembly so costs one byte a row: 21.3 MB on OGS-00003's 21.3 M rows, 5.8% of its
    table, where storing every row's text would have cost 489 MB, 1.34 times the table and
    the ALID sidecar's text again. write_variant_axis writes them, so every build and completion does,
    and a Reference-Completed release keeps each observed row's value and gives a panel row
    none. They are in the 0.3.0 envelope: a 0.3.0 release without them fails
    envelope.required and is refused at open (MissingSourceAlidSidecar), and a 0.2
    release carrying them fails envelope.closed. The writer refuses a source_alid the
    table could not hold as the sidecar does: ., or one holding a tab, newline or NUL
    (UnencodableSourceAlidError).

  • variants_table(), variants(), variants_in_range() and resolved rows with
    variant info gain a source_alid column
    (the three reads are one projection, the
    axis's rows_by_indices),
    on every format: None in variants_table() and . in a resolved row where a row has
    none. A 0.3.0 release reads it from the sidecar, a 0.2 release from its table. The
    opengwasdb query-* --variant-info TSV output is unchanged.

  • On 0.3.0 the record methods read no Variant Table. VariantAxis.by_index,
    by_indices, all, records, range and by_identifier name each row from the
    sidecars, so neither completion of a 0.3.0 source nor validate --source's join
    (indices_by_source_alid) reads variants.tsv.gz. The join returns None, as for a
    table that predates the column, when no row has a source_alid. On a release whose
    manifest records no lift, validate --source then lifts its samples itself; on one
    that records a lift, variant_table.source_alid (#449) fails first and the
    source-fidelity check is skipped. The validator reads the table through the new
    VariantAxis.written_table_records. A 0.2 release is read as before.

  • ogdb build-dense writes each row's own ALID as its source_alid. It lifts
    nothing, and wrote none before, so its releases now say each row's source named it
    as stored, as every other build's do for an unlifted row.

  • New validation rule variant_table.source_alid_sidecar (0.3.0): each row's state is
    the one the table's source_alid and ALID give, each lifted row's text is the table's,
    every state is 0-2, text is held for lifted rows alone, and it holds one row per row.
    variant_table.source_alid counts sourced rows from the sidecar on 0.3.0.

  • ogdb rewrite-release gains a source_alid_sidecar step: it writes the sidecar
    from the table's source_alid column and ALIDs (state 0 on every row of a seven-column
    table) and refuses unless the sidecar read back gives every row the table's state and
    text. The proof
    compares source_alid through variants_table() and the resolved rows.

  • opengwasdb-stores' release manifests and walkthrough name the envelope's files, so they
    change when opengwasdb-stores moves its pin to this version.

  • A 0.3.0 Hybrid carries the sidecar at its root only: its Dense Component, which
    carries no Variant Axis (#472), answers each row's source_alid as its shared row's
    through PanelVariantAxis, and the rewrite writes the Dense Component none.

  • A format 0.3.0 release no longer carries what nothing read, or what only the
    validator read and can recompute (issue #471, ADR 0102).
    From 0.3.0:

    • index.sqlite holds only completion_quality, so it ships only in a
      Reference-Completed release (a Hybrid's in its Dense Component). An Observed-Only
      release, and a Hybrid's outer release, has none, and the closed envelope fails one
      that does (envelope.closed); one holding anything else fails
      sqlite.provenance_only.
    • The index.sqlite metadata table (the dense layout blob, schema_version,
      n_variants, n_analyses) and variant_aliases are gone. manifest.json is the
      one record of the Dense layout.
    • The Top-Hit tiers store z but not abs_z or p_value (575 MB on OGS-00009). The
      validator recomputes both from z; a new rule, top_hits.threshold, fails a tier
      row whose |z| does not clear its threshold.
  • A new way a 0.2 release can fail validate. top_hits.abs_z now judges a Dense
    grid's tiers as well as a sequence's, and their p_value as well as their abs_z:
    each must be what the tier's z implies. abs_z must agree within 1e-3, and
    p_value within 1e-3 relative, or within float64's smallest normal number where an
    erfc flushed a subnormal p to 0.0. All 54 tiers of the 18 hosted 0.2 components
    checked agree. Its finding now reads abs_z or p_value inconsistent with z.

  • On 0.3.0 the Store Reader never opens index.sqlite. An rsID that the rsID index
    lacks is a miss, and SQLite is not loaded. A 0.2 Dense or Hybrid release still falls
    back to variant_aliases.

  • ogdb rewrite-release drops them in two steps, provenance_index and
    tier_stored_p, which leave them out of the copy. Before it writes anything it
    refuses a source when:

    • its index.sqlite holds a table other than metadata, variant_aliases and
      completion_quality;
    • its variant_aliases names an rsID the rsID index lacks;
    • its dense blob disagrees with its manifest;
    • it is Reference-Completed and its index.sqlite has no completion_quality;
    • a tier stores one of abs_z and p_value without the other;
    • a tier's stored abs_z or p_value is not what its z implies;
    • a consolidated-metadata record describes a tier.

    Its proof also asks about rsIDs no release names. A step now has an optional
    refuse hook, run before anything is staged, and an optional run.

  • ogdb build-dense-top-hits and build-ragged-top-hits keep a release's format.
    A 0.2 release's rebuilt tiers still store abs_z and p_value, recomputed from z;
    a 0.3.0 release's store neither.

  • A format 0.3.0 Hybrid's Dense Component no longer carries a copy of the shared
    variants or Analyses (issue #472, ADR 0102 §4, ADR 0105).
    From 0.3.0, dense/ holds manifest.json,
    data.zarr/, dense_to_shared.npy and, Reference-Completed, index.sqlite. It no
    longer carries variants.tsv.gz, variants.tsv.gz.tbi, the ALID sidecar
    (variant_alid_utf8/offsets/keys/order.npy), the position sidecar
    (variant_position*.npy), the rsID index (variant_rsid_bytes/rows.npy),
    analyses.tsv or overview.html. Each is the shared one's rows again, and on a
    completed release the copy had lost rsIDs and every source_alid (#481). On
    OGS-00004 (Hybrid Observed-Only, 13,718,605 panel rows) the 0.2 copies come to
    1,098,940,214 B, and on OGS-00011 as completed (14,267,257 panel rows) to
    1,175,803,588 B; a 0.3.0 component that kept its copy would carry 1,265,761,783 B and
    1,347,866,437 B. Both were rewritten read only with the version refusal bypassed
    (neither is 0.2.3). OGS-00004, with its hm3 Indexed Variant Subset, was rewritten
    with this package: the proof matched on every question, the subset's 16 included, and
    the whole validator passed the copy but for the n_missing_se_out_of_range column a
    0.2.2 source lacks. OGS-00011's comparison, both sides read by this package, left out
    the one broad range_phewas, too large for it, and changed no answer on the rest. The
    closed envelope fails a 0.3.0 Dense Component carrying any of the dropped files.

  • The Dense Component's variants are the shared axis's, through dense_to_shared.
    Opened as a release, its variant_axis() is the shared axis in its panel rows
    (opengwasdb.store_reader.panel_axis.PanelVariantAxis), and its analyses_path is
    the Hybrid's. VariantAxis(<hybrid>/dense) on a 0.3.0 release raises
    DenseComponentSharesAxis instead of opening files that are not there, and a
    dense/ under a parent manifest.json that cannot be read raises
    UnreadableHybridManifest. A Hybrid query resolves an identifier and a range once,
    against the shared sidecars.

  • 0.2 Hybrids are read through the shared axis too. On every format, a Hybrid query's
    Dense Component is now read through the shared Variant Axis and the shared Analyses,
    never its own copy, because a completed 0.2 Hybrid's copy lost rsIDs and every
    source_alid the shared table keeps (#481). range_phewas was the last query still
    reading the copy, by position; phewas and lookup had read the shared axis since
    #465. What shows the old read path gives the same answers: the golden digests of the
    two Hybrid fixtures, pinned by the reader before #472, are unchanged; and on OGS-00004
    the package before #472 reading the 0.2.2 source and this one reading the rewritten
    0.3.0 copy agreed on all 142 questions, both range_phewas included, and every probe.

  • The Dense Component's own n_missing_se_out_of_range is gone with
    dense/analyses.tsv.
    The Hybrid's analyses.tsv counts both components, as it did;
    the Dense Component's own count is no longer recorded anywhere. What its completion left
    out is still recorded in its manifest (provenance.completion.se_out_of_range), and
    check-observed-view accounts that against what it finds
    (observed_view._component_accounting). A completion of a 0.3.0
    Hybrid counts what a completion of its 0.2.3 form counts; the
    analyses.se_out_of_range_partition rule has nothing to compare on 0.3.0.

  • ogdb rewrite-release drops the copies in a new step, dense_shared_axis, and
    refuses, before anything is written, a source whose dense_to_shared.npy does not
    name, for each Dense row, the shared row holding that row's ALID, in range and
    strictly ascending. It does not compare the copies' rsID or source_alid.

  • ogdb rewrite-release carries an Indexed Variant Subset to the new release. A new
    step, indexed_subsets, records the new release_id and format_version in each
    subset, which holds the same cells of the new release (ADR 0061); before, every
    rewritten release with a subset failed subsets.indexed. It refuses a source whose
    subset already names another release. The proof asks each subset the spread Analyses.

  • Validation. hybrid.dense_to_shared reports a row out of range, a row named
    twice and a descending pair each by itself; hybrid.coverage fails a map that does
    not name one shared row for each row of a 0.3.0 Dense Component's grid. The
    variant_table.* rules do not judge a 0.3.0 Dense Component, and the analyses.*
    table rules judge a 0.3.0 Hybrid's own analyses.tsv.

  • Reading a missing Variant Table raises FileNotFoundError instead of crashing the
    process inside pysam.

  • An unknown analysis_id is refused on every query that names one (issue #474).
    analysis() (with or without an Indexed Variant Subset), lookup(), rho(),
    rho_row() and rho_matrix() answered an Analysis the release does not hold with an
    empty result, which reads exactly as "no association". On every layout they now raise
    UnknownAnalysisError, as top_hits() already did (#483); a lookup() naming one
    unknown Analysis among known ones raises too. opengwasdb query-analysis and
    query-lookup print the error and exit 1. The error carries analysis_id;
    UnstoredThresholdError carries threshold and stored, and a chromosome no ALID can
    spell raises UnsupportedChromosome (a VariantNormalisationError) carrying
    chromosome, so a caller reads the values without parsing the message.

  • A Dense or Hybrid release answers top_hits at a stored tier only, and an
    unknown analysis_id raises (#483).
    A Dense or Hybrid release returned no
    rows, without an error, for a threshold it stores no tier for, and every layout
    (Ragged too) returned nothing for an analysis_id it does not hold; a tier without per-Analysis offsets also
    returned nothing for one Analysis. Now an unstored threshold raises
    opengwasdb.store_reader.top_hits.UnstoredThresholdError (a ValueError)
    naming the threshold and the stored tiers, and opengwasdb query-top-hits
    exits 1 with that message; a Dense release never scans its grid, since a scan
    is hours on a release the size of OGS-00016. An unknown analysis_id raises
    opengwasdb.store_reader.analyses.UnknownAnalysisError (a ValueError) on every
    layout, naming it. A stored tier without offsets answers one Analysis by
    filtering its rows. A Ragged release still scans an unstored threshold. A
    Hybrid's limit is applied to each component. phewas and
    range_by_analysis, which name no Analysis, are unchanged; every other query that
    names one refuses an unknown one the same way (#474).

Added

  • The Store Reader contract bundle (issue #474). tests/store_reader_contract/ holds
    nine small format 0.3.0 Store Releases -- Dense, Ragged and Hybrid, each Observed-Only
    and Reference-Completed -- and what each answers to every question the rewrite's proof
    asks, as digests and as readable rows. ogquery, opengwaspy, opengwasr and any other port
    of the Store Reader test against it; its README names what each release exercises.
    query_digests asks every question once (questions) and renders each answer as a
    digest and as readable rows (release_answers); it now also asks the refusals the query
    contract defines, so ogdb rewrite-release compares them between the source and the
    rewritten release. pixi run -e dev contract-check regenerates the bundle and fails on
    any difference. list_indexed_subsets, indexed_subset_namespace_path and
    is_valid_indexed_subset_name are the Store Reader's (opengwasdb.store_reader.indexed).

  • The query facade answers variant-only reads (issue #484). variant_count(),
    variants(identifiers) and variants_in_range(chromosome, start, end) return the
    variant count, and the variants_table() rows for rsIDs or ALIDs and for a range, on
    every layout and every readable format version, through the Variant Axis lookup
    and range_phewas use. They need no variants_table() over every variant, and on 0.3.0
    read no variants.tsv.gz and load neither pysam nor sqlite3. The rewrite proof digests
    them (variant_reads).

Changed

  • A query a search index can answer no longer opens a 0.2.x Store Release's Variant Table or index.sqlite, and open_store no longer imports pysam or sqlite3 (issue #465, epic #450). The tabix handle and the variant_aliases connection open on first use, and an ALID or rsID found in the mmap'd search indexes resolves to its row without a table read. Only a long ALID (over 32 bytes), range_phewas, variants_table(), resolved rows with variant info, and an rsID missing from the rsID index still open them; a Hybrid release resolves identifiers once, against its shared index, so an off-panel indexed rsID no longer consults the Dense Component's variant_aliases. After close() the table raises instead of reopening. Answers are unchanged (every fixture digest is the same). Measured per process on OGS-00009 (7 fresh processes each, median (range); docs/benchmark-output/465_process_start_ogs00009_{tip,head}.json): import pysam, sqlite3 takes 50 ms and opening the tabix handle 43 ms, neither now paid by a query that does not need the table (sqlite3.connect is 0.2 ms); a process that opens OGS-00009 and runs one 10-variant by 100-Analysis lookup takes 2,242 ms (2,166–2,286) against 2,398 ms (2,358–2,492) before. The store-comparison harness's random_lookup shapes and phewas are unchanged (it opens a release once); benchmarks/benchmark_process_start.py measures the per-process cost.
    On Ragged and Hybrid releases, lookup by a multi-allelic rsID now returns every row it names, as on Dense, where it returned only the lowest. (On a release without the sidecar rsID index, the variant_aliases fallback still returns one row, the lowest.)

  • A 0.3.0 release answers range_phewas from a position sidecar, without tabix or
    pysam (issue #468, ADR 0105 §6).
    Every build and completion writes three more files beside the Variant Table:
    variant_position.npy (each row's position, <u4), variant_position_chromosomes.npy
    and variant_position_chromosome_offsets.npy (each chromosome's rows). A range is two
    binary searches in its chromosome's slice. It answers exactly as a 0.2 release answers
    by tabix, which is unchanged. A Hybrid's nested Dense Component carries its own sidecar.
    A 0.3.0 release missing it is refused by name. The writer refuses rows out of genomic
    order. The reader refuses a sidecar whose chromosomes cannot slice its rows: offsets
    that do not number the chromosomes plus one, a chromosome named twice, or a label that
    is not UTF-8.

  • ogdb rewrite-release gains a position_sidecar step, and its proof asks
    range_phewas at the first and last variant, either side of a chromosome boundary, over
    empty ranges, and on a position several variants share. A release whose rows cannot
    pose some of these (one chromosome, say) leaves them out. The log line names them, and
    the manifest's provenance.format_rewrite.range_questions_not_posed records them.

  • New validation rule variant_table.position_sidecar. It checks the sidecar against
    the Variant Table and its own order. envelope.required and envelope.closed name its
    files from 0.3.0 only. variant_table.representatives still checks the tabix index,
    which 0.3.0 ships as a convenience that no query reads.

  • Both repositories' docs change: opengwasdb-stores' release manifests and walkthrough
    name the envelope's files.

  • The validator, Reference Completion, the top-hit harvest, overview.html
    and the Rho builder read Store Releases only through the Store Reader (issue
    #473, epic #450).
    None opens a release's Zarr group, its Store Variant
    Table or its index.sqlite itself any more: each asks the Store Reader by
    what it wants (opengwasdb.store_reader.stored: a release's arrays, its
    Association Sequence group, the eaf_baseline and se_coefficients a
    source was coded against, a group's recorded attributes; the Top-Hit
    Index's per-Analysis count, analysis_hit_counts; a release's Variant Axis,
    which now also streams its rows, VariantAxis.records, and resolves source
    ALIDs, VariantAxis.indices_by_source_alid). The index.sqlite reads the
    validator makes are named reads in opengwasdb.index.release_index, beside
    the 0.2.x Variant Table's, since the Store Reader may not import sqlite3;
    every read of a release's index.sqlite now opens it read-only
    (open_index_read_only), so no read can create an index
    that is not there. tests/test_engine_reads_through_store_reader.py refuses
    any other raw read of a release, naming each exempt writer and its reason.
    Every validation finding, observed-view verdict, EAF audit and completed
    array on the fixture releases was what it had been, checked against pins the
    code before the change wrote.
    Hybrid Reference Completion now refuses a residual-SE Dense Component that
    holds no se_coefficients with a HybridCompletionError naming it, where it
    raised a bare KeyError.

Fixed

  • associations.se_infinite's warning no longer says beta = z * se reads as
    infinity (issue #473).
    Since ADR 0104 a query reads beta and pval as NaN
    where a release before format 0.2.3 stores +inf SE beside a finite z; the
    warning now says so, and that the stored values are that z and +inf.

  • The Store Reader contract compares pval and log10_p to four ulps across machines
    (issue #474).
    Both come from the libm (erfc, erf, log, log1p), which differs in
    the last ulp between the bundle's generating host and GitHub's runner. So the runner failed
    every pval in the bundle's 9 releases on an exact comparison, and the resolved
    log10_p of the lookup and range PheWAS in 6 of them. query_digests now keeps each
    answer's pval as numbers beside the digests rather than in them, as it already kept
    log10_p. differences(..., rtol=CROSS_MACHINE_RTOL) and readable_differences compare
    both by one rule, to within 4 * 2**-52 relative, NaN equal to NaN. The rewrite's proof,
    which reads both sides in one build, still compares them exactly.

  • fidelity.source passes a correctly lifted Store on reverse-strand rows,
    and lifts only with the chain the build used (issue #486).
    A
    reverse-strand chain block complements a variant's alleles, which makes the
    other allele A1, so the build stores the source's z negated (issue #284).
    The check compared the source's z with the stored one without that
    projection, and failed every reverse-strand row of a lifted Dense Store whose
    values were right. It now lifts each sample of a cross-assembly source
    through the build's own lift and statistics_swap, whatever the
    source_alid join finds, and signs the source z as the Store does. The
    chain is the one the release records in provenance.chain_file (and
    chain_sha256, where recorded): a chain_file with another label or other
    bytes is refused, and with none given the recorded chain is used if it is
    pyliftover's built-in one or is on disk at the recorded path; otherwise the
    check is refused, naming the recorded chain. A sample the Store holds by
    source_alid that the chain places nowhere, or on another row, fails the
    check, naming the chain. Stored data is unchanged.


Merged in #480: #480