Repository navigation
Releases
Releases · opengwas/ogquery
v0.3.0
Added
- LD Stores:
ogquery.ldreads them, asopengwasdb.lddid, with no build code
(#2, ADR 0002).ogquery.ld.open(path_or_url)opens an LD Store, and
LDStore.matrix,region,proxiesandclumpanswer as opengwasdbc8ebe4ca's reader
answers, with the same results (LDMatrix,Proxies,Clumps,Variants) and refusals
(Refusal,RefusalReason,InputError); the LD Store format is unchanged. Three reads
ogdb-api needs are public (opengwas/ogld#79):LDStore.variants_in(chrom, start, stop), the
Variant Set in a range read before any r,LDStore.count_in, its length, and
LDStore.has(alids), one boolean per ALID. Reading over HTTP(S) needs the newhttpextra
(pip install 'ogquery[http]': fsspec and aiohttp); without it anhttp(s)://open raises
ogquery.opening.HttpExtraMissing, naming the extra, and local Stores read as before, on
Windows too (a local frame is a seek and a read where there is noos.pread). A
Genotype Store is refused, namingopengwasdb.ld.open;ogquery.ld.Readeris the protocol
its reader plugs into.ogquery.identitygainschromosome_rankandchromosome_sort_key,
andogquery.alidthe sorted-spelling reads (sorted_alid_locus,
spells_indel_reference_first,ReferenceFirstIndel,refuse_reference_first_indel), the
owners opengwasdb will re-export.import ogquery.ldloads no opengwasdb, pgenlib,
threadpoolctl, aiohttp, scipy or pysam, and leaves zarr's process-wide configuration at its
defaults: the one read-only open is nowogquery.opening.open_group, which sets nothing
(ogquery.arrays.open_groupre-exports it, and importingogquery.arraysstill configures the
GWAS read path as before).
v0.2.0
Added
- The Store Reader catches up with opengwasdb
c8ebe4ca: it reads the Clumps and
narrowed_range_questionbounds the conversion proof's range question
(#4).ogquery.top_hitsgains the Clumps names (CLUMPS_*,
TierClumps,MalformedClumps,declares_clumps_of,TopHitTier.clumps,
TopHitTiers.by_key/keys), andStoreManifest.clumpsandStoreRelease.top_hit_tiers
carry the manifest's declaration to them; aclumps/group the manifest does not declare,
a declaration with no group, or a group not laid out as spec §18.1 says is refused as
MalformedClumps, never read.ogquery.digestsgainsRANGE_ROWS_ASKED,
RANGE_CELLS_ASKED,narrowed_range_questionandadapter_name. Both come from
opengwasdb#418 (Clumps) and opengwasdb#492 (rewrite-release --convert-legacy); the
contract bundle's bytes are unchanged andSOURCEnow namesc8ebe4ca, as ADR 0001's
ordering rule for changes made before opengwasdb#475 says.
Fixed
TopHitTier.clumpsrefuses aclumpsarray, aleadgroup and a scalarleadas
MalformedClumps, by name, where it raisedAttributeErrororIndexError
(#4). Format spec §18.1 says aclumps/group not laid out as it
describes is refused asMalformedClumps. The fix is ogquery's only: opengwasdb's in-tree
copy is deleted by opengwasdb#475, which re-exports this module.
v0.1.0
Added
- ogquery 0.1.0: opengwasdb's Store Reader as its own package, on Linux, macOS
and Windows (#1, ADR 0001).pip install ogqueryinstalls
numpy (2.0 or later), zarr (3.4 or later) and numcodecs (0.17 or later) and
nothing else, all as wheels, on Python 3.12 to 3.14. The modules are
opengwasdb.store_reader's, by the same names (ogquery.release.open_release,
ogquery.facade.query_release, ...),opengwasdb.store.query_digestsis
ogquery.digests, and the package carriespy.typed. It reads format 0.3.0
Store Releases alone and answers the Store Reader contract bundle, opengwasdb
69c29452's, on all three operating systems. A 0.2.x or 0.1.0 release needs a
reader for its Store Variant Table,open_release(path, legacy=...), as
opengwasdb passes; without one it is refused withVariantTableReaderRequired,
which names itsformat_versionand the way to 0.3.0:ogdb rewrite-release
for a 0.2.3 release, a rebuild from source for an earlier one. Closing a
facade (or leaving itswithblock) releases every memory map of the
release's sidecars, so on Windows its files can then be replaced or deleted;
a read through a closed facade raisesReaderClosed.