Repository navigation
v0.17.0
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'ssource_alid; rows added from the panel stay., and a row the build left blank stays blank. The new rulevariant_table.source_alidfails a release whose manifest records a liftover (provenance.chain_file, or aprovenance.liftthat lifted a variant) and whose table holds nosource_alidat all, on everyformat_version.Ragged builds (
build-ragged-ssf,build-ragged-besd) now writesource_alidtoo: 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 nosource_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_readerloads none of
pandas, scipy, pysam, sqlite3 or threadpoolctl, andimport opengwasdbno
longer loads the builders (its names, and theencoding,variants,index,
storeandlayouts.densepackages' re-exports, are imported on first use).
opengwasdb.querykeeps its public names and answers every query as before
(tests/test_store_reader_digests.pypins the answers of the code before the
move).log10_pand the Top-Hitz_criticalare computed without scipy:
log10_pis within 3.9e-16 relative error of a 50-digit reference across
-40 <= z <= 40 (809 points), andz_criticalcuts 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
LegacyVariantTableseam. -
Three module paths are removed, with no shim (issue #464). Import from the Store
Reader instead:opengwasdb.associations(and itscells,csr,dense,record
andsubsetmodules,Associationsamong them) isopengwasdb.store_reader.associations;
opengwasdb.query.facadeisopengwasdb.store_reader.facade; and
opengwasdb.query.resolveisopengwasdb.store_reader.resolve.opengwasdb.query
itself keepsquery_store,StoreQuery,resolve_rowsandlog10_p_two_sided. -
The query TSV gains a
betacolumn afterse, sop,eaf,n(where
present) andassociation_statuseach move one column right (issue #466,
ADR 0104). Default columns are nowanalysis_id, analysis_label, chromosome, position, alid, effect_allele, other_allele, z, se, beta, p, eaf, association_status:pmoves from column 10 to 11,eaffrom 11 to 12 and
association_statusfrom 12 to 13, one further right with--variant-info.
A reader that selects columns by position must move with them. Every query
result now carriesbetaandpval, derived once by the Store Reader:
association_statisticsturns a result's z and SE intobeta(z * se),
pvalandlog10_p, allfloat64, 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), neverinf; where p is below float64's
rangepvalis 0.0 andlog10_pstays exact. The TSVpcolumn prints the
reader'spval, andNAfor an infinite SE where it used to print the p of
z.--format jsongainsbeta,pvalandlog10_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.npypair, 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,lookupand
phewasby 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 DESTINATIONderives 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.requiredandenvelope.closednow 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 takesdigest_arrayandresult_digestsfrom there. -
docs/store-format-compatibility.mdhas 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 oropengwasdb query-*: the CLI imports Reference Completion,
which does, only inside thecomplete-*commands. Nor doesopengwasdb 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 isNonein
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.npyis not written from 0.3.0. A 0.3.0 release carrying it fails
envelope.closed. The Dense builder'sprovenance.dense.variant_axis.row_offsetsno
longer names it, and theindex.sqlitedenseblob that also named it is gone from
builds and rewrites alike (#471).variants.tsv.gzand its.tbistill 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.gzis a file to open directly,
which no 0.3.0 query reads, and every sidecar andregions.tsvis 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-VCFIDcell is kept
whole: one naming several rsIDs past 24 bytes (three of nine digits already are) is
refused at build. -
ogdb rewrite-releasegains avariant_offsetsstep: 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.rowscounts against
the ALID sidecar, andvariant_table.representativeschecks the tabix index only. -
ogdb-api breaks on a 0.3.0 release. It reads
variant_offsets.npyand 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_alidin a sidecar (issue #470, ADR 0105 §8).
variant_source_alid_state.npy
gives each row a byte: 0, nosource_alid; 1, its own ALID; 2, another ALID, which
variant_source_alid_utf8.npyandvariant_source_alid_offsets.npyhold 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_axiswrites 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.requiredand is refused at open (MissingSourceAlidSidecar), and a 0.2
release carrying them failsenvelope.closed. The writer refuses asource_alidthe
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 asource_alidcolumn (the three reads are one projection, the
axis'srows_by_indices),
on every format:Noneinvariants_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-infoTSV output is unchanged. -
On 0.3.0 the record methods read no Variant Table.
VariantAxis.by_index,
by_indices,all,records,rangeandby_identifiername each row from the
sidecars, so neither completion of a 0.3.0 source norvalidate --source's join
(indices_by_source_alid) readsvariants.tsv.gz. The join returns None, as for a
table that predates the column, when no row has asource_alid. On a release whose
manifest records no lift,validate --sourcethen 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-densewrites each row's own ALID as itssource_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'ssource_alidand 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_alidcounts sourced rows from the sidecar on 0.3.0. -
ogdb rewrite-releasegains asource_alid_sidecarstep: it writes the sidecar
from the table'ssource_alidcolumn 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
comparessource_alidthroughvariants_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'ssource_alidas its shared row's
throughPanelVariantAxis, 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.sqliteholds onlycompletion_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.sqlitemetadatatable (thedenselayout blob,schema_version,
n_variants,n_analyses) andvariant_aliasesare gone.manifest.jsonis the
one record of the Dense layout. - The Top-Hit tiers store
zbut notabs_zorp_value(575 MB on OGS-00009). The
validator recomputes both fromz; 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_znow judges a Dense
grid's tiers as well as a sequence's, and theirp_valueas well as theirabs_z:
each must be what the tier'szimplies.abs_zmust agree within 1e-3, and
p_valuewithin 1e-3 relative, or within float64's smallest normal number where an
erfcflushed a subnormal p to 0.0. All 54 tiers of the 18 hosted 0.2 components
checked agree. Its finding now readsabs_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 tovariant_aliases. -
ogdb rewrite-releasedrops them in two steps,provenance_indexand
tier_stored_p, which leave them out of the copy. Before it writes anything it
refuses a source when:- its
index.sqliteholds a table other thanmetadata,variant_aliasesand
completion_quality; - its
variant_aliasesnames an rsID the rsID index lacks; - its
denseblob disagrees with its manifest; - it is Reference-Completed and its
index.sqlitehas nocompletion_quality; - a tier stores one of
abs_zandp_valuewithout the other; - a tier's stored
abs_zorp_valueis not what itszimplies; - a consolidated-metadata record describes a tier.
Its proof also asks about rsIDs no release names. A step now has an optional
refusehook, run before anything is staged, and an optionalrun. - its
-
ogdb build-dense-top-hitsandbuild-ragged-top-hitskeep a release's format.
A 0.2 release's rebuilt tiers still storeabs_zandp_value, recomputed fromz;
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/holdsmanifest.json,
data.zarr/,dense_to_shared.npyand, Reference-Completed,index.sqlite. It no
longer carriesvariants.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.tsvoroverview.html. Each is the shared one's rows again, and on a
completed release the copy had lost rsIDs and everysource_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 itshm3Indexed 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 then_missing_se_out_of_rangecolumn a
0.2.2 source lacks. OGS-00011's comparison, both sides read by this package, left out
the one broadrange_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, itsvariant_axis()is the shared axis in its panel rows
(opengwasdb.store_reader.panel_axis.PanelVariantAxis), and itsanalyses_pathis
the Hybrid's.VariantAxis(<hybrid>/dense)on a 0.3.0 release raises
DenseComponentSharesAxisinstead of opening files that are not there, and a
dense/under a parentmanifest.jsonthat 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_alidthe shared table keeps (#481).range_phewaswas the last query still
reading the copy, by position;phewasandlookuphad 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, bothrange_phewasincluded, and every probe. -
The Dense Component's own
n_missing_se_out_of_rangeis gone with
dense/analyses.tsv. The Hybrid'sanalyses.tsvcounts 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-viewaccounts 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_partitionrule has nothing to compare on 0.3.0. -
ogdb rewrite-releasedrops the copies in a new step,dense_shared_axis, and
refuses, before anything is written, a source whosedense_to_shared.npydoes 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 orsource_alid. -
ogdb rewrite-releasecarries an Indexed Variant Subset to the new release. A new
step,indexed_subsets, records the newrelease_idandformat_versionin each
subset, which holds the same cells of the new release (ADR 0061); before, every
rewritten release with a subset failedsubsets.indexed. It refuses a source whose
subset already names another release. The proof asks each subset the spread Analyses. -
Validation.
hybrid.dense_to_sharedreports a row out of range, a row named
twice and a descending pair each by itself;hybrid.coveragefails 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 theanalyses.*
table rules judge a 0.3.0 Hybrid's ownanalyses.tsv. -
Reading a missing Variant Table raises
FileNotFoundErrorinstead of crashing the
process inside pysam. -
An unknown
analysis_idis refused on every query that names one (issue #474).
analysis()(with or without an Indexed Variant Subset),lookup(),rho(),
rho_row()andrho_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, astop_hits()already did (#483); alookup()naming one
unknown Analysis among known ones raises too.opengwasdb query-analysisand
query-lookupprint the error and exit 1. The error carriesanalysis_id;
UnstoredThresholdErrorcarriesthresholdandstored, and a chromosome no ALID can
spell raisesUnsupportedChromosome(aVariantNormalisationError) carrying
chromosome, so a caller reads the values without parsing the message. -
A Dense or Hybrid release answers
top_hitsat a stored tier only, and an
unknownanalysis_idraises (#483). A Dense or Hybrid release returned no
rows, without an error, for athresholdit stores no tier for, and every layout
(Ragged too) returned nothing for ananalysis_idit 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(aValueError)
naming the threshold and the stored tiers, andopengwasdb 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 unknownanalysis_idraises
opengwasdb.store_reader.analyses.UnknownAnalysisError(aValueError) 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'slimitis applied to each component.phewasand
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_digestsasks 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, soogdb rewrite-releasecompares them between the source and the
rewritten release.pixi run -e dev contract-checkregenerates the bundle and fails on
any difference.list_indexed_subsets,indexed_subset_namespace_pathand
is_valid_indexed_subset_nameare the Store Reader's (opengwasdb.store_reader.indexed). -
The query facade answers variant-only reads (issue #484).
variant_count(),
variants(identifiers)andvariants_in_range(chromosome, start, end)return the
variant count, and thevariants_table()rows for rsIDs or ALIDs and for a range, on
every layout and every readable format version, through the Variant Axislookup
andrange_phewasuse. They need novariants_table()over every variant, and on 0.3.0
read novariants.tsv.gzand 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, andopen_storeno longer importspysamorsqlite3(issue #465, epic #450). The tabix handle and thevariant_aliasesconnection 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'svariant_aliases. Afterclose()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, sqlite3takes 50 ms and opening the tabix handle 43 ms, neither now paid by a query that does not need the table (sqlite3.connectis 0.2 ms); a process that opens OGS-00009 and runs one 10-variant by 100-Analysislookuptakes 2,242 ms (2,166–2,286) against 2,398 ms (2,358–2,492) before. The store-comparison harness'srandom_lookupshapes andphewasare unchanged (it opens a release once);benchmarks/benchmark_process_start.pymeasures the per-process cost.
On Ragged and Hybrid releases,lookupby 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, thevariant_aliasesfallback still returns one row, the lowest.) -
A 0.3.0 release answers
range_phewasfrom 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
andvariant_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-releasegains aposition_sidecarstep, and its proof asks
range_phewasat 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'sprovenance.format_rewrite.range_questions_not_posedrecords them. -
New validation rule
variant_table.position_sidecar. It checks the sidecar against
the Variant Table and its own order.envelope.requiredandenvelope.closedname its
files from 0.3.0 only.variant_table.representativesstill 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 itsindex.sqliteitself any more: each asks the Store Reader by
what it wants (opengwasdb.store_reader.stored: a release's arrays, its
Association Sequence group, theeaf_baselineandse_coefficientsa
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). Theindex.sqlitereads the
validator makes are named reads inopengwasdb.index.release_index, beside
the 0.2.x Variant Table's, since the Store Reader may not import sqlite3;
every read of a release'sindex.sqlitenow 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.pyrefuses
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 nose_coefficientswith aHybridCompletionErrornaming it, where it
raised a bareKeyError.
Fixed
-
associations.se_infinite's warning no longer saysbeta = z * sereads as
infinity (issue #473). Since ADR 0104 a query readsbetaandpvalas NaN
where a release before format 0.2.3 stores+infSE beside a finite z; the
warning now says so, and that the stored values are that z and+inf. -
The Store Reader contract compares
pvalandlog10_pto 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
everypvalin the bundle's 9 releases on an exact comparison, and the resolved
log10_pof the lookup and range PheWAS in 6 of them.query_digestsnow keeps each
answer'spvalas numbers beside the digests rather than in them, as it already kept
log10_p.differences(..., rtol=CROSS_MACHINE_RTOL)andreadable_differencescompare
both by one rule, to within4 * 2**-52relative, NaN equal to NaN. The rewrite's proof,
which reads both sides in one build, still compares them exactly. -
fidelity.sourcepasses 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 andstatistics_swap, whatever the
source_alidjoin finds, and signs the source z as the Store does. The
chain is the one the release records inprovenance.chain_file(and
chain_sha256, where recorded): achain_filewith 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_alidthat the chain places nowhere, or on another row, fails the
check, naming the chain. Stored data is unchanged.