Mafft

Jul 20, 2023

Multiple alignment program for amino acid or nucleotide sequences

MAFFT offers a range of multiple alignment strategies, L-INS-i accurate; recommended for <200 sequences, FFT-NS-i standard speed and accuracy, FFT-NS-2 fast; recommended for >2,000 sequences, etc. According to BAliBASE and other benchmark tests, L-INS-i is one of the most accurate methods currently available.

MAFFT has been described

K. Katoh and H. Toh 2008 Briefings in Bioinformatics 9286-298 Recent developments in the MAFFT multiple sequence alignment program.

K. Katoh, K. Misawa, K. Kuma and T. Miyata Nucleic Acids Res. 30 3059-3066, 2002 MAFFT a novel method for rapid multiple sequence alignment based on fast Fourier transform.


MAFFT is an essential software tool in the world of bioinformatics, which provides a wide range of benefits to scientists involved in the analysis of DNA, RNA and protein sequences. As a FreeBSD port, it offers the power of this sequencing project to users of the FreeBSD operating system. FreeBSD, known for its advanced networking, performance, security, and compatibility features, becomes a crucial platform for MAFFT because it allows the tool to work effectively and efficiently, thus extensively simplifying sequence alignments.

To use MAFFT, it’s vital first to understand what it does. It stands for Multiple Alignment using Fast Fourier Transform, and it’s a software program that aids in aligning multiple sequences of DNA, RNA, and proteins. It uses the FFT Fast Fourier Transform method to provide rapid, high-quality multiple sequence alignments.

MAFFT Installation

The first step to leveraging MAFFT functionalities involves installing it. FreeBSD users enjoy an easy installation process via the ports collection. To install the relevant port, execute the following commands

cd /usr/ports/biology/mafft/ && make install clean

Alternatively, if you’d rather install a pre-compiled binary package, use

pkg install biology/mafft

Utilising MAFFT

Once you have MAFFT installed, initiate the alignment process. The process begins by typing ‘mafft’ in your terminal, followed by the path to your sequence file.

For example, if your sequence data is stored in a file called ‘sequences.fasta’, you would type

mafft sequences.fasta > output

This command initiates the alignment process and, after completion, places the aligned sequences in a file named ‘output’.

Options and Commands

MAFFT comes with various options and commands to suit diverse user needs. For instance, you can modify the scoring matrix for protein sequences using the –amino command line option

mafft --amino sequences.fasta > output

Or if you want to pursue an iterative refinement method incorporating multiple sequence alignment along with weighted sum-of-pairs and consistency scores, you can apply the –maxiterate and –localpair commands

mafft --maxiterate 1000 --localpair sequences.fasta > output

MAFFT’s Benefits

There are various reasons why MAFFT is the choicest for performing sequence alignment. Firstly, it’s quite fast due to its FFT approach. Hence, it becomes an excellent tool for users working with large amounts of data, which is often the case in bioinformatics. Secondly, its ability to produce highly accurate alignments, even with incredibly complex sequences, is unparalleled.

Lastly, when running on FreeBSD, MAFFT benefits from the inherent advantages of this open-source operating system. Users can exploit FreeBSD’s renowned performance and security while tweaking the software to fulfill their specific requirements via ports.

To conclude, MAFFT on FreeBSD offers the bioinformatics community a formidable tool for aligning multiple sequences of DNA, RNA, or proteins. Like other software ported to FreeBSD for instance, consider the robustness of IT security port [Nmap]https//freebsdsoftware.org/security/nmap.html, MAFFT too gets a significant boost by the system’s robust and flexible approach to software integration. Therefore, scientists and researchers dealing with multiple sequence alignment tasks should consider integrating MAFFT via FreeBSD to enhance their workflow efficiencies.


Checkout these related ports:
  • Wise - Intelligent algorithms for DNA searches
  • Wfa2-lib - Exact gap-affine algorithm using homology to accelerate alignment
  • Vt - Discovers short variants from Next Generation Sequencing data
  • Vsearch - Versatile open-source tool for metagenomics
  • Viennarna - Alignment tools for the structural analysis of RNA
  • Velvet - Sequence assembler for very short reads
  • Vcftools - Tools for working with VCF genomics files
  • Vcflib - C++ library and CLI tools for parsing and manipulating VCF files
  • Vcf2hap - Generate .hap file from VCF for haplohseq
  • Vcf-split - Split a multi-sample VCF into single-sample VCFs
  • Unikmer - Toolkit for nucleic acid k-mer analysis, set operations on k-mers
  • Unanimity - Pacific Biosciences consensus library and applications
  • Ugene - Integrated bioinformatics toolkit
  • Ucsc-userapps - Command line tools from the UCSC Genome Browser project
  • Trimmomatic - Flexible read trimming tool for Illumina NGS data