HYPHY(1)

๐ŸŒธ HYPHY(1) ๐ŸŒธ

โœจ NAME โœจ

okay so the whole deal is hyphy ๐Ÿ’–, a tool for hypothesis testing using phylogenies, and this is the pthreads version ๐Ÿงš

โœจ DESCRIPTION โœจ

bestie, this is the usage line ๐Ÿ‘‘

usage: hyphy or HYPHYMPI [-h] [--help][-c] [-d] [-i] [-p]
       [BASEPATH=directory path] [CPU=integer] [LIBPATH=library path]
       [USEPATH=library path] [<standard analysis name> or <path to hyphy batch
       file>] [--keyword value ...] [positional arguments ...]

So you can run a HyPhy analysis either interactively or in batch mode ๐Ÿฆ‹

๐ŸŽ€ optional flags

  • -h, --help โ€” shows the help message and exits ๐Ÿ™ˆ
  • -c โ€” calculator mode! HyPhy drops you into expression evaluation until you type exit ๐Ÿงฎ
  • -d โ€” debug mode ๐Ÿ› HyPhy drops you into expression evaluation mode if a script errors
  • -i โ€” interactive mode โœจ HyPhy always asks you for analysis options, even when defaults are available
  • -p โ€” postprocessor mode ๐ŸŒˆ you get an interactive mode where general post-processing scripts can be picked once the analysis finishes
  • -m โ€” writes diagnostic messages to messages.log ๐Ÿ“

๐ŸŒˆ optional global arguments

  • BASEPATH=directory path โ€” the base directory for all path operations (default is pwd) ๐Ÿ“‚
  • CPU=integer โ€” if it was compiled with OpenMP multithreading support, this asks for that many threads ๐Ÿงต. HyPhy could use fewer than you ask for, but never more. The default is the number of CPU cores (as computed by OpenMP) on your system ๐Ÿ’ช
  • LIBPATH=directory path โ€” where the HyPhy library files live (default installed location is /usr/local/lib/hyphy or whatever was configured during CMake installation) ๐Ÿ“š
  • USEPATH=directory path โ€” the optional working and relative path directory (default is BASEPATH) ๐Ÿ—บ๏ธ
  • ENV=expression โ€” sets HBL environment variables with explicit statements, like ENV='DEBUG_MESSAGES=1;WRITE_LOGS=1' ๐Ÿ› ๏ธ
  • batch file to run โ€” if you specify one, HyPhy runs that file. Otherwise it drops you into interactive mode ๐ŸŽฌ
  • analysis arguments โ€” if a batch file is present, every remaining positional argument gets read as an input to the analysis prompts ๐Ÿงƒ

๐Ÿซถ optional keyword arguments

These can show up anywhere in the command, and the requested analysis is the one that eats them ๐Ÿฝ๏ธ

  • --keyword value โ€” gets passed to the analysis (the one that uses KeywordArgument directives). If you use the same keyword multiple times, those values become an array of values for multiple selectors ๐ŸŽฏ

๐Ÿ“ usage examples

Select a standard analysis from the list:

hyphy -i

Run a standard analysis with default options and one required user argument:

hyphy busted --alignment path/to/file

Run a standard analysis with additional keyword arguments:

hyphy busted --alignment path/to/file --srv No

See which arguments a standard analysis understands:

hyphy busted --help

Run a custom analysis and pass it some arguments:

hyphy path/to/hyphy.script argument1 'argument 2'

๐Ÿ‘‘ Available standard keyword analyses

