just_dna_compiler.compiler¶
just_dna_compiler.compiler ¶
Module spec compiler: validates a spec directory and compiles it to a composed multi-parquet
artifact plus a manifest.json. A module composes from optional table kinds (RM2): the three-parquet
SNP core (weights, annotations, studies) when it carries variants, plus one parquet per 0.4 table
kind it includes (diplotypes, pharm_variants, pgs, the binning kinds, …). ARTIFACT_PARQUETS is the
roster and len(ARTIFACT_PARQUETS) the count — stated that way rather than spelled, because this
sentence carried a spelled-out figure for two releases while the tuple grew past it (RM218).
Public API
validate_spec(spec_dir) -> ValidationResult compile_module(spec_dir, output_dir, ...) -> CompilationResult (emits manifest.json) reverse_module(parquet_dir, output_dir, ...) -> Path
The DSL/manifest schema comes from just-dna-format; this package is the transform between them.
RM260: this __init__ is the re-export shell that keeps every dotted path into the old single-file
compiler.py resolving to the same object. The code lives in the submodules beside it; the shell is
removed at 1.0.