Mafft: MAFFT Multiple Sequence Alignment

Description Usage Arguments Details Value See Also Examples

View source: R/Mafft.R


MAFFT is a multiple sequence alignment program for unix-like operating systems. It offers a range of multiple alignment methods, L-INS-i (accurate; for alignment of about 200 sequences), FFT-NS-2 (fast; for alignment of about 10,000 sequences), etc. See The manual is also available here:


Mafft(, file.path="", type="DNA",  print.curl=FALSE,
      args=NULL,, aln.filetype="FASTA", email=TRUE,
      shared.username=NULL, suppress.Warnings=FALSE)


name of file to be evaluated on the Discovery Environment (DE), see details for supported input formats.


optional path to a user's subdirectory on the DE; default path is empty, which leads to the home directory


Two options "PROTEIN" or "DNA". This defines the type of sequences in the file, either proteins or nucleotides.


Mafft does alignment of sequences, this option selects the file type of that result file. There are two options FASTA and CLUSTALW


Optional for arguments (i.e. flags). The Mafft model has much additional functionality that is not in this wrapper function (, see details. This option allows users to add anything that is not included (.i.e. args="–auto"), which automatically selects an appropriate strategy according to data size, see details.

the name to given to the output file (default mafft.aln)

the name to give the job being submitted


Prints the curl statement that can be used in the terminal, if curl is installed on your computer


With iPlant you have the ability to share folders with other users. If someone has shared a folder with you and you want to run a job with them, enter their username for this input.


This will turn off the warnings, will speed up run time. Use with caution, if the inputs are incorrect they will not be caught.


By default an email will be sent to the user when the job finishes.


The supported input file format is the fasta format

Additional arguments, args, can be found at The args input is text with the flags and inputs for those flags in a string like on the command line.

There are two options for output files: FASTA and CLUSTALW

The result file is ALWAYS ‘mafft.aln’.


A list containing the job id and the job name is provided for jobs submitted. If an error, then a message stating the error should also be reported.

See Also

ListApps, Validate, UploadFile


## Not run: data(DNA.fasta)
## Not run: write.fasta(sequences = DNA.fasta, names = names(DNA.fasta), file.out = "DNA.fasta")
## Not run: Validate("username","password")
## Not run: UploadFile("DNA.fasta", filetype="FASTA-0")
## Not run: Mafft("DNA.fasta","MafftFASTA")

Example output

Loading required package: rjson
Loading required package: RCurl
Loading required package: bitops
Loading required package: seqinr

rPlant documentation built on May 31, 2017, 3:43 a.m.