PFST(1)

πŸ“¦
version 1.0.12 Β· 3 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ PFST(1) β€” like, the pFst page, bestie πŸ’…

okay so this is the manual page for pFst, from the pFst (VCF statistics) crew 🧚 sit down, grab a strawberry, we're doing allele frequencies today πŸ“


🌸 NAME 🌸

pFst β€” no cap, that's the whole name πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

pFst –target 0,1,2,3,4,5,6,7 –background 11,12,13,16,17,19,22 –file
my.vcf –deltaaf 0.1 –type PL

like. that's it. that's the vibe check βœ…


πŸ’œ DESCRIPTION πŸ’œ

pFst is a probabilistic approach for detecting differences in allele frequencies between two populations. literally what it says on the tin, periodt πŸ‘‘


✨ OPTIONS ✨

pFst is a likelihood ratio test (LRT) quantifying allele frequency differences between populations. okay so here's the tea, bestie:

  • by default the LRT uses the binomial distribution πŸŽ€
  • if Genotype likelihoods are provided it uses a modified binomial that weights each allele count by its certainty (so it's like, the binomial but it knows how sure it is, iconic) πŸ’…
  • if type is set to 'PO' the LRT uses a beta distribution to fit the allele frequency spectrum of the target and background. PO requires the AD and DP genotype fields and requires at least two pools for the target and background 🫢
  • the p-value calculated in pFst is based on the chi-squared distribution with one degree of freedom 🌈

Output : 3 columns : (yes, exactly three, no extras, we're minimal here)

  1. seqid
  2. position
  3. pFst probability

now the flags, and there are a lot of them, so lock in πŸ”₯

  • -t, --target β€” required. argument: a zero based comma separated list of target individuals corresponding to VCF columns 🎯
  • -b, --background β€” required. argument: a zero based comma separated list of background individuals corresponding to VCF columns 🎯
  • -f, --file β€” required. argument: a properly formatted VCF. (emphasis on properly, bestie, we will know) πŸ“„
  • -y, --type β€” required. argument: genotype likelihood format ; genotypes: GP, GL or PL; pooled: PO 🧬
  • -d, --deltaaf β€” optional. argument: skip sites where the difference in allele frequencies is less than deltaaf, default is zero 🚫
  • -r, --region β€” optional. argument: a tabix compliant genomic range : seqid or seqid:start-end πŸ—ΊοΈ
  • -c, --counts β€” optional. switch : use genotype counts rather than genotype likelihoods to estimate parameters, default false πŸ”

Type: statistics πŸ“Š


πŸ’€ EXIT VALUES πŸ’€

  • 0 β€” Success πŸ₯³
  • not 0 β€” Failure 😭
not me checking exit codes like they're a text from my crush. 0 means they replied. not 0 means. yeah. πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

vcflib(1) β€” go read that one too, it's giving connected universe πŸ¦‹


πŸŽ€ OTHER πŸŽ€

🌟 LICENSE 🌟

Copyright 2011-2024 (C) Erik Garrison and vcflib contributors. MIT licensed. Copyright 2020-2024 (C) Pjotr Prins.

πŸ’– AUTHORS πŸ’–

Erik Garrison and vcflib contributors.


and that's the whole page, bestie!! this one shipped as pFst (vcflib) β€” that's the source/version tag living down in the footer, and the page itself is dated PFST(1) up top like a lil timestamp on the whole thing 🫢 ily, go genotype something responsibly βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from