VCF2MST
Introduction
VCF2MST analysis performs VCF2MST and ReporTree to build a phylogenetic Minimum Spanning Tree (MST) from a Single Nucleotide Polymorphism (SNP) matrix computed from mapping-derived FASTA files.
The construction of the distance matrix is performed without relying on phylogenomic inferences based on sequence alignment.
The program constructs the Minimum Spanning Tree based on Hamming distances, which measure the number of substitutions required for one sequence (string) to be transformed into another.
- VCF2MST GitHub page: https://github.com/genpat-it/vcf2mst
- Paper on VCF2MST: https://bmcgenomics.biomedcentral.com/articles/10.1186/s12864-021-08112-0
- 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
Run VCF2MST analysis
Once the VCF2MST analysis has been selected in the dedicated run analysis page, the system will move to a confirmation interface.
The input selection interface provides the advanced input selection mode, to allow the use of inputs processed by different methods that were applied upstream in the analysis workflow.
The input for VCF2MST consists of the FASTA files from mapping: step_2AS_mapping.
In the input selection interface there will also be a field to provide the reference genome (the reference is automatically populated).
The parameter definition screen offers a high level of customization, including:
- VCF2MST parameters:
VCF filtering and normalization: it allows enabling the normalization of complex variants by breaking them down into the individual SNPs that compose them;
- ReporTree parameters:
Partition threshold for clustering definition: it allows customizing the threshold values for the creation of tree partitions;Sample of interestoptions: they allow to specify one or more samples of interest on which 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 mode for the optional Hierarchical Clustering.
Given the number and complexity of ReporTree parameters, users are encouraged to consult the official ReporTree guide, for more information on how to use the software.

The procedure for launching the analysis is similar to other analyses that involve running 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 ability to browse the output folder, several options will be available, such as direct access to some log and metadata files, opening the .nwk file, and the direct visualization of the MSTree through the integration of SPREAD within the platform.
To view the tree, you will need to navigate to the GrapeTree result card and select the link Minimum Spanning Tree with SPREAD.
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 following table provides a list of the main files of interest in the folders, along with some useful information.
| File | Description | Location |
|---|---|---|
gt.nwk |
.nwk file of MST tree | folder: result |
gt_loci_used.txt |
list of loci used for the calculation of the distance matrix (start position) | folder: result |
gt_partitions.tsv |
table with information on the cluster membership of the samples at each tree partitioning value | folder: result |
gt_clusterComposition.tsv |
Table listing clusters and their composition | folder: result |
gt_partitions_summary.tsv |
summary table of the tree partitions and the corresponding samples in the clusters | folder: result |
zooms.txt |
list of requested zoom levels | folder: result |
gt_dist_grapetree.tsv |
MST tree distance matrix | folder: result |
gt_dist.tsv |
pairwise distances of the MST tree | folder: result |
gt_dist_hamming.tsv |
distance matrix | folder: result |
gt_metadata_w_partitions.tsv |
metadata table with information on cluster membership | folder: result |
reportree_metadata.tsv |
sample metadata table produced by ReporTree | folder: result |
The Newick format file (.nwk) contains all the tree data and can be viewed using SPREAD or another external software for visualizing dendrograms or distance graphs.