Skip to content

Releases

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 18:18
63e759b

Added

  • LD Stores: ogquery.ld reads them, as opengwasdb.ld did, with no build code
    (#2, ADR 0002).
    ogquery.ld.open(path_or_url) opens an LD Store, and
    LDStore.matrix, region, proxies and clump answer as opengwasdb c8ebe4ca'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 new http extra
    (pip install 'ogquery[http]': fsspec and aiohttp); without it an http(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 no os.pread). A
    Genotype Store is refused, naming opengwasdb.ld.open; ogquery.ld.Reader is the protocol
    its reader plugs into. ogquery.identity gains chromosome_rank and chromosome_sort_key,
    and ogquery.alid the sorted-spelling reads (sorted_alid_locus,
    spells_indel_reference_first, ReferenceFirstIndel, refuse_reference_first_indel), the
    owners opengwasdb will re-export. import ogquery.ld loads no opengwasdb, pgenlib,
    threadpoolctl, aiohttp, scipy or pysam, and leaves zarr's process-wide configuration at its
    defaults: the one read-only open is now ogquery.opening.open_group, which sets nothing
    (ogquery.arrays.open_group re-exports it, and importing ogquery.arrays still configures the
    GWAS read path as before).

Merged in #6: #6

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 17:04
7b1a88d

Added

  • The Store Reader catches up with opengwasdb c8ebe4ca: it reads the Clumps and
    narrowed_range_question bounds the conversion proof's range question
    (#4).
    ogquery.top_hits gains the Clumps names (CLUMPS_*,
    TierClumps, MalformedClumps, declares_clumps_of, TopHitTier.clumps,
    TopHitTiers.by_key/keys), and StoreManifest.clumps and StoreRelease.top_hit_tiers
    carry the manifest's declaration to them; a clumps/ 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.digests gains RANGE_ROWS_ASKED,
    RANGE_CELLS_ASKED, narrowed_range_question and adapter_name. Both come from
    opengwasdb#418 (Clumps) and opengwasdb#492 (rewrite-release --convert-legacy); the
    contract bundle's bytes are unchanged and SOURCE now names c8ebe4ca, as ADR 0001's
    ordering rule for changes made before opengwasdb#475 says.

Fixed

  • TopHitTier.clumps refuses a clumps array, a lead group and a scalar lead as
    MalformedClumps, by name, where it raised AttributeError or IndexError
    (#4).
    Format spec §18.1 says a clumps/ group not laid out as it
    describes is refused as MalformedClumps. The fix is ogquery's only: opengwasdb's in-tree
    copy is deleted by opengwasdb#475, which re-exports this module.

Merged in #5: #5

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 25 Nov 01:34
f95f4ab

Added

  • ogquery 0.1.0: opengwasdb's Store Reader as its own package, on Linux, macOS
    and Windows (#1, ADR 0001).
    pip install ogquery installs
    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_digests is
    ogquery.digests, and the package carries py.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 with VariantTableReaderRequired,
    which names its format_version and 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 its with block) 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 raises ReaderClosed.

Merged in #3: #3