– Filters input fasta file to remove gaps and ‘U’ characters.Ā¶


This module will filter out gap characters (‘.’ and ‘-‘), spaces, and/or uracil characters (‘U’) from an input fasta file(s). The module can also capitalize the characters in the filtered file(s). This should be done for fasta files to be utilized with or any downstream module requring input fasta files.

Usage: [options]

Input Arguments:



-f, --fasta_seqs
Target fasta file(s) to filter. Separate multiple files with a colon.


-o, --output_dir
Output directory for filtered fasta file(s). [default: .]
-g, --gap_chars
Filter gap characters ”.” and “-” [default: True]
-s, --space_chars
Filter space characters. [default: True]
-u, --convert_uracil
Convert Uracil “U” characters to “T”. [default: True]
-c, --cap_seqs
Capitalize filtered sequences [default: True]


Output fasta file(s) generated by this module will have a ‘_filtered.fasta’ appended to the original fasta file name.

Standard Example usage: [options] {-f input_fasta_filepath [required] }

Keep gap characters in two aligned fasta files, but allow all other filtering: -f input_aligned_seqs1.fasta:input_aligned_seqs2.fasta -g

Site index