MAFFT version 7
Multiple alignment program for amino acid or nucleotide sequences
Ubuntu version New! 2017/Dec
For Windows 10 Versions 1709 (2017/Oct), 1803 (2018/Apr) and later.
Check your Windows version
Install Ubuntu on Windows (steps 1–3 below) and subsequently install MAFFT on Ubuntu (steps 4–6).
Installation of Ubuntu
Turn on “Windows Subsystem for Linux”.
Reboot the PC if requested.
Install Ubuntu from Microsoft Store.
Takes several minutes and then asks you to set a username and a password, which will be used in step 5.
Launch Ubuntu from Start menu.
(If the above procedure fails, see Microsoft Docs.)
Installation of MAFFT
- On the Ubuntu window, run the following command to download MAFFT package.
$ wget https://mafft.cbrc.jp/alignment/software/mafft_7.407-1_amd64.deb
To paste this command into the Ubuntu window, use right button of mouse.
If it does not work, enable QuickEdit Mode.
Install the package by:
$ sudo dpkg -i mafft_7.407-1_amd64.deb
[sudo] password for username: (Type the password that was set in step 2)
Check location and version number of MAFFT.
$ which mafft
$ mafft --version
Usage (interactive mode)
Suppose input file, eg, input.txt, is placed in
This folder can be accessed from Ubuntu as
In short, C: on Windows = /mnt/c on Ubuntu.
On Ubuntu window, change directory, cd, to the folder where input.txt is.
$ cd /mnt/c/Users/yourname/DATA
To check if input.txt actually exists in this folder, use the ls command.
Just type mafft to start a text-based interactive interface:
and follow the prompts to select input file, output file and options.
The output file has UNIX-style line-endings.
If Windows style is preferable, then open the file with WordPad to convert it.
Usage (command-line mode)
Running MAFFT from outside of Ubuntu