These live in /home/nilesh/packages/hyphy/hyphy/res/, and here's the lineup ๐Ÿ’…

  • meme โ€” [MEME] tests for episodic site-level selection using MEME (Mixed Effects Model of Evolution) ๐Ÿ”ฅ
  • mh โ€” merges two datafiles by combining sites (horizontal merge) ๐Ÿงฉ
  • mv โ€” merges two datafiles by combining sequences (vertical merge) ๐Ÿงฉ
  • mcc โ€” compares mean within-clade branch length or pairwise divergence between two or more non-nested clades in a tree ๐ŸŒณ
  • mclk โ€” tests for the presence of a global molecular clock on the tree using its root. The resulting clock tree is unrooted, but one of the root branches can be divided so the clock gets enforced โฐ
  • mgvsgy โ€” compares the fits of MG94 and GY94 models (crossed with an arbitrary nucleotide bias) on codon data ๐Ÿงฌ
  • mt โ€” selects an evolutionary model for nucleotide data using the methods of 'ModelTest', a program by David Posada and Keith Crandall ๐Ÿงช
  • fel โ€” [FEL] tests for pervasive site-level selection using FEL (Fixed Effects Likelihood) ๐Ÿ’–
  • fubar โ€” [FUBAR] tests for pervasive site-level selection using FUBAR (Fast Unconstrained Bayesian AppRoximation for inferring selection) ๐Ÿฆ‹
  • fade โ€” [FADE] tests a protein alignment for directional selection towards specific amino acids along a set of test branches you specify, using FADE (a FUBAR Approach to Directional Evolution) ๐ŸŽฏ
  • faa โ€” fits a multiple fitness class model to amino acid data ๐Ÿงซ
  • fmm โ€” "Fit a model that permits double (and triple) instantaneous nucleotide substitutions" ๐ŸŒ€
  • fst โ€” computes various measures of F_ST and (optionally) performs permutation tests ๐ŸŽฒ
  • slac โ€” [SLAC] tests for pervasive site-level selection using SLAC (Single Likelihood Ancestor Counting) ๐Ÿ”
  • sm โ€” performs a classic and structured Slatkin-Maddison test for the number of migrations ๐Ÿฆฉ
  • sns โ€” parses a codon alignment for ambiguous codons and outputs a complete list/resolutions/syn and ns counts by sequence/position ๐Ÿ“‹
  • sw โ€” performs a sliding window analysis of sequence data ๐ŸชŸ
  • sa โ€” performs a phylogeny reconstruction for nucleotide, protein or codon data with user-selectable models, using the method of sequential addition ๐ŸŒฑ
  • sbl โ€” searches an alignment for a single breakpoint ๐Ÿ’”
  • spl โ€” plots genetic distances (similarity) of one sequence against all the others in an alignment, using a sliding window. Optionally, it figures out NJ-based clustering and bootstrap support in every window. This is a HyPhy adaptation of the excellent (but Windows-only) SimPlot (and/or VarPlot) by Stuart Ray (http://sray.med.som.jhmi.edu/SCRoftware/simplot/) ๐Ÿ“ˆ
  • busted โ€” [BUSTED] tests for episodic gene-wide selection using BUSTED (Branch-site Unrestricted Statistical Test of Episodic Diversification) ๐Ÿ’…
  • bgm โ€” [BGM] applies Bayesian Graphical Model inference to substitution histories at individual sites ๐Ÿ•ธ๏ธ
  • bva โ€” runs a selection analysis using a general discrete bivariate (dN AND dS) distribution. The right number of rate classes gets figured out automatically ๐Ÿค–
  • brp โ€” interprets bivariate codon rate analysis results ๐Ÿ“Š
  • bsel โ€” splits a tree into two clades (compartments) plus a separating branch, then tests for equal dN/dS between compartments and for selection along the separating branch, using a series of Likelihood Ratio Tests โœ‚๏ธ
  • bst โ€” uses the improved branch-site REL method of Yang and Nielsen (2005) to look for episodic selection in sequences ๐Ÿ”ฌ
  • bt โ€” tests whether a branch (or branches) in the tree evolves under different dN and dS than the rest of the tree ๐ŸŒฟ
  • absrel โ€” [aBSREL] tests for lineage-specific evolution using the branch-site method aBS-REL (Adaptive Branch-Site Random Effects Likelihood) ๐ŸŒŸ
  • acd โ€” analyses codon data with a variety of standard models using a given tree ๐Ÿงฌ
  • ad โ€” analyses nucleotide or aminoacid data with a variety of standard models using a given tree ๐Ÿงช
  • adn โ€” analyses di-nucleotide data with a variety of standard models using a given tree ๐Ÿซง
  • afd โ€” analyses nucleotide data with a variety of standard models using a given tree, estimating equilibrium frequencies as parameters โš–๏ธ
  • ana โ€” runs a selection analysis ๐ŸŽ€
  • ai โ€” Peter Simmonds' Association Index (AI) ๐Ÿง 
  • relax โ€” [RELAX] tests for relaxation of selection pressure along a specified set of test branches using RELAX (a random effects test of selection relaxation) ๐Ÿฆ‹
  • clst โ€” clustering time! ๐ŸŒธ Apply clustering methods for phylogeny reconstruction (UPGMA, WPGMA, complete or minimal linkage) to nucleotide, protein and codon data. It uses MLE of pairwise distances with models you pick yourself, and the trees it makes come with a global molecular clock. โฐ
  • leisr โ€” infer relative evolutionary rates ๐Ÿฆ‹ on a nucleotide or protein alignment, kinda like Rate4Site (PMID: 12169533). ๐Ÿ’…
  • lz โ€” Lempel-Ziv complexity and entropy ๐Ÿงš of sequences, even if they aren't aligned. ๐ŸŒˆ
  • lclk โ€” test for a local molecular clock โญ. Every subtree of your tree gets the clock constraint, while the rest of the tree stays clock-free. It's giving selective clock vibes ๐Ÿ‘‘
  • lht โ€” a likelihood ratio test ๐Ÿ’œ to detect conflicting phylogenetic signal (Huelsenbeck and Bull, 1996). [Contributed by Olivier Fedrigo] ๐Ÿซถ
  • tc โ€” check whether a group of sequences in a sample clusters together ๐ŸŽ€
  • ts โ€” do an exhaustive tree space search for nucleotide or protein data with models you choose. ๐Ÿ”ฅ
โš ๏ธ bestie, this one is only for data sets with less than 10 taxa! Anything bigger and it's a no from me ๐Ÿ’€
  • dtr โ€” read sequence data (#, PHYLIP, NEXUS) and convert it to a different format ๐Ÿ“
  • dist โ€” make a pairwise sequence distance matrix in PHYLIP format โœจ
  • kh โ€” run a Kishino-Hasegawa test on two competing phylogenies ๐ŸฅŠ
  • ub โ€” get an upper bound on the likelihood score of a dataset ๐ŸŒธ
  • nuc โ€” compare all 203 reversible nucleotide models and run LRT and AIC model selection. Main character energy ๐Ÿ‘‘
  • nj โ€” phylogeny reconstruction for nucleotide, protein or codon data with user-selectable models, using neighbor joining. ๐ŸŒท
  • ny โ€” test for positive selection with the approach of Nielsen and Yabg ๐Ÿงช. It samples global dN/dS from an array of distributions and uses a Bayesian posterior to find the sites with dN/dS>1. Iykyk ๐Ÿ™ˆ
  • gard โ€” [GARD] screen an alignment using GARD. You need an MPI environment for this one ๐ŸŒˆ

โœจ AUTHOR โœจ

This manpage was written by Nilesh Patra for the Debian distribution and can be used for any other usage of the program. ๐Ÿซถ


And that's the whole page, bestie! ๐Ÿ’– This one's from hyphy 2.5.26, dated January 2021, and it's HYPHY(1) all the way ๐Ÿฆ‹๐ŸŒธ