Skip to main content

Reference compiler for just-dna annotation modules: spec directory → parquet artifact + manifest

Project description

just-dna-compiler

The reference compiler for just-dna annotation modules: it turns an authored spec directory (module_spec.yaml + variants.csv + studies.csv) into the deployable three-parquet artifact (weights / annotations / studies) plus a manifest.json with integrity digests.

It consumes the schema/contract from just-dna-format and is the shared transform called by both just-dna-pipelines (local compile) and just-dna-marketplace (server-side recompile on publish).

from just_dna_compiler.compiler import validate_spec, compile_module

validate_spec(spec_dir)                       # -> ValidationResult (genes/categories lists)
compile_module(spec_dir, out_dir,             # -> CompilationResult (+ manifest.json written)
               resolve_with_ensembl=False,    # inject an Ensembl DuckDB/parquet dir to resolve
               compiled_by="marketplace-server")

Dependencies: just-dna-format, polars, duckdb, pyyaml — deliberately no Dagster / LLM SDKs. The Ensembl reference is injected by the caller (a .duckdb file or a parquet dir); this package never downloads it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

just_dna_compiler-0.3.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

just_dna_compiler-0.3.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file just_dna_compiler-0.3.0.tar.gz.

File metadata

  • Download URL: just_dna_compiler-0.3.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for just_dna_compiler-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6dea45cbf1898eb0a0a519ac62d9646bc254477acc760837eba8d9fcca7707ee
MD5 ef1cc15d9d30f6f72c5da23be52fa881
BLAKE2b-256 2b0a128dc3e875c370c80fccd225948356b91f13844d8769822635078331b553

See more details on using hashes here.

File details

Details for the file just_dna_compiler-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: just_dna_compiler-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for just_dna_compiler-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b774593ec86feb873feca3c77868275b33196d4739975958b7196f9c8e2845c
MD5 d678d881234cef4f14c86b341e49a63f
BLAKE2b-256 4a1bd417c42a0bcb688f8b81339bfcd037402db5fa8d90c16f9bd3272c209218

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page