variant-datasets
Use Hail VariantDataset sparse sequencing workflows: read, filter, QC, combine GVCFs, convert VDS representations, and reason about local alleles and reference blocks.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- variant-datasets
- license
- MIT
- metadata
- { "disco-role": "operating" }
- 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
02 资源文件 4
- 参考文档references/api-reference.md10.6 KB
- 参考文档references/troubleshooting.md10.4 KB
- 参考文档references/vds-workflows.md12.0 KB
- 脚本scripts/vds_recipe_template.py13.3 KB
03 SKILL.md 正文
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.mdto choose between component matrices, dense conversion, merged sparse conversion, sample QC, interval coverage, filtering, split-multi, and GVCF combiner recipes. - Use
references/api-reference.mdfor concisehail.vdssignatures, parameter notes, component field semantics, and combiner API details. - Use
references/troubleshooting.mdfor local allele mistakes, reference blockEND/LENissues, 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, andhl.vds.load_combiner. - Route ordinary dense
MatrixTableGWAS, 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.mdunless the task is specifically about VDS API calls.
Default Mental Model
A hl.vds.VariantDataset is a wrapper around two sparse component MatrixTables, not a single MatrixTable:
vds.reference_datais keyed bylocus, has the sample column key, and stores reference blocks. Each entry coverslocus.positionthrough inclusiveEND, or equivalentLEN; calls are implicitly homozygous reference.vds.variant_datais keyed bylocus, alleles, has the same sample columns, and stores sparse non-reference or variant rows. Entries commonly use local allele fields such asLA,LGT,LAD,LPL, andLPGT.
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.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).