MAFFT
Introduction
The MAFFT analysis performs multiple sequence alignment; the analysis is followed by the launch of ReporTree as a clustering analysis.
MAFFT produces the FASTA file of the multiple sequence alignment, which is used as input for ReporTree. The latter, in turn, produces the distance matrix and the "Minimum Spanning Tree" (MSTree or MST); the analysis can also compute the hierarchical clustering graph.
- Official MAFFT website: https://mafft.cbrc.jp/alignment/software/
- MAFFT GitHub page: https://github.com/GSLBiotech/mafft
- Reportree GitHub page: https://github.com/insapathogenomics/ReporTree
- IQ-TREE GitHub page: https://github.com/iqtree/iqtree2
- FastTree GitHub page: https://github.com/morgannprice/fasttree
Once the MST tree has been computed, it can be visualized directly within the platform using the integrated tree visualization system (SPREAD), accessible from the completed analysis card.
Run MAFFT analysis
Once the MAFFT analysis has been selected in the dedicated run analysis page, the system will move to a confirmation interface, also providing the advanced input selection mode. This feature allows the use of inputs generated by different software upstream of the analysis workflow.
The analysis produces the multiple sequence alignment file, which is subsequently used by ReporTree. The input files for constructing the multi-FASTA are the individual FASTA files of the samples, which can be provided as:
- step_2AS_mapping
- step_2AS_denovo
- step_2AS_hybrid
- step_2AS_import
The parameter configuration screen offers a high level of customization, including:
-
MAFFT parameters:
Custom parameters for MAFFT: text field for Command-line style options, where MAFFT modifiers can be specified.
-
ReporTree parameters:
Partition threshold for clustering definition: it allows to customize the threshold values for the creation of the tree partitions;Minimum proportion of samples per site without missing data: ReporTree normally considers all sites of the aligned genomes for distance matrix and tree computation. This option allows the user to define a threshold value: sites with a percentage of "missing data", i.e. a percentage of Ns (%N) below the specified threshold, are discarded. Only sites that pass the filter are retained and used for tree calculation;Minimum proportion (0 to 1) of ATCG in informative sites of the alignment per sample: ReporTree normally uses all provided samples for distance matrix and tree computation. This option allows the user to define a threshold value for the percentage of Ns in the sample sequence. Samples with %N below the specified value are discarded;Sample of interestoptions: they allow one or more samples of interest to be specified; on these samples, ReporTree recalculates a “Zoom”, i.e. a tree containing only the sample(s) of interest and the samples belonging to the same cluster;Method used in HC clustering to create a dendrogramoptions: selection of the optional Hierarchical Clustering mode;Custom parameters for reportreeoptions: text fields for entering Command-line style options to be passed to ReporTree, exclusively for the computation of the trees specified in the option (MST produced with Grapetree or HC).
-
ML clustering parameters:
Maximum likelood phylogenetic tree calculation: it allows the user to choose the software to be used for optional clustering with the ML algorithm. The available software are IQ-TREE and FastTree;Custom parameters for ML phylogenetic tree calculation: text field for entering Command-line style options for ML clustering;[IQ-TREE only] Try to apply CMAPLE tree search algorithm: if IQ-TREE is selected, it allows the user to choose whether to apply the CMAPLE tree placement algorithm, integrated into IQ-TREE.
Given the number and complexity of ReporTree parameters, please refer to the Reportree official guide for more information on how to use the software.
The procedure for launching the analysis is similar to other analyses that include the execution of ReporTree:
Once the analysis is launched, the page generates a link to the Check analysis section to allow a check of the processus status. The system will send the user a notification both when the analysis is successfully started and when the operation is completed.
In the completed analysis card, in addition to the option to explore the result folder, several features will be available, such as direct access to some log files and metadata, opening the NWK file and the direct graph visualization of the MSTree through the integration of SPREAD into the platform.
To visualize the tree, it will be necessary to navigate to the GrapeTree result card and select the Minimum Spanning Tree with SPREAD link:

Note: Results from multi-sample analyses cannot be imported. Users are advised to use the dedicated functionality for non-importable analysis preservation or, alternatively, the option to directly download the newick file (
.nwk) and the metadata file, so that the files can be stored and the tree can be visualized at any time, either within the platform or using external software.
Result folder
To consult the guide on how to download files from the platform, please refer to the dedicated page.
The Result folder can be browsed by clicking the link available within the analysis card, in the Result data section. Inside the subsequent results folder, there are two subfolders:
- meta (metadata), where the log and configuration files of the executed process are saved;
- result, where the files containing the results produced by the analysis are saved.
The table below shows the list of the main files of interest present in the folders, along with some useful information.
| File | Description | Location |
|---|---|---|
gt.nwk |
.nwk file of MSTree | folder: result |
gt_dist_grapetree.tsv |
MST tree distance matrix | folder: result |
alignment.fasta |
multifasta of the alignment of the samples | folder: result |
reportree_metadata.tsv |
sample metadata table produced by ReporTree | folder: result |
gt_dist.tsv |
pairwise distances of the MST tree | folder: result |
gt_clusterComposition.tsv |
Table listing clusters and their composition | folder: result |
gt_loci_used.txt |
list of loci used for the calculation of the distance matrix (start position) | folder: result |
multifasta.fasta |
multifasta of the unaligned sample sequences | folder: result |
gt_dist_hamming.tsv |
distance matrix | folder: result |
gt_partitions.tsv |
table with information on the cluster membership of the samples at each tree partitioning value | folder: result |
zooms.txt |
list of requested zoom levels | folder: result |
gt_metadata_w_partitions.tsv |
metadata table with information on cluster membership | folder: result |
gt_partitions_summary.tsv |
summary table of the tree partitions and the corresponding samples in the clusters | folder: result |
The file in Newick format (.nwk) contains all the tree data and can be visualized using SPREAD or another external software for displaying dendrograms or distance plots.