Skip to content

What's new in 0.10

Altar 0.10 promotes all 17 workspace distributions (altar, altar-identity, and 15 model and source bindings) to 4 - Beta and introduces DataFrame-oriented Python helpers, a local DuckDBScoreStore, single-scan BigQuery WarehouseExportSession exports, typed cross-model reducers, declarative LineageEquivalence, and a unified AltarError hierarchy.

Python DataFrame API and local stores

  • One-call variant scoring (score_variants, score_variants_sync): Accepts a list of chr:pos:ref:alt strings, a pandas.DataFrame or pyarrow.Table, or a VCF/TSV path; prepares cache misses, runs the model, persists rows when a store is supplied, and returns a tidy pandas.DataFrame.
  • DataFrame annotation lookups (fetch_annotations_df, annotations_to_dataframe): Queries multiple AnnotationSource instances concurrently and returns a merged DataFrame with declared column ordering.
  • Local analytical store (DuckDBScoreStore): File-backed or in-memory analytical store registered under type = "duckdb" (and importable from altar.results), alongside SqliteScoreStore and BigQueryScoreStore. Stores accept native pandas.DataFrame and pyarrow.Table batches directly.
  • Single-pass FASTA and file helpers: ReferenceGenomeRunInputs.from_fasta computes or reuses verification digests in one pass, and ResourceReference.from_file constructs content-addressed resource references directly from local files.
  • Root exception hierarchy (AltarError): Every Altar domain error subclasses altar.AltarError.

Exports and BigQuery warehouse sessions

Export formats and single-scan warehouse sessions in Altar 0.10. Export formats and single-scan warehouse sessions in Altar 0.10.
  • Single-scan WarehouseExportSession with resume_key: BigQueryScoreStore.warehouse_export(...) stages job annotations and clustered model rows once across export_wide_tsv, export_wide_parquet, export_long_dataset, export_prioritized_ndjson, and export_augmentation_buckets. Passing resume_key retains completed staged tables for 24 hours so retries skip re-scanning base tables (session.resumed).
  • Server-side wide TSV up to 10,000 columns: export_wide_tsv pre-pivots <=2,000-column model slices server-side in BigQuery whenever inline SQL would exceed BigQuery's query-text limit, keeping exports up to BigQuery's 10,000-column table ceiling 100% server-side and composing shards in parallel via Storage.compose_gzip_files. Layouts exceeding 10,000 columns raise WideExportColumnLimitExceeded unless allow_bucket_fallback=True is passed.
  • Striped wide Parquet (altar-wide/1): export_wide_parquet and render_wide_dataset write chromosome-partitioned variants/ plus 4,000-column stripes/ Parquet files for multi-thousand-model cohorts, readable as one lazy table through open_wide_dataset.
  • Unified long datasets (altar-long/1): export_long_dataset writes per-schema scores/ Parquet partitions and an optional deduplicated variants/ partition across one or multiple stores (stores=).
  • Compact lineage provenance: Wide TSV/Parquet and prioritized NDJSON omit per-cell <prefix>_score_lineage_id columns by default (include_lineage_ids=True opts in) and record per-model accepted_lineage_ids and exact observed_lineage_counts in _models.json and dataset manifests.
  • Typed CrossModelReducer summaries: TopModel, MaxAbs, and CountWhere compile into single-pass SQL reductions on BigQuery and run identically in Python on local stores.
  • Lean and selective v2 augmentation buckets: render_augmentation_buckets supports include_model_scores=False | True | Sequence[str] for write_augmented_vcf.

Declarative lineage equivalence

  • LineageEquivalence: Model bindings declare compatible container image digests or service versions (runtime_classes), retired images (delisted_runtimes), compatible binding versions (equivalent_plugin_versions), and newly added default configuration fields (defaulted_configuration_fields).
  • Display-label stability: Non-scientific ScoreColumn.label edits no longer change ScoreLineage.same_lineage. See Score reuse and lineage.

Broader genome, FASTA, and runtime support

  • Ensembl FASTAs and non-human contigs: Variant ingestion, left-alignment, and model runtimes resolve Ensembl numeric contig headers (>1, >X), lowercase VCF/TSV alleles, and non-human nuclear contigs (chr1..99, chrW/Z, Drosophila, yeast), reusing <fasta>.fai indices when present.
  • 1-based variant validation (altar-validate-v3): validate_variant validates 1-based VCF and VariantKey positions directly.
  • Binding and backend additions: build_multi_fold_scoring_plan in altar.models, altar-sei-resources, generalized altar-chrombpnet-resources, e2g_atlas annotation-source registration, SqlDialect.SQLITE predicate compilation, Modal task cancellation (CancelsTasks), and Kubernetes RFC-1123 label sanitization.

For complete release-by-release notes, see CHANGELOG.md.