[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EGA7EY3AQC991E7J79W6AB":3,"skill-same:01M7EGA7EY3AQC991E7J79W6AB":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},"01M7EGA7EY3AQC991E7J79W6AB","bio-vcf-statistics",null,"Compute and interpret VCF quality-control metrics (Ti\u002FTv, het\u002Fhom, novel\u002Fknown, missingness, HWE, contamination, relatedness) with bcftools stats, vcftools, plot-vcfstats, and identity tools (somalier, peddy, KING). Use when judging whether a callset is trustworthy, diagnosing a low Ti\u002FTv or outlier het\u002Fhom sample, deciding whether an HWE deviation is error or biology, screening a cohort for sample swaps\u002Fcontamination\u002Fwrong-sex before analysis, or comparing call sets before and after filtering. Not for applying filters (see variant-calling\u002Ffiltering-best-practices) or normalizing representation (see variant-calling\u002Fvariant-normalization).","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-vcf-statistics\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-vcf-statistics\ndescription: Compute and interpret VCF quality-control metrics (Ti\u002FTv, het\u002Fhom, novel\u002Fknown, missingness, HWE, contamination, relatedness) with bcftools stats, vcftools, plot-vcfstats, and identity tools (somalier, peddy, KING). Use when judging whether a callset is trustworthy, diagnosing a low Ti\u002FTv or outlier het\u002Fhom sample, deciding whether an HWE deviation is error or biology, screening a cohort for sample swaps\u002Fcontamination\u002Fwrong-sex before analysis, or comparing call sets before and after filtering. Not for applying filters (see variant-calling\u002Ffiltering-best-practices) or normalizing representation (see variant-calling\u002Fvariant-normalization).\ntool_type: cli\nprimary_tool: bcftools\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"variant-calling\u002Fvcf-statistics\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: bcftools 1.19+, vcftools 0.1.16+, somalier 0.2.19+, peddy 0.4.8+, cyvcf2 0.30+, numpy 1.26+\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\nNote: `bcftools gtcheck` was rewritten around bcftools 1.10; the old `-G\u002F--GTs-only` flag is gone. Modern gtcheck cross-checks all samples in one file when `-g` is omitted, and uses `-E\u002F--error-probability`. Verify flags against the installed build.\n\n# VCF Statistics\n\n**\"Is this callset any good, and are the samples who the manifest says they are?\"** -> Summarize variant counts and quality distributions, then read each QC metric as a signal whose expected value is context-dependent.\n\n- CLI: `bcftools stats` (+ `plot-vcfstats`), `vcftools`, `somalier`, `peddy`\n- Python: `cyvcf2` for custom per-record statistics\n\n## The governing principle\n\nNo QC metric has a universal pass value. Each metric's expected range depends on the assay (WGS vs WES), the sample's ancestry, and the cohort it sits in, so QC is not threshold-checking but reading a deviation for its mechanistic meaning and acting on it. Three rules follow. First, always compare a sample against a matched cohort (same assay, same inferred ancestry), never against an absolute number. Second, order of operations matters: apply genotype-level filters (set `.\u002F.` where GQ\u002FDP\u002Fallele-balance fail) BEFORE computing cohort missingness, call rate, or HWE, because low-quality genotypes left in the matrix drive spurious missingness and HWE deviation. Third, sample-identity QC is a graph problem, not a per-sample check: build the all-pairs relatedness matrix and reconcile it against the declared pedigree\u002Fmanifest, and do this BEFORE any association or burden analysis, because one undetected swap or contaminated sample can fabricate or erase a genome-wide-significant hit.\n\n## QC metric decision table\n\nExpected values are stated conventions (they shift with capture kit, ancestry, reference build, and caller); treat them as starting points and confirm against a matched cohort.\n\n| Metric | Expected (WGS) | Expected (WES) | A deviation MEANS | Action |\n|--------|---------------|---------------|-------------------|--------|\n| Ti\u002FTv (overall) | ~2.0-2.1 | ~3.0-3.3 | Low -> false-positive transversions dilute the signal (random errors have Ti\u002FTv ~0.5); high -> over-filtering removed transversions | Tighten site filters if low; check filter for transversion bias if high |\n| Ti\u002FTv (novel only) | near overall | near overall | Novel Ti\u002FTv well below the known-site value -> FP contamination in the novel fraction | Raise stringency; the novel set is where FPs concentrate |\n| Het\u002Fhom ratio | ancestry-dependent (~1.5-1.6 EUR, ~2.0+ AFR) | same | High vs same-ancestry cohort -> contamination or reference bias; low -> inbreeding\u002Fconsanguinity\u002FROH or chromosome loss | Stratify by ancestry first; then flag within-ancestry outliers |\n| Novel fraction (vs dbSNP) | low for common; high for rare\u002Fsingleton | same | Novel COMMON variants -> almost always artifacts; high novel rare -> expected or under-studied population | Stratify novel% by frequency; investigate common novels |\n| Call rate (per sample) | >95-98% | >95-98% | Low -> low-coverage\u002Flow-quality sample | Drop worst samples, then recompute per-variant missingness (iterate) |\n| Call rate (per variant) | >95-99% | >95-99% | Low -> site in a hard-to-genotype region | Drop worst variants after sample QC; rare variants tolerate more missing |\n| Het allele-balance (hets) | centered on 0.5 | 0.5 | Shifted away from 0.5 + elevated het count -> contamination signature | Confirm with VerifyBamID2 (on the BAM) or CHARR (on the VCF\u002FgVCF) -- the real test |\n| Excess-het \u002F HWE | in equilibrium within ancestry | same | EXCESS het -> collapsed paralog\u002FCNV mapping artifact; het DEFICIT -> often real (Wahlund\u002Finbreeding) | Filter on excess het only, within ancestry, in controls; do NOT blanket-filter HWE |\n| Relatedness (kinship) | matches manifest | matches manifest | Unexpected high kinship -> sample swap\u002Fduplicate; a \"replicate\" that is not -> mislabel | Reconcile the all-pairs matrix against the pedigree with KING\u002Fsomalier\u002Fpeddy |\n\n## bcftools stats\n\n**Goal:** Generate comprehensive variant statistics (counts, Ti\u002FTv, per-sample het\u002Fhom and singletons, indel and depth distributions).\n\n**Approach:** Run bcftools stats and read the section-tagged output lines; add `-s -` for per-sample metrics.\n\n```bash\nbcftools stats input.vcf.gz > stats.txt              # cohort-level\nbcftools stats -s - input.vcf.gz > per_sample.txt    # per-sample (PSC\u002FPSI lines)\nbcftools stats file1.vcf.gz file2.vcf.gz > cmp.txt   # compare two callsets\nplot-vcfstats -p qc_plots\u002F stats.txt                 # render PDF + PNGs (needs matplotlib)\n```\n\nOutput sections: `SN` summary numbers, `TSTV` transition\u002Ftransversion, `SiS` singletons, `AF` allele-frequency spectrum, `QUAL` quality distribution, `IDD` indel-length distribution, `ST` substitution types, `DP` depth distribution, `PSC` per-sample counts (hom-ref, het, hom-alt, transitions, transversions, missing), `PSI` per-sample indels.\n\n```bash\nbcftools stats input.vcf.gz | grep \"^SN\"    | cut -f3-   # counts\nbcftools stats input.vcf.gz | grep \"^TSTV\"  | cut -f5     # Ti\u002FTv ratio\nbcftools stats -s - input.vcf.gz | grep \"^PSC\"           # per-sample het\u002Fhom\u002Fmissing\n```\n\n## Ti\u002FTv ratio\n\nTransitions (purine\u003C->purine A\u003C->G, pyrimidine\u003C->pyrimidine C\u003C->T) are favored over transversions because CpG deamination (methylated C->T) is the single most common vertebrate point mutation and is a transition, and because transitions are more often synonymous. A random error spectrum gives Ti\u002FTv ~0.5, so a callset diluted with false positives drifts DOWNWARD. WES runs higher than WGS (~3.0-3.3 vs ~2.0-2.1) because coding regions are CpG- and constraint-enriched and transitions at CpGs plus codon degeneracy push the ratio up.\n\nTi\u002FTv is the single fastest gross-error smell test. A WES callset reporting Ti\u002FTv ~2.1 is telling the analyst the filtering is too loose. Stratify: compute Ti\u002FTv on the novel fraction separately (below) since that is where false positives concentrate. Ancestry and target design shift the exact number, so compare against a matched cohort, not the absolute.\n\n## Het\u002Fhom ratio and ancestry\n\nThe per-sample het:non-ref-hom ratio reflects heterozygosity relative to the reference, so it is strongly ancestry-dependent: African-ancestry genomes diverge more from GRCh (a mostly European-ancestry assembly) and carry more het calls (commonly ~2.0+), European ancestry sits ~1.5-1.6, and the value shifts across populations. A single global het\u002Fhom cutoff is therefore wrong: it would flag every AFR sample in a EUR-tuned pipeline.\n\nInfer ancestry first (peddy\u002Fsomalier project onto 1000 Genomes PCs), then flag outliers WITHIN each ancestry group. An elevated het\u002Fhom versus same-ancestry peers indicates contamination (foreign reads manufacture spurious hets) or reference bias; a depressed het\u002Fhom indicates inbreeding\u002Fconsanguinity, a long run of homozygosity, or chromosome loss.\n\n## Novel\u002Fknown ratio via dbSNP\n\nOverlapping the callset with dbSNP gives an orthogonal false-positive signal independent of Ti\u002FTv. Annotate known\u002Fnovel and stratify by frequency, because the diagnostic differs by allele frequency: novel COMMON variants are almost always artifacts (real common variants are already catalogued), while novel rare\u002Fsingleton variants are expected and biologically real. A single novel% without frequency stratification is uninformative.\n\n```bash\nbcftools annotate -a dbsnp.vcf.gz -c ID input.vcf.gz -Oz -o annotated.vcf.gz\n# novel fraction = records with ID \".\" over total; stratify by INFO\u002FAF\nbcftools view -H annotated.vcf.gz | awk '{n++; if($3==\".\") novel++} END{print \"novel:\", novel\u002Fn}'\n```\n\n## Missingness and call rate\n\nCall rate is the fraction of sites with a non-missing genotype for a sample; missingness is its complement. Only `.\u002F.` (no-call) counts as missing; `0\u002F0` (confident hom-ref) does NOT, so treating no-call as hom-ref biases allele frequencies. GWAS convention drops samples below ~95-98% call rate and variants below ~95-99% (dataset-dependent conventions).\n\nThe iteration trap: sample-level and variant-level missingness are coupled, so applying both thresholds in one pass is wrong. Drop the worst samples, recompute per-variant missingness, drop the worst variants, and repeat. Critically, apply genotype-level filters (`.\u002F.` where GQ\u003C20 or DP\u003C8) BEFORE computing cohort missingness or HWE, or low-quality genotypes will drive both.\n\n```bash\nvcftools --gzvcf input.vcf.gz --missing-indv --out sample_miss   # .imiss (per-sample)\nvcftools --gzvcf input.vcf.gz --missing-site --out site_miss     # .lmiss (per-site)\n```\n\n## HWE filtering (excess-het only)\n\nHardy-Weinberg testing flags genotype frequencies that deviate from p^2:2pq:q^2, but a naive two-sided HWE gate throws away real biology. The discipline:\n\n- **Filter on EXCESS heterozygosity only.** Heterozygote excess is the signature of a mapping artifact: a duplicated\u002Fcollapsed region piles reads from two paralogous copies onto one locus, manufacturing spurious hets everywhere. Heterozygote DEFICIT, by contrast, is often real (Wahlund effect from substructure, inbreeding, selection, a true null allele). GATK's `ExcessHet` and `InbreedingCoeff` and gnomAD's `ExcessHet` filter the excess side only.\n- **Compute within an ancestry-homogeneous subgroup.** Pooling populations with different allele frequencies induces a Wahlund het-deficit that mimics genotyping error; HWE on a mixed cohort filters good variants.\n- **Use the EXACT test, not chi-square.** The chi-square approximation is anticonservative for rare variants and small samples; the standard is the Wigginton-Cutler-Abecasis exact test (implemented in vcftools `--hardy` and PLINK).\n- **In case\u002Fcontrol studies, compute HWE in CONTROLS only.** A true association at a strong-effect locus produces HWE deviation in cases; filtering it removes the hit.\n\n```bash\nvcftools --gzvcf controls.vcf.gz --hardy --out hwe               # exact-test P per site\n# GATK ExcessHet (phred): larger = more excess het = more suspect\nbcftools query -f '%CHROM\\t%POS\\t%INFO\u002FExcessHet\\n' input.vcf.gz | awk '$3>54.69'\n```\n\nThe threshold 54.69 is GATK's default ExcessHet cutoff (phred-scaled p ~= 3.4e-6, ~the 1000-sample z=-4.5 boundary); tune it to the cohort size.\n\n## Contamination signatures\n\nCross-sample contamination is visible in VCF statistics before any dedicated test: the het allele-balance distribution shifts away from 0.5 (foreign reads add minor-allele support at true hom sites and skew true hets), the het count and het\u002Fhom ratio rise, and the novel-fraction Ti\u002FTv drops. These are SIGNALS, not the measurement. The real test runs on the BAM\u002FCRAM: VerifyBamID2 (Zhang et al. 2020) estimates the contamination fraction alpha ancestry-agnostically by modeling observed allele fractions against population frequencies, and CHARR estimates alpha directly from VCF-level reference-read counts at hom-alt sites. An alpha above ~0.02-0.03 is a red flag; somatic pipelines are sensitive to even 1%. GATK pipelines feed `--contamination alpha` from VerifyBamID2. See variant-calling\u002Fgatk-variant-calling for wiring contamination estimates into calling.\n\n```bash\n# quick het allele-balance sanity check from AD (het genotypes only)\nbcftools query -i 'GT=\"het\"' -f '[%AD]\\n' input.vcf.gz | \\\n    awk -F',' '{ab=$2\u002F($1+$2); s+=ab; n++} END{print \"mean het AB:\", s\u002Fn}'   # expect ~0.5\n```\n\n## Sample-swap, relatedness, and sex checks (mandatory cohort QC)\n\nSample swaps are among the most common errors in sequencing studies, so identity QC is not optional. Build the all-pairs relatedness matrix and reconcile it against the manifest; swaps appear as off-diagonal surprises (unexpected relatedness) or on-diagonal failures (a \"replicate\" that is not).\n\n| Tool | Input | Detects | Notes |\n|------|-------|---------|-------|\n| `bcftools gtcheck` | VCF | Same-file swaps\u002Fduplicates (quick) | Native, no reference panel; discordance score, not a relatedness graph |\n| KING (Manichaikul 2010) | PLINK bed | Robust kinship without allele-freq\u002Fancestry assumptions | Reference method; kinship bands below |\n| peddy (Pedersen 2017) | VCF + PED | Reported vs inferred sex, relationships, ancestry (PCA on 1000G) | Fast, VCF-only; ideal PED-vs-VCF reconciliation |\n| somalier (Pedersen 2020) | BAM\u002FCRAM\u002FVCF | Relatedness\u002Fancestry\u002Fsex at scale; cross-checks RNA-seq vs WGS | Tiny per-sample sketches; tens of thousands of samples in seconds |\n\nKING kinship coefficient bands: >0.354 duplicate\u002FMZ twin, [0.177, 0.354] first-degree (parent-child, full sib), [0.0884, 0.177] second-degree, [0.0442, 0.0884] third-degree. A pair not expected to be related at ~0.5 is a swap or duplicate.\n\n```bash\n# bcftools: cross-check all samples in one file (no -g), or against a truth VCF (-g)\nbcftools gtcheck input.vcf.gz > gtcheck.txt          # DC lines: query, genotyped, discordance, sites\nbcftools gtcheck -g reference.vcf.gz query.vcf.gz    # concordance to a genotyping panel\n\n# peddy: PED-vs-VCF sex\u002Frelatedness\u002Fancestry, 4 CPUs, HTML + CSVs\npython -m peddy -p 4 --plot --prefix cohort_qc input.vcf.gz cohort.ped\n\n# somalier: extract sketches then relate against the pedigree\nsomalier extract -d extracted\u002F --sites sites.vcf.gz -f ref.fa input.vcf.gz\nsomalier relate --ped cohort.ped extracted\u002F*.somalier    # writes an HTML relatedness report\nsomalier ancestry --labels 1kg-labels.tsv 1kg\u002F*.somalier ++ extracted\u002F*.somalier    # PCA projection (labelled ++ query)\n\n# vcftools: KING-robust kinship directly from a VCF\nvcftools --gzvcf input.vcf.gz --relatedness2 --out kin    # .relatedness2 (Manichaikul method)\n```\n\n## Stratified evaluation\n\nA caller with 99% overall accuracy may drop to 70% in difficult regions, so single-number accuracy hides where a callset fails. Evaluate stratified by region class using GIAB stratification BED files (github.com\u002Fgenome-in-a-bottle\u002Fgenome-stratifications).\n\n```bash\nbcftools stats -R easy_regions.bed      input.vcf.gz > easy.txt\nbcftools stats -R difficult_regions.bed input.vcf.gz > difficult.txt\n```\n\nKey strata and their failure modes: homopolymer runs (systematic indel errors, Illumina\u002FIon Torrent), tandem repeats \u002F low-complexity (alignment ambiguity inflates FP and FN), segmental duplications (paralogous mapping -> false hets), high-GC >70% \u002F low-GC \u003C25% (coverage-bias missingness), MHC\u002Fcentromeric (extreme polymorphism or repetitiveness). A drop in Ti\u002FTv within difficult regions confirms elevated false positives there.\n\n## Quick counts with query\n\n```bash\nbcftools view -H input.vcf.gz | wc -l              # total records\nbcftools view -v snps   -H input.vcf.gz | wc -l    # SNPs\nbcftools view -v indels -H input.vcf.gz | wc -l    # indels\nbcftools view -f PASS   -H input.vcf.gz | wc -l    # PASS variants\nbcftools query -f '%QUAL\\n' input.vcf.gz | awk '{s+=$1;n++} END{print \"mean QUAL:\", s\u002Fn}'\n```\n\nSee examples\u002Fvcf_stats.py for a cyvcf2 script computing counts, Ti\u002FTv, and mean QUAL in one pass; the usage guide covers per-sample genotype distributions and the allele-frequency spectrum.\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Full stats | `bcftools stats input.vcf.gz` |\n| Per-sample het\u002Fhom\u002Fmissing | `bcftools stats -s - input.vcf.gz \\| grep \"^PSC\"` |\n| Ti\u002FTv ratio | `bcftools stats input.vcf.gz \\| grep \"^TSTV\" \\| cut -f5` |\n| Per-sample missingness | `vcftools --gzvcf in.vcf.gz --missing-indv` |\n| Exact HWE (controls) | `vcftools --gzvcf controls.vcf.gz --hardy` |\n| KING kinship | `vcftools --gzvcf in.vcf.gz --relatedness2` |\n| Sex\u002Fancestry\u002Frelatedness | `python -m peddy -p 4 --plot --prefix qc in.vcf.gz in.ped` |\n| Scalable identity QC | `somalier extract ...` then `somalier relate --ped ...` |\n| Plot stats | `plot-vcfstats -p dir stats.txt` |\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Every AFR sample flagged as high het\u002Fhom | Single global cutoff across ancestries | Infer ancestry, flag outliers within each group |\n| Good variants filtered by HWE | Two-sided HWE on a mixed cohort or on cases | Excess-het only, within ancestry, controls-only |\n| Spurious HWE\u002Fmissingness | Cohort metrics computed before genotype filtering | Set `.\u002F.` on low GQ\u002FDP first, then recompute |\n| `bcftools gtcheck -G 1` errors | `-G` removed after the 1.10 rewrite | Drop `-G`; cross-check runs by default without `-g` |\n| Low Ti\u002FTv only in novel set | False positives concentrate in novel variants | Raise stringency; recheck against dbSNP overlap |\n| `plot-vcfstats not found` \u002F no plots | matplotlib missing or not on PATH | `pip install matplotlib`; check `which plot-vcfstats` |\n\n## Related Skills\n\n- variant-calling\u002Ffiltering-best-practices - Apply the site and genotype filters these metrics motivate\n- variant-calling\u002Fgatk-variant-calling - VerifyBamID2 contamination estimate feeding `--contamination`\n- variant-calling\u002Fvariant-normalization - Normalize before comparing or annotating call sets\n- variant-calling\u002Fvcf-basics - View, query, and understand VCF fields\n- variant-calling\u002Fvcf-manipulation - Compare and merge call sets\n- variant-calling\u002Fjoint-calling - Cohort genotyping where population QC applies\n- alignment-files\u002Fbam-statistics - Upstream alignment QC that drives variant statistics\n\n## References\n\n- Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. 2021 *GigaScience* 10:giab008. (bcftools stats\u002Fgtcheck)\n- Danecek P, Auton A, Abecasis G, et al. The variant call format and VCFtools. 2011 *Bioinformatics* 27:2156-2158. (vcftools QC)\n- Wigginton JE, Cutler DJ, Abecasis GR. A note on exact tests of Hardy-Weinberg equilibrium. 2005 *American Journal of Human Genetics* 76:887-893. (exact HWE test)\n- Manichaikul A, Mychaleckyj JC, Rich SS, et al. Robust relationship inference in genome-wide association studies. 2010 *Bioinformatics* 26:2867-2873. (KING kinship)\n- Pedersen BS, Quinlan AR. Who's Who? Detecting and Resolving Sample Anomalies in Human DNA Sequencing Studies with Peddy. 2017 *American Journal of Human Genetics* 100:406-413. (peddy)\n- Pedersen BS, Bhetariya PJ, Brown J, et al. Somalier: rapid relatedness estimation for cancer and germline studies using efficient genome sketches. 2020 *Genome Medicine* 12:62. (somalier)\n- Zhang F, Flickinger M, Gagliano Taliun SA, et al. Ancestry-agnostic estimation of DNA sample contamination from sequence reads. 2020 *Genome Research* 30:185-194. (VerifyBamID2)\n","## Version Compatibility\n\nReference examples tested with: bcftools 1.19+, vcftools 0.1.16+, somalier 0.2.19+, peddy 0.4.8+, cyvcf2 0.30+, numpy 1.26+\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\nNote: `bcftools gtcheck` was rewritten around bcftools 1.10; the old `-G\u002F--GTs-only` flag is gone. Modern gtcheck cross-checks all samples in one file when `-g` is omitted, and uses `-E\u002F--error-probability`. Verify flags against the installed build.\n\n# VCF Statistics\n\n**\"Is this callset any good, and are the samples who the manifest says they are?\"** -> Summarize variant counts and quality distributions, then read each QC metric as a signal whose expected value is context-dependent.\n\n- CLI: `bcftools stats` (+ `plot-vcfstats`), `vcftools`, `somalier`, `peddy`\n- Python: `cyvcf2` for custom per-record statistics\n\n## The governing principle\n\nNo QC metric has a universal pass value. Each metric's expected range depends on the assay (WGS vs WES), the sample's ancestry, and the cohort it sits in, so QC is not threshold-checking but reading a deviation for its mechanistic meaning and acting on it. Three rules follow. First, always compare a sample against a matched cohort (same assay, same inferred ancestry), never against an absolute number. Second, order of operations matters: apply genotype-level filters (set `.\u002F.` where GQ\u002FDP\u002Fallele-balance fail) BEFORE computing cohort missingness, call rate, or HWE, because low-quality genotypes left in the matrix drive spurious missingness and HWE deviation. Third, sample-identity QC is a graph problem, not a per-sample check: build the all-pairs relatedness matrix and reconcile it against the declared pedigree\u002Fmanifest, and do this BEFORE any association or burden analysis, because one undetected swap or contaminated sample can fabricate or erase a genome-wide-significant hit.\n\n## QC metric decision table\n\nExpected values are stated conventions (they shift with capture kit, ancestry, reference build, and caller); treat them as starting points and confirm against a matched cohort.\n\n| Metric | Expected (WGS) | Expected (WES) | A deviation MEANS | Action |\n|--------|---------------|---------------|-------------------|--------|\n| Ti\u002FTv (overall) | ~2.0-2.1 | ~3.0-3.3 | Low -> false-positive transversions dilute the signal (random errors have Ti\u002FTv ~0.5); high -> over-filtering removed transversions | Tighten site filters if low; check filter for transversion bias if high |\n| Ti\u002FTv (novel only) | near overall | near overall | Novel Ti\u002FTv well below the known-site value -> FP contamination in the novel fraction | Raise stringency; the novel set is where FPs concentrate |\n| Het\u002Fhom ratio | ancestry-dependent (~1.5-1.6 EUR, ~2.0+ AFR) | same | High vs same-ancestry cohort -> contamination or reference bias; low -> inbreeding\u002Fconsanguinity\u002FROH or chromosome loss | Stratify by ancestry first; then flag within-ancestry outliers |\n| Novel fraction (vs dbSNP) | low for common; high for rare\u002Fsingleton | same | Novel COMMON variants -> almost always artifacts; high novel rare -> expected or under-studied population | Stratify novel% by frequency; investigate common novels |\n| Call rate (per sample) | >95-98% | >95-98% | Low -> low-coverage\u002Flow-quality sample | Drop worst samples, then recompute per-variant missingness (iterate) |\n| Call rate (per variant) | >95-99% | >95-99% | Low -> site in a hard-to-genotype region | Drop worst variants after sample QC; rare variants tolerate more missing |\n| Het allele-balance (hets) | centered on 0.5 | 0.5 | Shifted away from 0.5 + elevated het count -> contamination signature | Confirm with VerifyBamID2 (on the BAM) or CHARR (on the VCF\u002FgVCF) -- the real test |\n| Excess-het \u002F HWE | in equilibrium within ancestry | same | EXCESS het -> collapsed paralog\u002FCNV mapping artifact; het DEFICIT -> often real (Wahlund\u002Finbreeding) | Filter on excess het only, within ancestry, in controls; do NOT blanket-filter HWE |\n| Relatedness (kinship) | matches manifest | matches manifest | Unexpected high kinship -> sample swap\u002Fduplicate; a \"replicate\" that is not -> mislabel | Reconcile the all-pairs matrix against the pedigree with KING\u002Fsomalier\u002Fpeddy |\n\n## bcftools stats\n\n**Goal:** Generate comprehensive variant statistics (counts, Ti\u002FTv, per-sample het\u002Fhom and singletons, indel and depth distributions).\n\n**Approach:** Run bcftools stats and read the section-tagged output lines; add `-s -` for per-sample metrics.\n\n```bash\nbcftools stats input.vcf.gz > stats.txt              # cohort-level\nbcftools stats -s - input.vcf.gz > per_sample.txt    # per-sample (PSC\u002FPSI lines)\nbcftools stats file1.vcf.gz file2.vcf.gz > cmp.txt   # compare two callsets\nplot-vcfstats -p qc_plots\u002F stats.txt                 # render PDF + PNGs (needs matplotlib)\n```\n\nOutput sections: `SN` summary numbers, `TSTV` transition\u002Ftransversion, `SiS` singletons, `AF` allele-frequency spectrum, `QUAL` quality distribution, `IDD` indel-length distribution, `ST` substitution types, `DP` depth distribution, `PSC` per-sample counts (hom-ref, het, hom-alt, transitions, transversions, missing), `PSI` per-sample indels.\n\n```bash\nbcftools stats input.vcf.gz | grep \"^SN\"    | cut -f3-   # counts\nbcftools stats input.vcf.gz | grep \"^TSTV\"  | cut -f5     # Ti\u002FTv ratio\nbcftools stats -s - input.vcf.gz | grep \"^PSC\"           # per-sample het\u002Fhom\u002Fmissing\n```\n\n## Ti\u002FTv ratio\n\nTransitions (purine\u003C->purine A\u003C->G, pyrimidine\u003C->pyrimidine C\u003C->T) are favored over transversions because CpG deamination (methylated C->T) is the single most common vertebrate point mutation and is a transition, and because transitions are more often synonymous. A random error spectrum gives Ti\u002FTv ~0.5, so a callset diluted with false positives drifts DOWNWARD. WES runs higher than WGS (~3.0-3.3 vs ~2.0-2.1) because coding regions are CpG- and constraint-enriched and transitions at CpGs plus codon degeneracy push the ratio up.\n\nTi\u002FTv is the single fastest gross-error smell test. A WES callset reporting Ti\u002FTv ~2.1 is telling the analyst the filtering is too loose. Stratify: compute Ti\u002FTv on the novel fraction separately (below) since that is where false positives concentrate. Ancestry and target design shift the exact number, so compare against a matched cohort, not the absolute.\n\n## Het\u002Fhom ratio and ancestry\n\nThe per-sample het:non-ref-hom ratio reflects heterozygosity relative to the reference, so it is strongly ancestry-dependent: African-ancestry genomes diverge more from GRCh (a mostly European-ancestry assembly) and carry more het calls (commonly ~2.0+), European ancestry sits ~1.5-1.6, and the value shifts across populations. A single global het\u002Fhom cutoff is therefore wrong: it would flag every AFR sample in a EUR-tuned pipeline.\n\nInfer ancestry first (peddy\u002Fsomalier project onto 1000 Genomes PCs), then flag outliers WITHIN each ancestry group. An elevated het\u002Fhom versus same-ancestry peers indicates contamination (foreign reads manufacture spurious hets) or reference bias; a depressed het\u002Fhom indicates inbreeding\u002Fconsanguinity, a long run of homozygosity, or chromosome loss.\n\n## Novel\u002Fknown ratio via dbSNP\n\nOverlapping the callset with dbSNP gives an orthogonal false-positive signal independent of Ti\u002FTv. Annotate known\u002Fnovel and stratify by frequency, because the diagnostic differs by allele frequency: novel COMMON variants are almost always artifacts (real common variants are already catalogued), while novel rare\u002Fsingleton variants are expected and biologically real. A single novel% without frequency stratification is uninformative.\n\n```bash\nbcftools annotate -a dbsnp.vcf.gz -c ID input.vcf.gz -Oz -o annotated.vcf.gz\n# novel fraction = records with ID \".\" over total; stratify by INFO\u002FAF\nbcftools view -H annotated.vcf.gz | awk '{n++; if($3==\".\") novel++} END{print \"novel:\", novel\u002Fn}'\n```\n\n## Missingness and call rate\n\nCall rate is the fraction of sites with a non-missing genotype for a sample; missingness is its complement. Only `.\u002F.` (no-call) counts as missing; `0\u002F0` (confident hom-ref) does NOT, so treating no-call as hom-ref biases allele frequencies. GWAS convention drops samples below ~95-98% call rate and variants below ~95-99% (dataset-dependent conventions).\n\nThe iteration trap: sample-level and variant-level missingness are coupled, so applying both thresholds in one pass is wrong. Drop the worst samples, recompute per-variant missingness, drop the worst variants, and repeat. Critically, apply genotype-level filters (`.\u002F.` where GQ\u003C20 or DP\u003C8) BEFORE computing cohort missingness or HWE, or low-quality genotypes will drive both.\n\n```bash\nvcftools --gzvcf input.vcf.gz --missing-indv --out sample_miss   # .imiss (per-sample)\nvcftools --gzvcf input.vcf.gz --missing-site --out site_miss     # .lmiss (per-site)\n```\n\n## HWE filtering (excess-het only)\n\nHardy-Weinberg testing flags genotype frequencies that deviate from p^2:2pq:q^2, but a naive two-sided HWE gate throws away real biology. The discipline:\n\n- **Filter on EXCESS heterozygosity only.** Heterozygote excess is the signature of a mapping artifact: a duplicated\u002Fcollapsed region piles reads from two paralogous copies onto one locus, manufacturing spurious hets everywhere. Heterozygote DEFICIT, by contrast, is often real (Wahlund effect from substructure, inbreeding, selection, a true null allele). GATK's `ExcessHet` and `InbreedingCoeff` and gnomAD's `ExcessHet` filter the excess side only.\n- **Compute within an ancestry-homogeneous subgroup.** Pooling populations with different allele frequencies induces a Wahlund het-deficit that mimics genotyping error; HWE on a mixed cohort filters good variants.\n- **Use the EXACT test, not chi-square.** The chi-square approximation is anticonservative for rare variants and small samples; the standard is the Wigginton-Cutler-Abecasis exact test (implemented in vcftools `--hardy` and PLINK).\n- **In case\u002Fcontrol studies, compute HWE in CONTROLS only.** A true association at a strong-effect locus produces HWE deviation in cases; filtering it removes the hit.\n\n```bash\nvcftools --gzvcf controls.vcf.gz --hardy --out hwe               # exact-test P per site\n# GATK ExcessHet (phred): larger = more excess het = more suspect\nbcftools query -f '%CHROM\\t%POS\\t%INFO\u002FExcessHet\\n' input.vcf.gz | awk '$3>54.69'\n```\n\nThe threshold 54.69 is GATK's default ExcessHet cutoff (phred-scaled p ~= 3.4e-6, ~the 1000-sample z=-4.5 boundary); tune it to the cohort size.\n\n## Contamination signatures\n\nCross-sample contamination is visible in VCF statistics before any dedicated test: the het allele-balance distribution shifts away from 0.5 (foreign reads add minor-allele support at true hom sites and skew true hets), the het count and het\u002Fhom ratio rise, and the novel-fraction Ti\u002FTv drops. These are SIGNALS, not the measurement. The real test runs on the BAM\u002FCRAM: VerifyBamID2 (Zhang et al. 2020) estimates the contamination fraction alpha ancestry-agnostically by modeling observed allele fractions against population frequencies, and CHARR estimates alpha directly from VCF-level reference-read counts at hom-alt sites. An alpha above ~0.02-0.03 is a red flag; somatic pipelines are sensitive to even 1%. GATK pipelines feed `--contamination alpha` from VerifyBamID2. See variant-calling\u002Fgatk-variant-calling for wiring contamination estimates into calling.\n\n```bash\n# quick het allele-balance sanity check from AD (het genotypes only)\nbcftools query -i 'GT=\"het\"' -f '[%AD]\\n' input.vcf.gz | \\\n    awk -F',' '{ab=$2\u002F($1+$2); s+=ab; n++} END{print \"mean het AB:\", s\u002Fn}'   # expect ~0.5\n```\n\n## Sample-swap, relatedness, and sex checks (mandatory cohort QC)\n\nSample swaps are among the most common errors in sequencing studies, so identity QC is not optional. Build the all-pairs relatedness matrix and reconcile it against the manifest; swaps appear as off-diagonal surprises (unexpected relatedness) or on-diagonal failures (a \"replicate\" that is not).\n\n| Tool | Input | Detects | Notes |\n|------|-------|---------|-------|\n| `bcftools gtcheck` | VCF | Same-file swaps\u002Fduplicates (quick) | Native, no reference panel; discordance score, not a relatedness graph |\n| KING (Manichaikul 2010) | PLINK bed | Robust kinship without allele-freq\u002Fancestry assumptions | Reference method; kinship bands below |\n| peddy (Pedersen 2017) | VCF + PED | Reported vs inferred sex, relationships, ancestry (PCA on 1000G) | Fast, VCF-only; ideal PED-vs-VCF reconciliation |\n| somalier (Pedersen 2020) | BAM\u002FCRAM\u002FVCF | Relatedness\u002Fancestry\u002Fsex at scale; cross-checks RNA-seq vs WGS | Tiny per-sample sketches; tens of thousands of samples in seconds |\n\nKING kinship coefficient bands: >0.354 duplicate\u002FMZ twin, [0.177, 0.354] first-degree (parent-child, full sib), [0.0884, 0.177] second-degree, [0.0442, 0.0884] third-degree. A pair not expected to be related at ~0.5 is a swap or duplicate.\n\n```bash\n# bcftools: cross-check all samples in one file (no -g), or against a truth VCF (-g)\nbcftools gtcheck input.vcf.gz > gtcheck.txt          # DC lines: query, genotyped, discordance, sites\nbcftools gtcheck -g reference.vcf.gz query.vcf.gz    # concordance to a genotyping panel\n\n# peddy: PED-vs-VCF sex\u002Frelatedness\u002Fancestry, 4 CPUs, HTML + CSVs\npython -m peddy -p 4 --plot --prefix cohort_qc input.vcf.gz cohort.ped\n\n# somalier: extract sketches then relate against the pedigree\nsomalier extract -d extracted\u002F --sites sites.vcf.gz -f ref.fa input.vcf.gz\nsomalier relate --ped cohort.ped extracted\u002F*.somalier    # writes an HTML relatedness report\nsomalier ancestry --labels 1kg-labels.tsv 1kg\u002F*.somalier ++ extracted\u002F*.somalier    # PCA projection (labelled ++ query)\n\n# vcftools: KING-robust kinship directly from a VCF\nvcftools --gzvcf input.vcf.gz --relatedness2 --out kin    # .relatedness2 (Manichaikul method)\n```\n\n## Stratified evaluation\n\nA caller with 99% overall accuracy may drop to 70% in difficult regions, so single-number accuracy hides where a callset fails. Evaluate stratified by region class using GIAB stratification BED files (github.com\u002Fgenome-in-a-bottle\u002Fgenome-stratifications).\n\n```bash\nbcftools stats -R easy_regions.bed      input.vcf.gz > easy.txt\nbcftools stats -R difficult_regions.bed input.vcf.gz > difficult.txt\n```\n\nKey strata and their failure modes: homopolymer runs (systematic indel errors, Illumina\u002FIon Torrent), tandem repeats \u002F low-complexity (alignment ambiguity inflates FP and FN), segmental duplications (paralogous mapping -> false hets), high-GC >70% \u002F low-GC \u003C25% (coverage-bias missingness), MHC\u002Fcentromeric (extreme polymorphism or repetitiveness). A drop in Ti\u002FTv within difficult regions confirms elevated false positives there.\n\n## Quick counts with query\n\n```bash\nbcftools view -H input.vcf.gz | wc -l              # total records\nbcftools view -v snps   -H input.vcf.gz | wc -l    # SNPs\nbcftools view -v indels -H input.vcf.gz | wc -l    # indels\nbcftools view -f PASS   -H input.vcf.gz | wc -l    # PASS variants\nbcftools query -f '%QUAL\\n' input.vcf.gz | awk '{s+=$1;n++} END{print \"mean QUAL:\", s\u002Fn}'\n```\n\nSee examples\u002Fvcf_stats.py for a cyvcf2 script computing counts, Ti\u002FTv, and mean QUAL in one pass; the usage guide covers per-sample genotype distributions and the allele-frequency spectrum.\n\n## Quick Reference\n\n| Task | Command |\n|------|---------|\n| Full stats | `bcftools stats input.vcf.gz` |\n| Per-sample het\u002Fhom\u002Fmissing | `bcftools stats -s - input.vcf.gz \\| grep \"^PSC\"` |\n| Ti\u002FTv ratio | `bcftools stats input.vcf.gz \\| grep \"^TSTV\" \\| cut -f5` |\n| Per-sample missingness | `vcftools --gzvcf in.vcf.gz --missing-indv` |\n| Exact HWE (controls) | `vcftools --gzvcf controls.vcf.gz --hardy` |\n| KING kinship | `vcftools --gzvcf in.vcf.gz --relatedness2` |\n| Sex\u002Fancestry\u002Frelatedness | `python -m peddy -p 4 --plot --prefix qc in.vcf.gz in.ped` |\n| Scalable identity QC | `somalier extract ...` then `somalier relate --ped ...` |\n| Plot stats | `plot-vcfstats -p dir stats.txt` |\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| Every AFR sample flagged as high het\u002Fhom | Single global cutoff across ancestries | Infer ancestry, flag outliers within each group |\n| Good variants filtered by HWE | Two-sided HWE on a mixed cohort or on cases | Excess-het only, within ancestry, controls-only |\n| Spurious HWE\u002Fmissingness | Cohort metrics computed before genotype filtering | Set `.\u002F.` on low GQ\u002FDP first, then recompute |\n| `bcftools gtcheck -G 1` errors | `-G` removed after the 1.10 rewrite | Drop `-G`; cross-check runs by default without `-g` |\n| Low Ti\u002FTv only in novel set | False positives concentrate in novel variants | Raise stringency; recheck against dbSNP overlap |\n| `plot-vcfstats not found` \u002F no plots | matplotlib missing or not on PATH | `pip install matplotlib`; check `which plot-vcfstats` |\n\n## Related Skills\n\n- variant-calling\u002Ffiltering-best-practices - Apply the site and genotype filters these metrics motivate\n- variant-calling\u002Fgatk-variant-calling - VerifyBamID2 contamination estimate feeding `--contamination`\n- variant-calling\u002Fvariant-normalization - Normalize before comparing or annotating call sets\n- variant-calling\u002Fvcf-basics - View, query, and understand VCF fields\n- variant-calling\u002Fvcf-manipulation - Compare and merge call sets\n- variant-calling\u002Fjoint-calling - Cohort genotyping where population QC applies\n- alignment-files\u002Fbam-statistics - Upstream alignment QC that drives variant statistics\n\n## References\n\n- Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. 2021 *GigaScience* 10:giab008. (bcftools stats\u002Fgtcheck)\n- Danecek P, Auton A, Abecasis G, et al. The variant call format and VCFtools. 2011 *Bioinformatics* 27:2156-2158. (vcftools QC)\n- Wigginton JE, Cutler DJ, Abecasis GR. A note on exact tests of Hardy-Weinberg equilibrium. 2005 *American Journal of Human Genetics* 76:887-893. (exact HWE test)\n- Manichaikul A, Mychaleckyj JC, Rich SS, et al. Robust relationship inference in genome-wide association studies. 2010 *Bioinformatics* 26:2867-2873. (KING kinship)\n- Pedersen BS, Quinlan AR. Who's Who? Detecting and Resolving Sample Anomalies in Human DNA Sequencing Studies with Peddy. 2017 *American Journal of Human Genetics* 100:406-413. (peddy)\n- Pedersen BS, Bhetariya PJ, Brown J, et al. Somalier: rapid relatedness estimation for cancer and germline studies using efficient genome sketches. 2020 *Genome Medicine* 12:62. (somalier)\n- Zhang F, Flickinger M, Gagliano Taliun SA, et al. Ancestry-agnostic estimation of DNA sample contamination from sequence reads. 2020 *Genome Research* 30:185-194. (VerifyBamID2)\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","cli","2026-09-20","variant-calling\u002Fvcf-statistics\u002FSKILL.md","bcftools","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-vcf-statistics","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-vcf-statistics",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-vcf-statistics",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-vcf-statistics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-vcf-statistics\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fvcf_stats.py","SCRIPT","脚本",2176,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-vcf-statistics\u002Fexamples\u002Fvcf_stats.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",12645,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-vcf-statistics\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",[],[]]