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 weighted chi^2 P-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-scaled PCHI2 (int) ๐ŸŒก๏ธ
  • RP โ€” # of permutations yielding a smaller PCHI2 (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