alignment-thin(1)

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

✨ 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 list arg 🫢
  • -r arg, –remove arg β€” Removes the sequences in the comma-separated list arg πŸ’…
  • -l arg, –longer-than arg β€” Removes sequences that aren't longer than arg πŸ“
  • -s arg, –shorter-than arg β€” Removes sequences that aren't shorter than arg πŸ“
  • -c arg, –cutoff arg β€” Removes similar sequences where the number of mismatches is less than cutoff πŸ”₯
  • -d arg, –down-to arg β€” Keeps removing similar sequences until only arg sequences are left 🌈
  • –remove-gappy arg β€” Yeets arg outlier 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 is 0.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 than arg letters πŸ“
  • -u arg, –remove-unique arg β€” Removes insertions that live in a single sequence if they're longer than arg letters 🧚
  • -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 -N with 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