genome-variant-filtering
Filter raw variant calls using GATK VQSR, GATK hard filters, or bcftools expression-based filtering.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- genome-variant-filtering
- description
- Filter raw variant calls using GATK VQSR, GATK hard filters, or bcftools expression-based filtering.
02 资源文件 9
- 参考文档agents/claude.yaml312 B
- 参考文档agents/openai.yaml313 B
- 参考文档agents/README.md322 B
- 资产文件assets/.gitkeep—
- 参考文档config.yaml283 B
- 参考文档references/gatk-vqsr-filters.md5.4 KB
- 参考文档references/README.md68 B
- 脚本scripts/batch_run.sh4.6 KB
- 脚本scripts/run.sh10.6 KB
03 SKILL.md 正文
Skill: genome-variant-filtering
Use When
- User wants to filter a raw VCF to remove low-confidence variants.
- User needs to apply GATK best-practice hard filters or VQSR.
- User wants to use custom bcftools filter expressions.
- User needs to separate SNPs from indels for different filter strategies.
Inputs
- Required:
- Raw VCF file (
.vcf.gz). - Reference FASTA (for GATK operations).
- Raw VCF file (
- Optional:
- Filter strategy:
vqsr,hard, orbcftools(default:hard). - Resource VCFs for VQSR: HapMap, Omni, 1000 Genomes, dbSNP.
- Custom filter expressions (for bcftools mode).
- Truth sensitivity level for VQSR (default: 99.5 for SNPs, 99.0 for indels).
- Filter strategy:
Workflow
- If hard-filter: split VCF into SNPs and indels with
gatk SelectVariants. - Apply GATK recommended hard filters:
- SNPs:
QD < 2.0,FS > 60.0,MQ < 40.0,MQRankSum < -12.5,ReadPosRankSum < -8.0. - Indels:
QD < 2.0,FS > 200.0,ReadPosRankSum < -20.0.
- SNPs:
- If VQSR: run
gatk VariantRecalibrator+gatk ApplyVQSRfor SNPs then indels with resource annotations. - If bcftools: apply user-provided filter expressions via
bcftools filter. - Merge filtered SNPs and indels back into a single VCF.
- Index the output VCF.
- Report: variants before and after filtering, pass rate, filter category breakdown.
Output Contract
- Filtered VCF file (
.vcf.gz). - Filter summary statistics: total variants, PASS count, filtered count by category.
Limits
- VQSR requires a sufficiently large call set to train the model (at least ~30 exomes or 1 WGS); use hard filters for small sample sets.
- Resource VCFs must match the reference genome build (e.g., GRCh38).
- GATK is required for VQSR and hard-filter modes; bcftools mode only requires bcftools.
- Hard filters are recommended when VQSR training data is insufficient.
- Common failure cases:
- VQSR failing due to too few variants in the training set for model convergence.
- Resource VCFs on a different genome build than the input VCF (e.g., GRCh37 vs GRCh38).
- bcftools filter expression syntax errors causing silent empty output.
04 同仓库更多 Skills
structured-intelligence-skill-creator
Create or update repository skills that conform to local templates, provider metadata requirements, registry rules, and validation workflows.
stat-survival-analysis
Estimate and compare survival functions using Kaplan-Meier curves and log-rank test, with optional Cox proportional hazards regression.
stat-pca
Perform PCA on a numeric data matrix to reduce dimensionality, visualize sample structure, and identify top contributing features.
stat-pairwise-correlation
Compute pairwise correlations and significance tests across all numeric variables, and produce a correlation heatmap.
stat-nonlinear-embedding
Embed high-dimensional data into 2D using t-SNE or UMAP for exploratory visualization of sample or cell relationships.
stat-logistic-regression
Fit a logistic regression model for binary outcomes, report odds ratios and model performance (AUC-ROC, confusion matrix).