HHFILTER(1)
πΈ HHFILTER β the girlies' guide to hhfilter(1) πΈ
okay bestie, sit down, hydrate, because we're about to filter an alignment by maximum sequence identity of match states and minimum coverage and honestly? it's giving glow-up. π
β¨ SYNOPSIS β¨
hhfilter -i infile -o outfile [options]
that's it. that's the whole vibe. in, out, options. π«Ά
π DESCRIPTION π
HHfilter 3.3.0</purl> β say it with me β filters an alignment by maximum pairwise sequence identity, minimum coverage, minimum sequence identity, or score per column to the first (seed) sequence. n(c) no cap. it literally just cleans up your MSA so it's not a chaotic mess of 40,000 near-identical sequences. main character behaviour.
this iconic little tool is brought to you by the HH-suite development team, aka Steinegger M, Meier M, Mirdita M, VΓΆhringer H, Haunsberger S J, and SΓΆding J (2019), in their absolute banger HH-suite3 for fast remote homology detection and deep protein annotation. BMC Bioinformatics, doi:10.1186/s12859-019-3019-7. we stan. π
so here's the core trio of flags, the ones you'll actually use, and yes they take <file> arguments because everything in life requires input:
-i <file>β read input file in A3M/A2M or FASTA format. this is your raw material, your clay, your before-picture. π-o <file>β write to output file in A3M format. the after-picture. so fresh, so clean. β¨-a <file>β append to output file in A3M format. for when you're not overwriting, you're adding to the collection. π
not me having both-oand-abecause sometimes you want a new file and sometimes you want to keep stacking. the range.
π OPTIONS π
π the tuning knobs (a.k.a. the options proper)
-v <int>β verbose mode, and the exact levels are:0:no screen output 1:only warings 2: verbose. so0= silent treatment,1= only the drama (warnings),2= tell me EVERYTHING. π-idβ range[0,100], maximum pairwise sequence identity (%) (def=90). the classic. this is the one everybody uses. π-diffβ range[0,inf[, filter MSA by selecting most diverse set of sequences, keeping at least this many seqs in each MSA block of length 50 (def=0). diversity hire but make it protein sequences. πΈ-covβ range[0,100], minimum coverage with query (%) (def=0). how much of the query you gotta actually cover to make the cut. π¦-qidβ range[0,100], minimum sequence identity with query (%) (def=0). same energy as-idbut measured against the query specifically. π§-qscβ range[0,100], minimum score per column with query (def=-20.0). yes the range says[0,100]and the default is-20.0, i don't make the rules, i just report them. π-neffβ range[1,inf[, target diversity of alignment (default=off). it's off by default, so it's lowkey asleep until you wake it up. π₯
π Input alignment format (pick your fighter)
-M a2mβ use A2M/A3M (default): upper case = Match; lower case = Insert;'-'= Delete;'.'= gaps aligned to inserts (may be omitted). the moment you learn uppercase vs lowercase actually means something. ate. β-M firstβ use FASTA: columns with residue in 1st sequence are match states. the first sequence is the blueprint, the blueprint is the moment. π-M [0,100]β use FASTA: columns with fewer than X% gaps are match states. you pick the threshold, you set the standard, you are the standard. π
π«Ά Other options (the safety rails)
-maxseq <int>β max number of input rows (def=65535). it's giving "please don't bring 65,536 friends to my party". π-maxres <int>β max number of HMM columns (def=20001). width limit, bestie. respect it. π
π« EXAMPLE π«
because a demo eats every time:
hhfilter -id 50 -i d1mvfd_.a2m -o d1mvfd_.fil.a2m
read d1mvfd_.a2m, cap the pairwise identity at 50%, write the glow-up to d1mvfd_.fil.a2m. iconic. periodt. β¨
reminder to my beautiful readers: the ranges in the original are written with those fancy open brackets like [0,inf[, and i kept them exactly like that because i'm not about to misquote the source material. iykyk. π
and that's the page, bestie β this was hhfilter from the HH-suite, version 3.3.0+ds, dated August 2023. go forth, filter responsibly, and remember: no cap, only coverage. ππΈβ¨
π¦ where this page comes from
- ubuntu noble: hhsuite 3.3.0+ds-8 Β· GPL-3.0-or-later
- ubuntu questing: hhsuite 3.3.0+ds-8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms