alignment-thin(1)
β¨ NAME β¨
Okay bestie, alignment-thin(1) is the declutter queen π It's how you remove sequences or columns from an alignment π¦
πΈ SYNOPSIS πΈ
alignment-thin alignment-file [OPTIONS]
π DESCRIPTION π
Literally all it does is yeet sequences or columns out of an alignment. Slay β¨
π GENERAL OPTIONS π
-h,βhelpβ Shows you the usage info π§-V,βverboseβ Gives you extra log messages on stderr, for when you need the tea β
π¦ SEQUENCE FILTERING OPTIONS π¦
-p arg,βprotect argβ These sequences are untouchable and can't be removed. Pass them as a comma-separated list π‘οΈ-k arg,βkeep argβ Removes every sequence that is not in the comma-separated listargπ«Ά-r arg,βremove argβ Removes the sequences in the comma-separated listargπ-l arg,βlonger-than argβ Removes sequences that aren't longer thanargπ-s arg,βshorter-than argβ Removes sequences that aren't shorter thanargπ-c arg,βcutoff argβ Removes similar sequences where the number of mismatches is less thancutoffπ₯-d arg,βdown-to argβ Keeps removing similar sequences until onlyargsequences are left πβremove-gappy argβ Yeetsargoutlier sequences. These are the ones that are missing too many conserved sites πβconserved arg (=0.75)β The fraction of sequences that have to contain a letter before that spot counts as conserved. The default is0.75π
π COLUMN FILTERING OPTIONS π
-K arg,βkeep-columns argβ Keeps the columns from this sequence β-m arg,βmin-letters argβ Removes columns that have fewer thanargletters π-u arg,βremove-unique argβ Removes insertions that live in a single sequence if they're longer thanargletters π§-e,βerase-empty-columnsβ Removes columns with no characters at all (all gaps) π«§
π OUTPUT OPTIONS π
-S,βsortβ Sorts partially ordered columns so similar gaps end up grouped together π-L,βshow-lengthsβ Just prints out the sequence lengths and nothing else π-N,βshow-namesβ Also just prints out sequence lengths, according to the page π
Lowkey sus: the page describes-Nwith the exact same sentence as-L, so it's listed here exactly as written.
-F arg,βfind-dups argβ For each sequence, finds the closest other sequence π
π EXAMPLES π
Remove columns without a minimum number of letters:
% alignment-thin --min-letters=5 file.fasta > file-thinned.fasta
Remove sequences by name:
% alignment-thin --remove=seq1,seq2 file.fasta > file2.fasta
% alignment-thin --keep=seq1,seq2 file.fasta > file2.fasta
Remove short sequences:
% alignment-thin --longer-than=250 file.fasta > file-long.fasta
Remove similar sequences with <= 5 differences from the closest other sequence:
% alignment-thin --cutoff=5 file.fasta > more-than-5-differences.fasta
Remove similar sequences until we have the right number of sequences:
% alignment-thin --down-to=30 file.fasta > file-30taxa.fasta
Remove dissimilar sequences that are missing conserved columns:
% alignment-thin --remove-gappy=10 file.fasta > file2.fasta
Protect some sequences from being removed:
% alignment-thin --down-to=30 file.fasta --protect=seq1,seq2 > file2.fasta
% alignment-thin --down-to=30 file.fasta --protect=@filename > file2.fasta
π REPORTING BUGS π
Need the BAli-Phy online help? It's at http://www.bali-phy.org/docs.php. πΈ
Found a bug? Send it to bali-phy-users@googlegroups.com. We stan bug reports π«Ά
π§ AUTHORS π§
Benjamin Redelings. The main character behind it all π
That's the tea, bestie π alignment-thin(1) is from Feb 2018, and it's still giving π¦β¨
π¦ where this page comes from
- debian trixie: bali-phy 4.0-1 Β· GPL-2.0-or-later
- ubuntu questing: bali-phy 4.0-1build2
- ubuntu resolute: bali-phy 4.1+dfsg-1 Β· GPL-2.0-or-later
- ubuntu stonking: bali-phy 4.1+dfsg-1 Β· GPL-2.0-or-later
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms