[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EG82A68JFQP7QHBZSTN884":3,"skill-same:01M7EG82A68JFQP7QHBZSTN884":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EG82A68JFQP7QHBZSTN884","bio-variant-calling-filtering-best-practices",null,"Filters germline and somatic variant callsets at the site and genotype level with GATK VQSR (VQSLOD, truth-sensitivity tranches), VETS\u002FScoreVariantAnnotations, NVScoreVariants, hard filters with per-annotation thresholds, and bcftools\u002Fcyvcf2 expressions, plus Ti\u002FTv-based QC. Use when deciding between VQSR, hard filtering, and ML recalibration by cohort size and platform, setting SNP vs indel thresholds, replicating the missing-annotation-passes rule so hom-alt sites survive, applying genotype-level GQ\u002FDP filters, or validating filter impact. Not for VCF normalization (see variant-calling\u002Fvariant-normalization) or summary statistics (see variant-calling\u002Fvcf-statistics).","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-variant-calling-filtering-best-practices\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-variant-calling-filtering-best-practices\ndescription: Filters germline and somatic variant callsets at the site and genotype level with GATK VQSR (VQSLOD, truth-sensitivity tranches), VETS\u002FScoreVariantAnnotations, NVScoreVariants, hard filters with per-annotation thresholds, and bcftools\u002Fcyvcf2 expressions, plus Ti\u002FTv-based QC. Use when deciding between VQSR, hard filtering, and ML recalibration by cohort size and platform, setting SNP vs indel thresholds, replicating the missing-annotation-passes rule so hom-alt sites survive, applying genotype-level GQ\u002FDP filters, or validating filter impact. Not for VCF normalization (see variant-calling\u002Fvariant-normalization) or summary statistics (see variant-calling\u002Fvcf-statistics).\ntool_type: mixed\nprimary_tool: bcftools\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"variant-calling\u002Ffiltering-best-practices\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: GATK 4.6+, bcftools 1.19+, cyvcf2 0.30+\n\nNote: CNNScoreVariants is deprecated as of GATK 4.6.1.0 (replaced by NVScoreVariants, a PyTorch drop-in); VETS (ExtractVariantAnnotations\u002FTrainVariantAnnotationsModel\u002FScoreVariantAnnotations) is BETA. Confirm tool availability with `gatk --list` on the installed build before scripting a pipeline.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Variant Filtering Best Practices\n\n**\"Filter my variant calls\"** -> Flag or remove low-quality variant sites, and separately null out untrustworthy per-sample genotypes, using a model matched to cohort size, platform, and organism.\n- CLI: GATK VariantRecalibrator\u002FApplyVQSR (large cohorts), VariantFiltration (hard filters), ScoreVariantAnnotations (VETS), NVScoreVariants (single-sample DL); bcftools filter\u002Fview\n- Python: cyvcf2 for custom per-variant logic\n\n## The governing principle\n\nFiltering decides WHICH errors a callset keeps, not whether they exist. The two site-level paradigms fail in OPPOSITE regimes: VQSR (a ratio of two learned Gaussian-mixture densities over annotation space) collapses on small or exome cohorts; static hard thresholds discard real variants at scale. Two rules follow. First, site-level filtering (\"is this SITE real?\") and genotype-level filtering (\"is this SAMPLE's genotype trustworthy?\") are orthogonal -- both are needed, site first. Second, SNPs and indels have different error processes (base-calling\u002Fstrand vs alignment-ambiguity-in-repeats) and different truth resources, so they are ALWAYS filtered separately then merged. None of these mistakes throws an error: the VCF stays structurally valid while the numbers are silently wrong.\n\n## Site-Level Filter Method Selection\n\nSomatic data is a separate track: use GATK FilterMutectCalls, never VQSR or germline hard filters (the annotations and error model differ).\n\n| Method | Best when | Fails when |\n|--------|-----------|------------|\n| Hard filters (VariantFiltration) | Single sample, exome, targeted panel, non-model organism, or any callset lacking truth resources | Precision-critical work at scale -- static cutoffs leave real variants on the table |\n| VQSR (VariantRecalibrator\u002FApplyVQSR) | Human, a single deep WGS OR ~30+ jointly-genotyped exomes, HapMap\u002FOmni\u002FMills truth sets available | A single exome\u002Fpanel (too few variants): the GMM is non-identifiable and VQSLOD is noise |\n| Allele-specific VQSR (`-AS`, `AS_*` annotations) | Very large cohorts (biobank\u002FgnomAD scale) where one bad allele at a multiallelic must not sink the site | Small cohorts; adds nothing over site-level VQSR |\n| VETS (ScoreVariantAnnotations, BETA) | Modern GATK replacement for VQSR; scikit-learn isolation-forest on site annotations, more robust than GMM, works down to smaller cohorts | Still BETA -- validate against a truth set before production use |\n| NVScoreVariants (deep learning) | A single sample, especially a single exome\u002Fpanel where VQSR has too few variants to train; PyTorch CNN scores reads+reference, then FilterVariantTranches applies tranches | Needs a GPU-friendly env for the 2D model; replaced deprecated CNNScoreVariants |\n| DL-native caller output (DeepVariant, DRAGEN ML) | The caller already emits calibrated QUAL \u002F vendor FILTER flags | Do NOT re-apply GATK hard filters on top -- annotation distributions differ; filter on the caller's own fields |\n\nMethodology is evolving (VETS is displacing VQSR). Verify the current recommended path against the installed GATK version's \"How to Filter variants\" article before committing a pipeline.\n\n## VQSR -- Mechanism and Why It Breaks\n\n**Goal:** Recalibrate a large jointly-genotyped human callset with a data-driven quality score.\n\n**Approach:** Fit a Gaussian mixture model (GMM) to the annotation profile of known-true sites (positive model), bootstrap a second GMM on the low-probability-tail artifact sites (negative model), and score each variant by VQSLOD = log( P(annotations | positive) \u002F P(annotations | negative) ). Then choose a truth-sensitivity TRANCHE rather than thresholding VQSLOD directly: a \"99.7 tranche\" is the VQSLOD cutoff that RETAINS 99.7% of the truth-set sites. Tranches are truth-set SENSITIVITIES, not FDRs.\n\nThree load-bearing consequences the agent must respect:\n- VQSR estimates full covariance matrices in ~6-8 annotation dimensions, so it needs tens of thousands of variants -- as practical GATK convention, a single deep WGS (which alone supplies millions of sites) OR ~30+ jointly-genotyped exomes. On a single exome or panel the model is non-identifiable or wildly overfit -- it may report \"converged\" while VQSLOD is garbage. This is the single most common real-world VQSR misuse.\n- On exomes, DP must NOT be supplied as a VQSR annotation: capture depth tracks bait design, not truth, and injects a spurious signal.\n- SNPs and indels are recalibrated in separate runs (`-mode SNP`, `-mode INDEL`) because indels are ~10x rarer and their GMM fails first (see governing principle).\n\n```bash\n# SNP recalibration: fit the GMM in annotation space against truth resources\ngatk VariantRecalibrator \\\n    -R reference.fa -V cohort.vcf.gz \\\n    --resource:hapmap,known=false,training=true,truth=true,prior=15.0 hapmap.vcf.gz \\\n    --resource:omni,known=false,training=true,truth=true,prior=12.0 omni.vcf.gz \\\n    --resource:1000G,known=false,training=true,truth=false,prior=10.0 1000G.vcf.gz \\\n    --resource:dbsnp,known=true,training=false,truth=false,prior=2.0 dbsnp.vcf.gz \\\n    -an QD -an MQ -an MQRankSum -an ReadPosRankSum -an FS -an SOR \\\n    -mode SNP \\\n    -O snp.recal --tranches-file snp.tranches\n# For exomes: OMIT -an DP (capture depth is uninformative of truth), add -an QD -an FS etc. only\n\n# Apply the chosen truth-sensitivity tranche (keeps 99.7% of truth-set SNPs)\ngatk ApplyVQSR \\\n    -R reference.fa -V cohort.vcf.gz \\\n    -mode SNP --recal-file snp.recal --tranches-file snp.tranches \\\n    --truth-sensitivity-filter-level 99.7 \\\n    -O snp.recalibrated.vcf.gz\n```\n\nRun the identical pair with `-mode INDEL` and the Mills\u002F1000G gold-indel resource, then merge the recalibrated SNP and indel callsets. For a single exome or panel (too few variants for VQSR), replace this whole block with hard filters or NVScoreVariants.\n\n## GATK Hard Filters (SNPs and indels separately)\n\n**Goal:** Flag artifacts with static, per-annotation thresholds when VQSR is inapplicable.\n\n**Approach:** Split the callset by type (`SelectVariants`), apply type-appropriate OR-combined fail conditions with `VariantFiltration`, then merge. Each annotation targets an independent error mode; a variant fails if it violates ANY one.\n\n**\"Filter my variants using GATK best practices\"** -> Apply GATK's recommended annotation cutoffs, separately for SNPs and indels.\n\n```bash\n# SNPs\ngatk VariantFiltration -R reference.fa -V raw_snps.vcf -O filtered_snps.vcf \\\n    --filter-expression \"QD \u003C 2.0\" --filter-name \"QD2\" \\\n    --filter-expression \"FS > 60.0\" --filter-name \"FS60\" \\\n    --filter-expression \"MQ \u003C 40.0\" --filter-name \"MQ40\" \\\n    --filter-expression \"MQRankSum \u003C -12.5\" --filter-name \"MQRankSum-12.5\" \\\n    --filter-expression \"ReadPosRankSum \u003C -8.0\" --filter-name \"ReadPosRankSum-8\" \\\n    --filter-expression \"SOR > 3.0\" --filter-name \"SOR3\"\n\n# Indels: FS loosened to 200, ReadPosRankSum tightened to -20, MQ\u002FMQRankSum DROPPED\ngatk VariantFiltration -R reference.fa -V raw_indels.vcf -O filtered_indels.vcf \\\n    --filter-expression \"QD \u003C 2.0\" --filter-name \"QD2\" \\\n    --filter-expression \"FS > 200.0\" --filter-name \"FS200\" \\\n    --filter-expression \"ReadPosRankSum \u003C -20.0\" --filter-name \"ReadPosRankSum-20\" \\\n    --filter-expression \"SOR > 10.0\" --filter-name \"SOR10\"\n```\n\nThe SNP\u002Findel threshold difference is the point, not an inconsistency: real indels have messier local alignments in repeats, so strand bias (FS) is naturally higher and the gate is loosened to 200; spurious indels cluster at read ends, so ReadPosRankSum is tightened to -20. Mapping-quality metrics (MQ, MQRankSum) are dropped for indels because they are less diagnostic there and the truth model is weaker. Values are GATK-recommended lenient starting points -- verify against the installed version's docs and tune to the annotation histograms of the dataset.\n\n### The hom-alt \"missing => PASS\" trap\n\nMQRankSum, ReadPosRankSum, and BaseQRankSum are rank-sum tests comparing ref- vs alt-supporting reads, so they are only DEFINED at heterozygous sites. At hom-alt sites there are no ref reads and the annotation is missing (`.`). GATK's `VariantFiltration` fires a filter only when the value is PRESENT and violates the cutoff -- a missing value PASSES. Anyone hand-writing the equivalent in bcftools MUST replicate this: guard every RankSum term with an explicit `|| INFO\u002FX = \".\"`, or every hom-alt variant silently fails and vanishes.\n\n```bash\n# GATK SNP hard filter (plus a QUAL>=30 floor, which is not part of GATK's canonical set)\n# -- the \"|| = \\\".\\\"\" guard on each RankSum term lets hom-alt sites (undefined RankSums) pass\nbcftools filter -i '\n    QUAL >= 30 && (INFO\u002FQD >= 2.0 || INFO\u002FQD = \".\") &&\n    (INFO\u002FFS \u003C= 60.0 || INFO\u002FFS = \".\") && (INFO\u002FMQ >= 40.0 || INFO\u002FMQ = \".\") &&\n    (INFO\u002FMQRankSum >= -12.5 || INFO\u002FMQRankSum = \".\") &&\n    (INFO\u002FReadPosRankSum >= -8.0 || INFO\u002FReadPosRankSum = \".\") &&\n    (INFO\u002FSOR \u003C= 3.0 || INFO\u002FSOR = \".\")' raw_snps.vcf.gz -Oz -o snps_filtered.vcf.gz\n```\n\n## Quality Metric Rationale\n\n| Metric | Threshold | Rationale |\n|--------|-----------|-----------|\n| QD (QualByDepth) | \u003C2.0 | QUAL normalized by alt-supporting depth. Raw QUAL grows with coverage, so a 500x artifact can post a huge QUAL; QD removes that inflation. Bimodal in practice -- real variants ~12-35, artifacts near 0. The workhorse, not QUAL. |\n| FS (FisherStrand) | >60 (SNP), >200 (indel) | Phred-scaled Fisher's-exact p-value for strand bias. Real variants are strand-symmetric; many artifacts are strand-specific. Breaks down at exon\u002Fread ends where SOR takes over. |\n| SOR (StrandOddsRatio) | >3.0 (SNP); >10.0 (indel) is a commonly-added community\u002FWDL convention, not part of GATK's canonical indel set (QD\u002FQUAL\u002FFS\u002FReadPosRankSum) | Symmetric-odds strand-bias metric that tolerates the legitimate strand imbalance at exon\u002Fread ends where FS false-positives. Complements FS, does not replace it. |\n| MQ (RMSMappingQuality) | \u003C40.0 | RMS mapping quality of reads at the site. Low MQ => reads map ambiguously (repeats, paralogs, segdups) => likely mapping artifact. |\n| MQRankSum | \u003C-12.5 | Rank-sum of mapping quality, alt- vs ref-supporting reads. Strongly negative => alt reads map worse => probable mismapping. Missing at hom-alt sites. |\n| ReadPosRankSum | \u003C-8.0 (SNP), \u003C-20.0 (indel) | Rank-sum of within-read position, alt vs ref bases. Strongly negative => alt clusters at read ends (highest error, least reliable alignment). Missing at hom-alt sites. |\n| DP (depth) | context-specific | Extreme depth (>2x or \u003C0.3x mean) suggests collapsed repeats or poor capture. Filtering on DP alone removes real variants in duplicated regions -- always combine with MQ\u002FMQRankSum. Never a VQSR annotation on exomes. |\n| GQ (genotype quality) | \u003C20 | Genotype-level, not site-level. Phred confidence in the called genotype; GQ 20 = 99%. |\n\n## Site-Level vs Genotype-Level Filtering\n\nThe two are orthogonal and both are required, in order. Site filters (above) decide whether a SITE is real. Genotype filters set an individual sample's genotype to no-call (`.\u002F.`) when it is untrustworthy at an otherwise-passing site:\n- GQ \u003C 20 => set `.\u002F.` (genotype confidence below 99%).\n- DP \u003C 8-10 => set `.\u002F.` (too few reads for a confident diploid call, for WGS).\n- Allele balance far from 0.5 at hets (e.g. alt fraction \u003C0.2 or >0.8) => suspect mapping artifact, CNV, or contamination; derive from AD (GATK does not emit AB directly).\n\nOrdering matters: apply genotype-level no-calls BEFORE computing cohort metrics (missingness, HWE, allele frequency). Computing HWE on a matrix full of low-GQ garbage genotypes manufactures spurious deviation. Pipeline: site filter -> genotype filter -> recompute cohort QC.\n\n```bash\n# Genotype-level: null out low-confidence genotypes, keeping the site\nbcftools filter -S . -e 'FMT\u002FGQ\u003C20 | FMT\u002FDP\u003C8' passing_sites.vcf.gz -Oz -o gt_filtered.vcf.gz\n```\n\n## bcftools filter -- Soft vs Hard\n\n**Goal:** Flag (soft) or remove (hard) variants by expression on QUAL, INFO, and FORMAT fields.\n\n**Approach:** `-e` excludes, `-i` includes; `-s NAME` writes a named FILTER label instead of dropping; `bcftools view -f PASS` extracts survivors at the end.\n\n```bash\nbcftools filter -e 'QUAL\u003C30' input.vcf.gz -o filtered.vcf          # hard: drop failing\nbcftools filter -s 'LowQual' -e 'QUAL\u003C30' input.vcf.gz -o marked.vcf  # soft: label failing\nbcftools view -f PASS marked.vcf -o passed.vcf                      # extract PASS survivors\n```\n\nOperators: `\u003C \u003C= > >=  = == !=  && ||  !`. Aggregate over samples with `MIN() MAX() AVG() SUM()`. Guard against missing values explicitly (`INFO\u002FDP!=\".\"`), for the same hom-alt reason as above.\n\n## Somatic Variant Filtering\n\n**Goal:** Filter tumor-normal somatic calls with the caller's own model, not germline thresholds.\n\n**Approach:** Run GATK FilterMutectCalls with contamination and segmentation tables, then layer additional thresholds on TLOD and VAF.\n\n```bash\ngatk FilterMutectCalls -R reference.fa -V mutect2_raw.vcf \\\n    --contamination-table contamination.table \\\n    --tumor-segmentation segments.table \\\n    -O mutect2_filtered.vcf\nbcftools filter -i 'INFO\u002FTLOD>6.3 && FMT\u002FAF[0]>0.05 && FMT\u002FDP[0]>20' \\\n    mutect2_filtered.vcf -o somatic_final.vcf\n```\n\n## Python Filtering (cyvcf2)\n\n**Goal:** Apply custom multi-metric per-variant logic in Python.\n\n**Approach:** Iterate with cyvcf2, read QUAL\u002FINFO fields, write survivors with Writer. `INFO.get` returns None for missing tags -- treat None as pass to avoid the hom-alt trap.\n\n```python\nfrom cyvcf2 import VCF, Writer\n\nvcf = VCF('input.vcf.gz')\nwriter = Writer('filtered.vcf', vcf)\nfor variant in vcf:\n    qual = variant.QUAL or 0\n    dp = variant.INFO.get('DP') or 1e9      # missing depth => do not fail on depth\n    fs = variant.INFO.get('FS') or 0.0      # missing strand bias => pass (None -> 0)\n    mq = variant.INFO.get('MQ') or 1e9      # missing MQ => pass\n    if qual >= 30 and dp >= 10 and fs \u003C= 60.0 and mq >= 40.0:\n        writer.write_record(variant)\nwriter.close(); vcf.close()\n```\n\n## Validate Filtering\n\n**Goal:** Confirm filtering removed artifacts without stripping true variants.\n\n**Approach:** Compare before\u002Fafter `bcftools stats`; check Ti\u002FTv and Het\u002FHom against expected ranges and known-variant recovery. A filter that improves one metric while degrading another is miscalibrated.\n\n| Metric | WGS | WES | Interpretation |\n|--------|-----|-----|----------------|\n| Ti\u002FTv | 2.0-2.1 | 3.0-3.3 | Below range => excess false positives (random errors have Ti\u002FTv ~0.5, diluting the signal); a WES set at ~2.1 signals too-loose filtering. WES is higher from CpG-transition-rich coding enrichment. |\n| Het\u002FHom | 1.5-2.0 | 1.5-2.0 | Strongly ancestry-dependent. Elevated => contamination; depressed => inbreeding\u002FROH. Stratify by ancestry before flagging outliers. |\n| Known (dbSNP) % | >99% | >99% | Low known-variant recovery indicates over-filtering. |\n\n```bash\nbcftools stats input.vcf > before.txt\nbcftools stats filtered.vcf | grep '^TSTV'                    # Ti\u002FTv after filtering\nbcftools query -f '%FILTER\\n' filtered.vcf | sort | uniq -c   # counts per FILTER label\n```\n\nIf Ti\u002FTv drops after filtering, the filters are preferentially removing true transitions -- relax them. See variant-calling\u002Fvcf-statistics for the full QC panel (het\u002Fhom by ancestry, contamination, relatedness).\n\n## Region-Based Filtering\n\nStratify by genomic context; artifact-prone regions dominate false positives. Exclude with `bcftools view -T ^regions.bed`:\n- ENCODE exclusion list (github.com\u002FBoyle-Lab\u002FBlacklist) -- anomalous-signal regions (centromeres, satellites).\n- GIAB stratification BEDs -- low-complexity, segdups, tandem repeats; essential for honest benchmarking (`bcftools isec` against a GIAB truth set).\n- LCR-hs38 (Heng Li) -- homopolymers and simple repeats where indel calling is unreliable.\n\n## Common Filtering Pitfalls\n\n- Applying SNP thresholds to indels: distributions differ (FS, SOR, ReadPosRankSum). Always split by type first.\n- Treating missing RankSum as failing: silently deletes every hom-alt site (see the missing => PASS trap).\n- Running VQSR on a single exome or panel: too few variants, the GMM is non-identifiable (a single deep WGS is fine); use hard filters, VETS, or NVScoreVariants.\n- Re-applying GATK hard filters on DeepVariant\u002FDRAGEN output: their calibrated fields already encode quality; the GATK annotations may be absent or differently distributed.\n- Filtering on depth alone: removes real variants in collapsed segdups; combine DP with MQ\u002FMQRankSum.\n- Choosing thresholds without looking: plot each annotation stratified by known TP (HapMap) vs likely FP and cut at the valley; GATK defaults are population-level starting points.\n\n## Common Errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `no such INFO tag` | Tag absent from VCF | Check header: `bcftools view -h in.vcf` |\n| `syntax error` in expression | Invalid operator | Use `\\|\\|` not `or`; quote missing as `= \".\"` |\n| Every hom-alt site removed | RankSum missing not guarded | Add `\\|\\| INFO\u002FX = \".\"` to each RankSum term |\n| VQSR \"converged\" but nonsense | Too few samples\u002Fvariants | Switch to hard filters, VETS, or NVScoreVariants |\n| empty output | Filter too strict | Relax thresholds; inspect annotation histograms |\n\n## Related Skills\n\n- variant-calling\u002Fvariant-calling - Variant calling with bcftools to generate VCF files\n- variant-calling\u002Fgatk-variant-calling - GATK HaplotypeCaller and joint genotyping upstream of VQSR\n- variant-calling\u002Fdeepvariant - Deep-learning caller whose output needs no separate site filter\n- variant-calling\u002Fvariant-annotation - Functional annotation after filtering\n- variant-calling\u002Fvariant-normalization - Left-align and decompose before filtering for consistent comparisons\n- variant-calling\u002Fvcf-statistics - Ti\u002FTv, het\u002Fhom, contamination, and relatedness QC of filter effects\n- variant-calling\u002Fvcf-basics - VCF field interpretation, PL\u002FGQ\u002FQUAL, and Number=A\u002FR\u002FG subsetting\n\n## References\n\n- DePristo MA, Banks E, Poplin R, et al. A framework for variation discovery and genotyping using next-generation DNA sequencing data. *Nature Genetics.* 2011;43(5):491-498. -- VQSR foundational description.\n- Van der Auwera GA, Carneiro MO, Hartl C, et al. From FastQ Data to High-Confidence Variant Calls: the GATK Best Practices pipeline. *Current Protocols in Bioinformatics.* 2013;43:11.10.1-11.10.33. -- hard-filtering and VQSR usage.\n- Poplin R, Chang P-C, Alexander D, et al. A universal SNP and small-indel variant caller using deep neural networks. *Nature Biotechnology.* 2018;36(10):983-987. -- DeepVariant (DL-native calls need no separate filter).\n- Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. *GigaScience.* 2021;10(2):giab008. -- bcftools filter\u002Fview\u002Fstats.\n","## Version Compatibility\n\nReference examples tested with: GATK 4.6+, bcftools 1.19+, cyvcf2 0.30+\n\nNote: CNNScoreVariants is deprecated as of GATK 4.6.1.0 (replaced by NVScoreVariants, a PyTorch drop-in); VETS (ExtractVariantAnnotations\u002FTrainVariantAnnotationsModel\u002FScoreVariantAnnotations) is BETA. Confirm tool availability with `gatk --list` on the installed build before scripting a pipeline.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- CLI: `\u003Ctool> --version` then `\u003Ctool> --help` to confirm flags\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Variant Filtering Best Practices\n\n**\"Filter my variant calls\"** -> Flag or remove low-quality variant sites, and separately null out untrustworthy per-sample genotypes, using a model matched to cohort size, platform, and organism.\n- CLI: GATK VariantRecalibrator\u002FApplyVQSR (large cohorts), VariantFiltration (hard filters), ScoreVariantAnnotations (VETS), NVScoreVariants (single-sample DL); bcftools filter\u002Fview\n- Python: cyvcf2 for custom per-variant logic\n\n## The governing principle\n\nFiltering decides WHICH errors a callset keeps, not whether they exist. The two site-level paradigms fail in OPPOSITE regimes: VQSR (a ratio of two learned Gaussian-mixture densities over annotation space) collapses on small or exome cohorts; static hard thresholds discard real variants at scale. Two rules follow. First, site-level filtering (\"is this SITE real?\") and genotype-level filtering (\"is this SAMPLE's genotype trustworthy?\") are orthogonal -- both are needed, site first. Second, SNPs and indels have different error processes (base-calling\u002Fstrand vs alignment-ambiguity-in-repeats) and different truth resources, so they are ALWAYS filtered separately then merged. None of these mistakes throws an error: the VCF stays structurally valid while the numbers are silently wrong.\n\n## Site-Level Filter Method Selection\n\nSomatic data is a separate track: use GATK FilterMutectCalls, never VQSR or germline hard filters (the annotations and error model differ).\n\n| Method | Best when | Fails when |\n|--------|-----------|------------|\n| Hard filters (VariantFiltration) | Single sample, exome, targeted panel, non-model organism, or any callset lacking truth resources | Precision-critical work at scale -- static cutoffs leave real variants on the table |\n| VQSR (VariantRecalibrator\u002FApplyVQSR) | Human, a single deep WGS OR ~30+ jointly-genotyped exomes, HapMap\u002FOmni\u002FMills truth sets available | A single exome\u002Fpanel (too few variants): the GMM is non-identifiable and VQSLOD is noise |\n| Allele-specific VQSR (`-AS`, `AS_*` annotations) | Very large cohorts (biobank\u002FgnomAD scale) where one bad allele at a multiallelic must not sink the site | Small cohorts; adds nothing over site-level VQSR |\n| VETS (ScoreVariantAnnotations, BETA) | Modern GATK replacement for VQSR; scikit-learn isolation-forest on site annotations, more robust than GMM, works down to smaller cohorts | Still BETA -- validate against a truth set before production use |\n| NVScoreVariants (deep learning) | A single sample, especially a single exome\u002Fpanel where VQSR has too few variants to train; PyTorch CNN scores reads+reference, then FilterVariantTranches applies tranches | Needs a GPU-friendly env for the 2D model; replaced deprecated CNNScoreVariants |\n| DL-native caller output (DeepVariant, DRAGEN ML) | The caller already emits calibrated QUAL \u002F vendor FILTER flags | Do NOT re-apply GATK hard filters on top -- annotation distributions differ; filter on the caller's own fields |\n\nMethodology is evolving (VETS is displacing VQSR). Verify the current recommended path against the installed GATK version's \"How to Filter variants\" article before committing a pipeline.\n\n## VQSR -- Mechanism and Why It Breaks\n\n**Goal:** Recalibrate a large jointly-genotyped human callset with a data-driven quality score.\n\n**Approach:** Fit a Gaussian mixture model (GMM) to the annotation profile of known-true sites (positive model), bootstrap a second GMM on the low-probability-tail artifact sites (negative model), and score each variant by VQSLOD = log( P(annotations | positive) \u002F P(annotations | negative) ). Then choose a truth-sensitivity TRANCHE rather than thresholding VQSLOD directly: a \"99.7 tranche\" is the VQSLOD cutoff that RETAINS 99.7% of the truth-set sites. Tranches are truth-set SENSITIVITIES, not FDRs.\n\nThree load-bearing consequences the agent must respect:\n- VQSR estimates full covariance matrices in ~6-8 annotation dimensions, so it needs tens of thousands of variants -- as practical GATK convention, a single deep WGS (which alone supplies millions of sites) OR ~30+ jointly-genotyped exomes. On a single exome or panel the model is non-identifiable or wildly overfit -- it may report \"converged\" while VQSLOD is garbage. This is the single most common real-world VQSR misuse.\n- On exomes, DP must NOT be supplied as a VQSR annotation: capture depth tracks bait design, not truth, and injects a spurious signal.\n- SNPs and indels are recalibrated in separate runs (`-mode SNP`, `-mode INDEL`) because indels are ~10x rarer and their GMM fails first (see governing principle).\n\n```bash\n# SNP recalibration: fit the GMM in annotation space against truth resources\ngatk VariantRecalibrator \\\n    -R reference.fa -V cohort.vcf.gz \\\n    --resource:hapmap,known=false,training=true,truth=true,prior=15.0 hapmap.vcf.gz \\\n    --resource:omni,known=false,training=true,truth=true,prior=12.0 omni.vcf.gz \\\n    --resource:1000G,known=false,training=true,truth=false,prior=10.0 1000G.vcf.gz \\\n    --resource:dbsnp,known=true,training=false,truth=false,prior=2.0 dbsnp.vcf.gz \\\n    -an QD -an MQ -an MQRankSum -an ReadPosRankSum -an FS -an SOR \\\n    -mode SNP \\\n    -O snp.recal --tranches-file snp.tranches\n# For exomes: OMIT -an DP (capture depth is uninformative of truth), add -an QD -an FS etc. only\n\n# Apply the chosen truth-sensitivity tranche (keeps 99.7% of truth-set SNPs)\ngatk ApplyVQSR \\\n    -R reference.fa -V cohort.vcf.gz \\\n    -mode SNP --recal-file snp.recal --tranches-file snp.tranches \\\n    --truth-sensitivity-filter-level 99.7 \\\n    -O snp.recalibrated.vcf.gz\n```\n\nRun the identical pair with `-mode INDEL` and the Mills\u002F1000G gold-indel resource, then merge the recalibrated SNP and indel callsets. For a single exome or panel (too few variants for VQSR), replace this whole block with hard filters or NVScoreVariants.\n\n## GATK Hard Filters (SNPs and indels separately)\n\n**Goal:** Flag artifacts with static, per-annotation thresholds when VQSR is inapplicable.\n\n**Approach:** Split the callset by type (`SelectVariants`), apply type-appropriate OR-combined fail conditions with `VariantFiltration`, then merge. Each annotation targets an independent error mode; a variant fails if it violates ANY one.\n\n**\"Filter my variants using GATK best practices\"** -> Apply GATK's recommended annotation cutoffs, separately for SNPs and indels.\n\n```bash\n# SNPs\ngatk VariantFiltration -R reference.fa -V raw_snps.vcf -O filtered_snps.vcf \\\n    --filter-expression \"QD \u003C 2.0\" --filter-name \"QD2\" \\\n    --filter-expression \"FS > 60.0\" --filter-name \"FS60\" \\\n    --filter-expression \"MQ \u003C 40.0\" --filter-name \"MQ40\" \\\n    --filter-expression \"MQRankSum \u003C -12.5\" --filter-name \"MQRankSum-12.5\" \\\n    --filter-expression \"ReadPosRankSum \u003C -8.0\" --filter-name \"ReadPosRankSum-8\" \\\n    --filter-expression \"SOR > 3.0\" --filter-name \"SOR3\"\n\n# Indels: FS loosened to 200, ReadPosRankSum tightened to -20, MQ\u002FMQRankSum DROPPED\ngatk VariantFiltration -R reference.fa -V raw_indels.vcf -O filtered_indels.vcf \\\n    --filter-expression \"QD \u003C 2.0\" --filter-name \"QD2\" \\\n    --filter-expression \"FS > 200.0\" --filter-name \"FS200\" \\\n    --filter-expression \"ReadPosRankSum \u003C -20.0\" --filter-name \"ReadPosRankSum-20\" \\\n    --filter-expression \"SOR > 10.0\" --filter-name \"SOR10\"\n```\n\nThe SNP\u002Findel threshold difference is the point, not an inconsistency: real indels have messier local alignments in repeats, so strand bias (FS) is naturally higher and the gate is loosened to 200; spurious indels cluster at read ends, so ReadPosRankSum is tightened to -20. Mapping-quality metrics (MQ, MQRankSum) are dropped for indels because they are less diagnostic there and the truth model is weaker. Values are GATK-recommended lenient starting points -- verify against the installed version's docs and tune to the annotation histograms of the dataset.\n\n### The hom-alt \"missing => PASS\" trap\n\nMQRankSum, ReadPosRankSum, and BaseQRankSum are rank-sum tests comparing ref- vs alt-supporting reads, so they are only DEFINED at heterozygous sites. At hom-alt sites there are no ref reads and the annotation is missing (`.`). GATK's `VariantFiltration` fires a filter only when the value is PRESENT and violates the cutoff -- a missing value PASSES. Anyone hand-writing the equivalent in bcftools MUST replicate this: guard every RankSum term with an explicit `|| INFO\u002FX = \".\"`, or every hom-alt variant silently fails and vanishes.\n\n```bash\n# GATK SNP hard filter (plus a QUAL>=30 floor, which is not part of GATK's canonical set)\n# -- the \"|| = \\\".\\\"\" guard on each RankSum term lets hom-alt sites (undefined RankSums) pass\nbcftools filter -i '\n    QUAL >= 30 && (INFO\u002FQD >= 2.0 || INFO\u002FQD = \".\") &&\n    (INFO\u002FFS \u003C= 60.0 || INFO\u002FFS = \".\") && (INFO\u002FMQ >= 40.0 || INFO\u002FMQ = \".\") &&\n    (INFO\u002FMQRankSum >= -12.5 || INFO\u002FMQRankSum = \".\") &&\n    (INFO\u002FReadPosRankSum >= -8.0 || INFO\u002FReadPosRankSum = \".\") &&\n    (INFO\u002FSOR \u003C= 3.0 || INFO\u002FSOR = \".\")' raw_snps.vcf.gz -Oz -o snps_filtered.vcf.gz\n```\n\n## Quality Metric Rationale\n\n| Metric | Threshold | Rationale |\n|--------|-----------|-----------|\n| QD (QualByDepth) | \u003C2.0 | QUAL normalized by alt-supporting depth. Raw QUAL grows with coverage, so a 500x artifact can post a huge QUAL; QD removes that inflation. Bimodal in practice -- real variants ~12-35, artifacts near 0. The workhorse, not QUAL. |\n| FS (FisherStrand) | >60 (SNP), >200 (indel) | Phred-scaled Fisher's-exact p-value for strand bias. Real variants are strand-symmetric; many artifacts are strand-specific. Breaks down at exon\u002Fread ends where SOR takes over. |\n| SOR (StrandOddsRatio) | >3.0 (SNP); >10.0 (indel) is a commonly-added community\u002FWDL convention, not part of GATK's canonical indel set (QD\u002FQUAL\u002FFS\u002FReadPosRankSum) | Symmetric-odds strand-bias metric that tolerates the legitimate strand imbalance at exon\u002Fread ends where FS false-positives. Complements FS, does not replace it. |\n| MQ (RMSMappingQuality) | \u003C40.0 | RMS mapping quality of reads at the site. Low MQ => reads map ambiguously (repeats, paralogs, segdups) => likely mapping artifact. |\n| MQRankSum | \u003C-12.5 | Rank-sum of mapping quality, alt- vs ref-supporting reads. Strongly negative => alt reads map worse => probable mismapping. Missing at hom-alt sites. |\n| ReadPosRankSum | \u003C-8.0 (SNP), \u003C-20.0 (indel) | Rank-sum of within-read position, alt vs ref bases. Strongly negative => alt clusters at read ends (highest error, least reliable alignment). Missing at hom-alt sites. |\n| DP (depth) | context-specific | Extreme depth (>2x or \u003C0.3x mean) suggests collapsed repeats or poor capture. Filtering on DP alone removes real variants in duplicated regions -- always combine with MQ\u002FMQRankSum. Never a VQSR annotation on exomes. |\n| GQ (genotype quality) | \u003C20 | Genotype-level, not site-level. Phred confidence in the called genotype; GQ 20 = 99%. |\n\n## Site-Level vs Genotype-Level Filtering\n\nThe two are orthogonal and both are required, in order. Site filters (above) decide whether a SITE is real. Genotype filters set an individual sample's genotype to no-call (`.\u002F.`) when it is untrustworthy at an otherwise-passing site:\n- GQ \u003C 20 => set `.\u002F.` (genotype confidence below 99%).\n- DP \u003C 8-10 => set `.\u002F.` (too few reads for a confident diploid call, for WGS).\n- Allele balance far from 0.5 at hets (e.g. alt fraction \u003C0.2 or >0.8) => suspect mapping artifact, CNV, or contamination; derive from AD (GATK does not emit AB directly).\n\nOrdering matters: apply genotype-level no-calls BEFORE computing cohort metrics (missingness, HWE, allele frequency). Computing HWE on a matrix full of low-GQ garbage genotypes manufactures spurious deviation. Pipeline: site filter -> genotype filter -> recompute cohort QC.\n\n```bash\n# Genotype-level: null out low-confidence genotypes, keeping the site\nbcftools filter -S . -e 'FMT\u002FGQ\u003C20 | FMT\u002FDP\u003C8' passing_sites.vcf.gz -Oz -o gt_filtered.vcf.gz\n```\n\n## bcftools filter -- Soft vs Hard\n\n**Goal:** Flag (soft) or remove (hard) variants by expression on QUAL, INFO, and FORMAT fields.\n\n**Approach:** `-e` excludes, `-i` includes; `-s NAME` writes a named FILTER label instead of dropping; `bcftools view -f PASS` extracts survivors at the end.\n\n```bash\nbcftools filter -e 'QUAL\u003C30' input.vcf.gz -o filtered.vcf          # hard: drop failing\nbcftools filter -s 'LowQual' -e 'QUAL\u003C30' input.vcf.gz -o marked.vcf  # soft: label failing\nbcftools view -f PASS marked.vcf -o passed.vcf                      # extract PASS survivors\n```\n\nOperators: `\u003C \u003C= > >=  = == !=  && ||  !`. Aggregate over samples with `MIN() MAX() AVG() SUM()`. Guard against missing values explicitly (`INFO\u002FDP!=\".\"`), for the same hom-alt reason as above.\n\n## Somatic Variant Filtering\n\n**Goal:** Filter tumor-normal somatic calls with the caller's own model, not germline thresholds.\n\n**Approach:** Run GATK FilterMutectCalls with contamination and segmentation tables, then layer additional thresholds on TLOD and VAF.\n\n```bash\ngatk FilterMutectCalls -R reference.fa -V mutect2_raw.vcf \\\n    --contamination-table contamination.table \\\n    --tumor-segmentation segments.table \\\n    -O mutect2_filtered.vcf\nbcftools filter -i 'INFO\u002FTLOD>6.3 && FMT\u002FAF[0]>0.05 && FMT\u002FDP[0]>20' \\\n    mutect2_filtered.vcf -o somatic_final.vcf\n```\n\n## Python Filtering (cyvcf2)\n\n**Goal:** Apply custom multi-metric per-variant logic in Python.\n\n**Approach:** Iterate with cyvcf2, read QUAL\u002FINFO fields, write survivors with Writer. `INFO.get` returns None for missing tags -- treat None as pass to avoid the hom-alt trap.\n\n```python\nfrom cyvcf2 import VCF, Writer\n\nvcf = VCF('input.vcf.gz')\nwriter = Writer('filtered.vcf', vcf)\nfor variant in vcf:\n    qual = variant.QUAL or 0\n    dp = variant.INFO.get('DP') or 1e9      # missing depth => do not fail on depth\n    fs = variant.INFO.get('FS') or 0.0      # missing strand bias => pass (None -> 0)\n    mq = variant.INFO.get('MQ') or 1e9      # missing MQ => pass\n    if qual >= 30 and dp >= 10 and fs \u003C= 60.0 and mq >= 40.0:\n        writer.write_record(variant)\nwriter.close(); vcf.close()\n```\n\n## Validate Filtering\n\n**Goal:** Confirm filtering removed artifacts without stripping true variants.\n\n**Approach:** Compare before\u002Fafter `bcftools stats`; check Ti\u002FTv and Het\u002FHom against expected ranges and known-variant recovery. A filter that improves one metric while degrading another is miscalibrated.\n\n| Metric | WGS | WES | Interpretation |\n|--------|-----|-----|----------------|\n| Ti\u002FTv | 2.0-2.1 | 3.0-3.3 | Below range => excess false positives (random errors have Ti\u002FTv ~0.5, diluting the signal); a WES set at ~2.1 signals too-loose filtering. WES is higher from CpG-transition-rich coding enrichment. |\n| Het\u002FHom | 1.5-2.0 | 1.5-2.0 | Strongly ancestry-dependent. Elevated => contamination; depressed => inbreeding\u002FROH. Stratify by ancestry before flagging outliers. |\n| Known (dbSNP) % | >99% | >99% | Low known-variant recovery indicates over-filtering. |\n\n```bash\nbcftools stats input.vcf > before.txt\nbcftools stats filtered.vcf | grep '^TSTV'                    # Ti\u002FTv after filtering\nbcftools query -f '%FILTER\\n' filtered.vcf | sort | uniq -c   # counts per FILTER label\n```\n\nIf Ti\u002FTv drops after filtering, the filters are preferentially removing true transitions -- relax them. See variant-calling\u002Fvcf-statistics for the full QC panel (het\u002Fhom by ancestry, contamination, relatedness).\n\n## Region-Based Filtering\n\nStratify by genomic context; artifact-prone regions dominate false positives. Exclude with `bcftools view -T ^regions.bed`:\n- ENCODE exclusion list (github.com\u002FBoyle-Lab\u002FBlacklist) -- anomalous-signal regions (centromeres, satellites).\n- GIAB stratification BEDs -- low-complexity, segdups, tandem repeats; essential for honest benchmarking (`bcftools isec` against a GIAB truth set).\n- LCR-hs38 (Heng Li) -- homopolymers and simple repeats where indel calling is unreliable.\n\n## Common Filtering Pitfalls\n\n- Applying SNP thresholds to indels: distributions differ (FS, SOR, ReadPosRankSum). Always split by type first.\n- Treating missing RankSum as failing: silently deletes every hom-alt site (see the missing => PASS trap).\n- Running VQSR on a single exome or panel: too few variants, the GMM is non-identifiable (a single deep WGS is fine); use hard filters, VETS, or NVScoreVariants.\n- Re-applying GATK hard filters on DeepVariant\u002FDRAGEN output: their calibrated fields already encode quality; the GATK annotations may be absent or differently distributed.\n- Filtering on depth alone: removes real variants in collapsed segdups; combine DP with MQ\u002FMQRankSum.\n- Choosing thresholds without looking: plot each annotation stratified by known TP (HapMap) vs likely FP and cut at the valley; GATK defaults are population-level starting points.\n\n## Common Errors\n\n| Error | Cause | Solution |\n|-------|-------|----------|\n| `no such INFO tag` | Tag absent from VCF | Check header: `bcftools view -h in.vcf` |\n| `syntax error` in expression | Invalid operator | Use `\\|\\|` not `or`; quote missing as `= \".\"` |\n| Every hom-alt site removed | RankSum missing not guarded | Add `\\|\\| INFO\u002FX = \".\"` to each RankSum term |\n| VQSR \"converged\" but nonsense | Too few samples\u002Fvariants | Switch to hard filters, VETS, or NVScoreVariants |\n| empty output | Filter too strict | Relax thresholds; inspect annotation histograms |\n\n## Related Skills\n\n- variant-calling\u002Fvariant-calling - Variant calling with bcftools to generate VCF files\n- variant-calling\u002Fgatk-variant-calling - GATK HaplotypeCaller and joint genotyping upstream of VQSR\n- variant-calling\u002Fdeepvariant - Deep-learning caller whose output needs no separate site filter\n- variant-calling\u002Fvariant-annotation - Functional annotation after filtering\n- variant-calling\u002Fvariant-normalization - Left-align and decompose before filtering for consistent comparisons\n- variant-calling\u002Fvcf-statistics - Ti\u002FTv, het\u002Fhom, contamination, and relatedness QC of filter effects\n- variant-calling\u002Fvcf-basics - VCF field interpretation, PL\u002FGQ\u002FQUAL, and Number=A\u002FR\u002FG subsetting\n\n## References\n\n- DePristo MA, Banks E, Poplin R, et al. A framework for variation discovery and genotyping using next-generation DNA sequencing data. *Nature Genetics.* 2011;43(5):491-498. -- VQSR foundational description.\n- Van der Auwera GA, Carneiro MO, Hartl C, et al. From FastQ Data to High-Confidence Variant Calls: the GATK Best Practices pipeline. *Current Protocols in Bioinformatics.* 2013;43:11.10.1-11.10.33. -- hard-filtering and VQSR usage.\n- Poplin R, Chang P-C, Alexander D, et al. A universal SNP and small-indel variant caller using deep neural networks. *Nature Biotechnology.* 2018;36(10):983-987. -- DeepVariant (DL-native calls need no separate filter).\n- Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. *GigaScience.* 2021;10(2):giab008. -- bcftools filter\u002Fview\u002Fstats.\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","variant-calling\u002Ffiltering-best-practices\u002FSKILL.md","bcftools","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-variant-calling-filtering-best-practices","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-variant-calling-filtering-best-practices",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-variant-calling-filtering-best-practices",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-variant-calling-filtering-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-variant-calling-filtering-best-practices\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Ffilter_variants.sh","SCRIPT","脚本",3027,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-variant-calling-filtering-best-practices\u002Fexamples\u002Ffilter_variants.sh",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",8224,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-variant-calling-filtering-best-practices\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]