vcf(5)
๐ฆ vcf(5) ๐ฆ Bioinformatics formats
๐ NAME ๐
okay so the thing we're talking about is vcf, short for Variant Call Format. it's giving data file energy and I am obsessed ๐ญโจ
๐ธ DESCRIPTION ๐ธ
okay bestie, so the Variant Call Format (VCF) is a TAB-delimited format. every data line has the same fields in the same order, and it's giving spreadsheet but make it bioinformatics ๐
1,CHROMโ the CHROMosome name ๐ง2,POSโ the left-most POSition of the variant ๐3,IDโ a unique variant IDentifier ๐ชช4,REFโ the REFerence allele ๐5,ALTโ the ALTernate allele(s), comma-separated ๐6,QUALโ the variant/reference QUALity score ๐ฏ7,FILTERโ the FILTERs that got applied ๐งน8,INFOโ INFOrmation about the variant, semicolon-separated ๐9,FORMATโ the FORMAT of the genotype fields, colon-separated (this one's optional, no pressure) ๐10+,SAMPLEโ SAMPLE genotypes and per-sample info (also optional) ๐ซถ
okay now the INFO tags. these are the ones samtools and bcftools use, and I'm going to explain every single one because I care ๐ฅน
AF1โ max-likelihood estimate of the site allele frequency (AF) of the first ALT allele (double) โจDPโ raw read depth, without any quality filtering (int) ๐DP4โ # of high-quality reference forward bases, ref reverse, alternate for and alt rev bases (int[4]) ๐งฎFQโ consensus quality. positive means the sample genotypes are different, negative means they're not (int) โ๏ธMQโ Root-Mean-Square mapping quality of the covering reads (int) ๐บ๏ธPC2โ Phred probability of AF in group1 samples being larger (,smaller) than in group2 (int[2]) ๐ฒPCHI2โ posterior weightedchi^2P-value between group1 and group2 samples (double) ๐งชPV4โ P-value for strand bias, baseQ bias, mapQ bias and tail distance bias (double[4]) ๐QCHI2โ Phred-scaledPCHI2(int) ๐ก๏ธRPโ # of permutations yielding a smallerPCHI2(int) ๐CLRโ Phred log ratio of genotype likelihoods with and without the trio/pair constraint (int) ๐จโ๐ฉโ๐งUGTโ most probable genotype configuration without the trio constraint (string) ๐งฌCGTโ most probable configuration with the trio constraint (string) ๐งฌโจVDBโ tests variant positions within reads. it's meant for filtering RNA-seq artifacts around splice sites (float) โ๏ธRPBโ Mann-Whitney rank-sum test for tail distance bias (float) ๐HWEโ Hardy-Weinberg equilibrium test (Wigginton et al) (float) โ๏ธ
๐ฆ SEE ALSO ๐ฆ
https://github.com/samtools/hts-specsโ the full VCF/BCF file format spec, the ultimate source of truth ๐- A note on exact tests of Hardy-Weinberg equilibrium โ Wigginton JE et al PMID:15789306 ๐
bestie that's the whole tea ๐ซถ๐ this page is from htslib, dated August 2013, and it's vcf(5) forever ๐งโจ
๐ฆ where this page comes from
- debian bookworm: libhts3 1.16+ds-3 ยท MIT
- debian trixie: libhts3t64 1.21+ds-1 ยท MIT
- epel 10: htslib 1.24-1.el10_3 ยท MIT AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- epel 9: htslib 1.23.1-1.el9 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 43: htslib 1.15.1-9.fc43 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 43: htslib 1.15.1-9.fc43 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 43: htslib 1.23.1-1.fc43 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 43: htslib 1.23.1-1.fc43 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 44: htslib 1.23.1-1.fc44 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- fedora 44: htslib 1.23.1-1.fc44 ยท LicenseRef-Callaway-MIT AND LicenseRef-Callaway-BSD
- nixos 26.05: htslib 1.22
- nixpkgs unstable: htslib 1.24
- opensuse-leap 16.0: htsfile 1.20-bp160.1.14 ยท MIT
- opensuse-leap 16.0: htsfile 1.20-bp160.1.14 ยท MIT
- opensuse-leap 16.0: htsfile 1.20-bp160.1.14 ยท MIT
- opensuse-leap 16.0: htsfile 1.20-bp160.1.14 ยท MIT
- ubuntu jammy: libhts3 1.13+ds-2build1 ยท MIT
- ubuntu noble: libhts3t64 1.19+ds-1.1build3 ยท MIT
- ubuntu questing: libhts3t64 1.21+ds-1 ยท MIT
- ubuntu resolute: libhts3t64 1.22.1+ds2-1 ยท MIT
- ubuntu stonking: libhts3t64 1.22.1+ds2-1build1 ยท MIT
- Copyright (C) 2011 Broad Institute
- Copyright (C) 2013-2014 Genome Research Ltd
- ๐ girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms