MAFFT(1)
π MAFFT(1) β the Mafft Manual, but make it make sense π
okay so. real talk before we even start, bestie. π
THIS MANUAL IS FOR V6.2XX (2007). Recent versions (v7.1xx; 2013 Jan.) have more features than those described below. See also the tips page at http://mafft.cbrc.jp/alignment/software/tips0.html
yes we know it's vintage. it's giving antique but iconic. π
β¨ NAME β¨
mafft β Multiple alignment program for amino acid or nucleotide sequences
(that's the vibe. that's the whole job. she aligns your sequences, she does it well, she does it in a unix-like operating system, and she does NOT want to hear your excuses.) π
π¦ SYNOPSIS π¦
mafft [options] input [> output]
linsi input [> output]
ginsi input [> output]
einsi input [> output]
fftnsi input [> output]
fftns input [> output]
nwns input [> output]
nwnsi input [> output]
mafft-profile group1 group2 [> output]
π«Ά heads up:input,group1andgroup2must be in FASTA format. non-negotiable, she's picky like that.
πΈ DESCRIPTION πΈ
MAFFT is a multiple sequence alignment program for unix-like operating systems. It offers a range of multiple alignment methods. so many methods. a whole wardrobe. pick your outfit. π
π Accuracy-oriented methods:
- L-INS-i (probably most accurate; recommended for <200 sequences; iterative refinement method incorporating local pairwise alignment information):
mafft --localpair --maxiterate 1000 input [> output]
linsi input [> output]
- G-INS-i (suitable for sequences of similar lengths; recommended for <200 sequences; iterative refinement method incorporating global pairwise alignment information):
mafft --globalpair --maxiterate 1000 input [> output]
ginsi input [> output]
- E-INS-i (suitable for sequences containing large unalignable regions; recommended for <200 sequences):
mafft --ep 0 --genafpair --maxiterate 1000 input [> output]
einsi input [> output]
π For E-INS-i, the --ep 0 option is recommended to allow large gaps. let her breathe, okay?? she needs the room.
π Speed-oriented methods:
- FFT-NS-i (iterative refinement method; two cycles only):
mafft --retree 2 --maxiterate 2 input [> output]
fftnsi input [> output]
- FFT-NS-i (iterative refinement method; max. 1000 iterations):
mafft --retree 2 --maxiterate 1000 input [> output]
- FFT-NS-2 (fast; progressive method):
mafft --retree 2 --maxiterate 0 input [> output]
fftns input [> output]
- FFT-NS-1 (very fast; recommended for >2000 sequences; progressive method with a rough guide tree):
mafft --retree 1 --maxiterate 0 input [> output]
- NW-NS-i (iterative refinement method without FFT approximation; two cycles only):
mafft --retree 2 --maxiterate 2 --nofft input [> output]
nwnsi input [> output]
- NW-NS-2 (fast; progressive method without the FFT approximation):
mafft --retree 2 --maxiterate 0 --nofft input [> output]
nwns input [> output]
- NW-NS-PartTree-1 (recommended for ~10,000 to ~50,000 sequences; progressive method with the PartTree algorithm):
mafft --retree 1 --maxiterate 0 --nofft --parttree input [> output]
π§ Group-to-group alignments
mafft-profile group1 group2 [> output]
or:
mafft --maxiterate 1000 --seed group1 --seed group2 /dev/null [> output]
π OPTIONS π
π Algorithm
--autoβ Automatically selects an appropriate strategy from L-INS-i, FFT-NS-i and FFT-NS-2, according to data size. Default: off (always FFT-NS-2). she picks your fit for you, no overthinking required β¨--6merpairβ Distance is calculated based on the number of shared 6mers. Default: on--globalpairβ All pairwise alignments are computed with the Needleman-Wunsch algorithm. More accurate but slower than--6merpair. Suitable for a set of globally alignable sequences. Applicable to up to ~200 sequences. A combination with--maxiterate 1000is recommended (G-INS-i). Default: off (6mer distance is used)--localpairβ All pairwise alignments are computed with the Smith-Waterman algorithm. More accurate but slower than--6merpair. Suitable for a set of locally alignable sequences. Applicable to up to ~200 sequences. A combination with--maxiterate 1000is recommended (L-INS-i). Default: off (6mer distance is used)--genafpairβ All pairwise alignments are computed with a local algorithm with the generalized affine gap cost (Altschul 1998). More accurate but slower than--6merpair. Suitable when large internal gaps are expected. Applicable to up to ~200 sequences. A combination with--maxiterate 1000is recommended (E-INS-i). Default: off (6mer distance is used)--fastapairβ All pairwise alignments are computed with FASTA (Pearson and Lipman 1988). FASTA is required. Default: off (6mer distance is used)--weighti numberβ Weighting factor for the consistency term calculated from pairwise alignments. Valid when either of--globalpair,--localpair,--genafpair,--fastapairor--blastpairis selected. Default: 2.7--retree numberβ Guide tree is built number times in the progressive stage. Valid with 6mer distance. Default: 2--maxiterate numberβ number cycles of iterative refinement are performed. Default: 0--fftβ Use FFT approximation in group-to-group alignment. Default: on--nofftβ Do not use FFT approximation in group-to-group alignment. Default: off--noscoreβ Alignment score is not checked in the iterative refinement stage. Default: off (score is checked)--memsaveβ Use the Myers-Miller (1988) algorithm. Default: automatically turned on when the alignment length exceeds 10,000 (aa/nt). π§ memory said "bestie I'm full" and she listened--parttreeβ Use a fast tree-building method (PartTree, Katoh and Toh 2007) with the 6mer distance. Recommended for a large number (> ~10,000) of sequences are input. Default: off--dpparttreeβ The PartTree algorithm is used with distances based on DP. Slightly more accurate and slower than--parttree. Recommended for a large number (> ~10,000) of sequences are input. Default: off--fastaparttreeβ The PartTree algorithm is used with distances based on FASTA. Slightly more accurate and slower than--parttree. Recommended for a large number (> ~10,000) of sequences are input. FASTA is required. Default: off--partsize numberβ The number of partitions in the PartTree algorithm. Default: 50--groupsize numberβ Do not make alignment larger than number sequences. Valid only with the--*parttreeoptions. Default: the number of input sequences
π Parameter
--op numberβ Gap opening penalty at group-to-group alignment. Default: 1.53--ep numberβ Offset value, which works like gap extension penalty, for group-to-group alignment. Default: 0.123--lop numberβ Gap opening penalty at local pairwise alignment. Valid when the--localpairor--genafpairoption is selected. Default: -2.00--lep numberβ Offset value at local pairwise alignment. Valid when the--localpairor--genafpairoption is selected. Default: 0.1--lexp numberβ Gap extension penalty at local pairwise alignment. Valid when the--localpairor--genafpairoption is selected. Default: -0.1--LOP numberβ Gap opening penalty to skip the alignment. Valid when the--genafpairoption is selected. Default: -6.00--LEXP numberβ Gap extension penalty to skip the alignment. Valid when the--genafpairoption is selected. Default: 0.00--bl numberβ BLOSUM number matrix (Henikoff and Henikoff 1992) is used. number=30, 45, 62 or 80. Default: 62--jtt numberβ JTT PAM number (Jones et al. 1992) matrix is used. number>0. Default: BLOSUM62--tm numberβ Transmembrane PAM number (Jones et al. 1994) matrix is used. number>0. Default: BLOSUM62--aamatrix matrixfileβ Use a user-defined AA scoring matrix. The format of matrixfile is the same to that of BLAST. Ignored when nucleotide sequences are input. Default: BLOSUM62--fmodelβ Incorporate the AA/nuc composition information into the scoring matrix. Default: off
π Output
--clustaloutβ Output format: clustal format. Default: off (fasta format)--inputorderβ Output order: same as input. Default: on--reorderβ Output order: aligned. Default: off (inputorder)--treeoutβ Guide tree is output to theinput.treefile. Default: off π³β¨--quietβ Do not report progress. Default: off
π¦ Input
--nucβ Assume the sequences are nucleotide. Default: auto--aminoβ Assume the sequences are amino acid. Default: auto--seed alignment1 [--seed alignment2 --seed alignment3 ...]β Seed alignments given in alignment_n (fasta format) are aligned with sequences ininput. The alignment within every seed is preserved. π«Ά do not touch the seeds. the seeds are sacred.
π FILES π
Mafft stores the input sequences and other files in a temporary directory, which by default is located in /tmp.
πΏ ENVIONMENT πΏ
(yes, that's how it's spelled in the original. we stan a typo queen. moving on π)
MAFFT_BINARIESβ Indicates the location of the binary files used by mafft. By default, they are searched in/usr/local/lib/mafft, but on Debian systems, they are searched in/usr/lib/mafft.FASTA_4_MAFFTβ This variable can be set to indicate to mafft the location to thefasta34program if it is not in thePATH.
β SEE ALSO β
π REFERENCES π
In English
- Katoh and Toh (Bioinformatics 23:372-374, 2007) PartTree: an algorithm to build an approximate tree from a large number of unaligned sequences (describes the PartTree algorithm).
- Katoh, Kuma, Toh and Miyata (Nucleic Acids Res. 33:511-518, 2005) MAFFT version 5: improvement in accuracy of multiple sequence alignment (describes [ancestral versions of] the G-INS-i, L-INS-i and E-INS-i strategies)
- Katoh, Misawa, Kuma and Miyata (Nucleic Acids Res. 30:3059-3066, 2002) MAFFT: a novel method for rapid multiple sequence alignment based on fast Fourier transform (describes the FFT-NS-1, FFT-NS-2 and FFT-NS-i strategies)
In Japanese
- Katoh and Misawa (Seibutsubutsuri 46:312-317, 2006) Multiple Sequence Alignments: the Next Generation
- Katoh and Kuma (Kagaku to Seibutsu 44:102-108, 2006) Jissen-teki Multiple Alignment
π AUTHORS π
- Kazutaka Katoh
<kazutaka.katoh_at_aist.go.jp>- Wrote Mafft.
- Charles Plessy
<charles-debian-nospam_at_plessy.org>- Wrote this manpage in DocBook XML for the Debian distribution, using Mafft's homepage as a template.
π COPYRIGHT π
okay bestie, here's the part nobody reads but everybody should. it's giving "legal girlies entered the chat" and honestly? they ate. π«Ά
Copyright Β© 2002-2007 Kazutaka Katoh (mafft) Copyright Β© 2007 Charles Plessy (this manpage)
Mafft and its manpage are offered under the following conditions β yes, all of them, no skipping:
- If you're redistributing source code, you have to keep the above copyright notice, this list of conditions, and the disclaimer that comes below. All three. No cherry-picking π
- If you're redistributing in binary form, you have to reproduce the above copyright notice, this list of conditions, and the disclaimer in the documentation and/or other materials that ship with the distribution.
- You may not use the name of the author to endorse or promote products derived from this software without specific prior written permission. Like, ask first. In writing. π₯Ί
And now the all-caps part, because the lawyers said so and we don't argue with them:
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Translation for the group chat: no promises, no take-backs, and if it breaks it is genuinely not the author's problem. That's the whole deal, periodt. β¨
And that's a wrap on the whole page, bestie π¦ this one's from mafft version 6.240, dated 2007-06-09, and it lives in section 1 of the manual as MAFFT(1). Go align something iconic π
π¦ where this page comes from
- debian bookworm: mafft 7.505-1 Β· mafft
- debian trixie: mafft 7.505-1 Β· mafft
- ubuntu jammy: mafft 7.490-1 Β· mafft
- ubuntu noble: mafft 7.505-1 Β· mafft
- ubuntu questing: mafft 7.525-1
- ubuntu resolute: mafft 7.525-1build1 Β· mafft
- ubuntu stonking: mafft 7.525-1build1 Β· mafft
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms