Repository navigation
v0.16.0
Added
-
The LD engine is part of the package, as
opengwasdb.ld(issue #455, epic
#453). ogld'smainat147f54d(its v0.8.0 plus the Pan-UKB import code) moved
in with its history: the LD Store and Genotype Store format, build,
validation and queries (opengwasdb.ld.open,matrix,region,proxies,
clump,build,validate). Its ADRs are 0087–0101 and its specs are in
docs/spec/(ld-store.md,build-inputs.md,genotype-store.md,
partner-rows.md).fsspecandaiohttpare now runtime dependencies, so an
LD Store opens over HTTP(S). Building needs the newld-buildextra
(pgenlibalone), and importing a producer's LD the newld-importextra
(lz4alone);threadpoolctlandpyliftover, which ogld's extras also
carried, were already this package's own dependencies. Thedevextra now
carries what the LD tests need (pgenlib,lz4,hypothesis,
pytest-timeout). The LD Store format is unchanged: a Store still records
software.ogld, now with this package's version, until the next LD Store
format version. Theopengwasdb ldcommands and the shared variant identity
follow in #456 and #457. -
pytest runs with
--strict-markers, for the engine's tests as well as the LD
tests (issue #455). A misspelt mark is now a collection error rather than a test
that runs in no tier. A test markedrealdataoracceptance(the LD tiers that
read the IEU nodes' panels) is deselected unless the run's-masks for it:
tests/conftest.pydoes that, not anaddopts-m(#459). No engine test
carries either mark; ogld's 5 s per-test timeout and strict xfail apply to
tests/ld/only. -
opengwasdb ld build | import | validate | info | derive-partners, and the
OPENGWASDB_LD_*environment variables (issue #457). The LD Store commands
that wereogld …are a sub-app of the engine CLI, with the same options,
required inputs and exit codes (0 done, 1 the store breaks a rule, 2 a
refusal), messages nowopengwasdb ld <command>: <problem>. An option left
out takes the defaultBuildInputsandImportInputsdeclare. The one change
to a command line:derive-partners --chromosomesis repeated once per
chromosome rather than taking several values. The scripts' and tests'OGLD_*
variables areOPENGWASDB_LD_*; one reader refuses, naming the new name, any
old variable that is still set rather than let its default apply in silence.
Changed
-
opengwasdb.variantsowns both ALID spellings, and an LD Store lookup
refuses an indel ALID spelt reference first (issue #456). The LD
package's own copy of the engine's identity rules,opengwasdb.ld.identity,
is gone. LD Stores still spell every pair sorted, an indel's too (ADR 0079
§5; their format does not move until #462), and now form that spelling with
the engine's own code:opengwasdb.variants.sorted_spelling
(sorted_identity,SortedIdentity,sorted_alid_locus,
resolve_sorted_reversed_indels), judged byorient_to_canonicaland
spelt bysorted_alid_alleles.opengwasdb.variants.normalisegains
AUTOSOMES,CANONICAL_CHROMOSOMESandchromosome_rank, which raises
VariantNormalisationErrorfor a label off1–22,X,Y,MTwhere
the LD copy raisedKeyError. Refusals are the engine's
VariantNormalisationErrorfamily in place ofIdentityError:
chromosome_missingandallele_invalidkeep their typed classes and
reasons, and two records that are not one site's split raise
DuplicateRecord(reasonduplicate_record). The rest (an unsupported
chromosome number, a bad position, identical alleles) had reason"". They
now arrive as a bareVariantNormalisationError, which has no.reason
attribute. An LD Store reader given a deletion's reference-first ALID, such
as1:827587:GGGGCC:G, used to answer Absent, as if the panel lacked the
variant. It now raisesReferenceFirstIndel, andogldexits 2. The
message names the sorted ALID the Store would hold it under
(1:827587:G:GGGGCC), says that row is the deletion unless the panel also
has the insertion there, and that r there is signed against the other
allele (#462). One case stays silent: an insertion's reference-first ALID is
also a sorted ALID, so at a tandem repeat where the Store holds only the
deletion of the same two alleles, it finds the deletion's row. The Store
records no REF to tell them apart (recorded on #462). Every other lookup
answers as before, and the Test Store's Variant Set is unchanged row for
row. -
The LD engine's ADRs, specs and glossary now speak as opengwasdb's
(issue #458, epic #453). ADRs 0087–0101 each say which ogld ADR they were; every
ADR 00NN,spec §Nandbuild inputs §Ninopengwasdb/ld/,tests/ld/,
scripts/ld/and the LD docs names the new ADR number or spec file (except the
provenance strings a committed Store records, which keep ogld's numbers); and
CONTEXT.mdgains an LD Stores section.Variant Identitynow says what the
code does (no left alignment; indels reference-first in GWAS Stores, sorted in LD
Stores until #462),ALID Search Indexis a defined term, and
CONTRIBUTING.mddocuments the LD test tiers. Error messages that citedspec §Nnow
citeld-store §Norpartner-rows §N, and ones that cited a bare ogld issue#Ncite
opengwas/ogld#N. Prose that named theogldpackage, CLI or extras namesopengwasdb.ld,opengwasdb ldandopengwasdb[ld-build].
Internal
- The LD tests are an
ldarea, and the LD packages are components (issue #459,
epic #453). Every test undertests/ld/carries theldmark, so-m ldruns
opengwasdb.ld's suite and-m "not ld"the engine's; the two add up to the
default run. The default no longer leavesrealdataandacceptanceout
through anaddopts-m, which any-mon the command line replaced (-m ld
brought the HGDP+1kGP tier back):tests/conftest.pydeselects a tier unless
the run's-mneeds it (-m realdata,-m acceptance).docs/architecture/components.yamlsplitsldinto
seven components on the engine's layers, and a newindependentlist keeps
ld-buildandld-queryfrom importing each other, which the layer order
cannot say. The request-lifetime BLAS test now asserts every BLAS pool is held
at the cap, so it passes underpip install -e .[dev], where numpy and scipy
each carry an OpenBLAS.