My (Max's?) Minimal Fasta Toolkit

Nothing sophisticated. Minimal, simple fasta tools. Each program is self-contained in the ./src/fasta directory, and follows similar boilerplate code, related to file handling.

Usage

Typing mmft (shows subcommands) or mmft <subcommand> -h (shows specific subcommand) will show the usage of the tool in question.

Commands are added only as and when I need them. If you like what you see, please feel free to contribute a PR with your favourite subcommand.

Calculations

File manipulations

Careful when piping into mmft as fasta files are not treated separately, they are treated as a continuum of fasta records. Hence, while mmft n50 1.fasta 2.fasta shows the n50 of each fasta file separately, cat *.fasta | mmft n50 will calculate the n50 of both files combined. In addition, mmft sample loads the entire STDIN into memory, so be careful when piping large files.

All printed to STDOUT.

TODO's

I'll add stuff as and when I have time, or they are of use. Maybe: