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.2.0.tar.gz (12.7 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.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: just_dna_compiler-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 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.2.0.tar.gz
Algorithm Hash digest
SHA256 cacb3c58b006e2d94cb7dd3fa95c1c5243c0ef09d5398eb857e528ecc4cd9680
MD5 2df53ac11d3f3ed34b6e4477a07d9521
BLAKE2b-256 cd91f676c6e7eb3253af0e176db068a9769a6071f7c20087f657360583d111ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: just_dna_compiler-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25767e6ffde188cb7b57153fa472a27c76e05facc4f63d7df2a0352864cadae9
MD5 73f1a237e6bec8e6bc987851f392de68
BLAKE2b-256 ea34cdc89c065a41972fe29943828c906064e3da479add41ab0862c4521693b5

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