技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
variant-datasets【数据与研究】Use Hail VariantDataset sparse sequencing workflows: read, filter, QC, combine GVCFs, convert VDS representations, and reason about local alleles and reference blocks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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.
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.references/api-reference.md for concise hail.vds signatures, parameter notes, component field semantics, and combiner API details.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.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.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.MatrixTable GWAS, VCF/PLINK/BGEN analysis, row/column/entry transformations, and dense QC after VDS conversion to ../genomics-analysis/SKILL.md.hl.init, Spark/local/Batch backend selection, cloud filesystem credentials, requester-pays, and cluster planning to ../setup-and-backends/SKILL.md.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.A hl.vds.VariantDataset is a wrapper around two sparse component MatrixTables, 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.