Skip to content
Back to skills

Variant Datasets

ASecurity

"Use Hail VariantDataset sparse sequencing workflows: read, filter,

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
developmentgoapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill variant-datasets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Variant Datasets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Variant Datasets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-variant-datasets/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-variant-datasets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: variant-datasets
description: "Use Hail VariantDataset sparse sequencing workflows: read, filter,
  QC, combine GVCFs, convert VDS representations, and reason about local alleles
  and reference blocks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Hail Variant Datasets

Use this sub-skill when a task mentions `hail.vds`, `VariantDataset`, VDS, sparse sequencing data, GVCF combining, local allele fields (`LGT`, `LA`, `LAD`, `LPL`, `LPGT`), reference blocks (`END` or `LEN`), `to_dense_mt`, `to_merged_sparse_mt`, `interval_coverage`, or VDS-native `sample_qc`.

## Route First

- Use `references/vds-workflows.md` to choose between component matrices, dense conversion, merged sparse conversion, sample QC, interval coverage, filtering, split-multi, and GVCF combiner recipes.
- Use `references/api-reference.md` for concise `hail.vds` signatures, parameter notes, component field semantics, and combiner API details.
- Use `references/troubleshooting.md` for local allele mistakes, reference block `END`/`LEN` issues, component mismatch, combiner resume/save failures, interval/reference mismatch, and dense conversion surprises.
- Start new runnable examples from `scripts/vds_recipe_template.py`; it is a self-contained helper that defaults to dry-run/template output and does not depend on repository fixtures.

## Scope Boundaries

- Stay here for `hl.vds.VariantDataset`, `hl.vds.read_vds`, `hl.vds.filter_samples`, `hl.vds.filter_variants`, `hl.vds.filter_intervals`, `hl.vds.filter_chromosomes`, `hl.vds.sample_qc`, `hl.vds.split_multi`, `hl.vds.interval_coverage`, `hl.vds.to_dense_mt`, `hl.vds.to_merged_sparse_mt`, `hl.vds.new_combiner`, and `hl.vds.load_combiner`.
- Route ordinary dense `MatrixTable` GWAS, VCF/PLINK/BGEN analysis, row/column/entry transformations, and dense QC after VDS conversion to `../genomics-analysis/SKILL.md`.
- Route backend sizing, `hl.init`, Spark/local/Batch backend selection, cloud filesystem credentials, requester-pays, and cluster planning to `../setup-and-backends/SKILL.md`.
- Route `hailctl`, Hail Batch DAG orchestration, Batch Service jobs, and CLI monitoring to `../batch-and-cli/SKILL.md` unless the task is specifically about VDS API calls.

## Default Mental Model

A `hl.vds.VariantDataset` is a wrapper around two sparse component `MatrixTable`s, not a single `MatrixTable`:

- `vds.reference_data` is keyed by `locus`, has the sample column key, and stores reference blocks. Each entry covers `locus.position` through inclusive `END`, or equivalent `LEN`; calls are implicitly homozygous reference.
- `vds.variant_data` is keyed by `locus, alleles`, has the same sample columns, and stores sparse non-reference or variant rows. Entries commonly use local allele fields such as `LA`, `LGT`, `LAD`, `LPL`, and `LPGT`.

Choose representation deliberately: use components for sparse variant or coverage work, use `hl.vds.sample_qc` and `hl.vds.interval_coverage` before considering densification, use `hl.vds.to_dense_mt(vds)` only for downstream dense-only methods, and use `hl.vds.to_merged_sparse_mt(vds)` when a single sparse `MatrixTable` is needed.

Files in this skill

  • SKILL.md3.1 KB
  • references/api-reference.md10.6 KB
  • references/troubleshooting.md10.4 KB
  • references/vds-workflows.md12 KB
  • scripts/vds_recipe_template.py13.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.