GenPat Platform, Wiki

Topics
Topics

ReporTree (cgMLST)

Introduction

ReporTree builds distance graphs among microorganisms, starting from the allelic profiles of the provided samples. The tree is built using the "Minimum Spanning Tree" (MSTree or MST) algorithm.

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 tree has been computed, it can be viewed directly in the platform (using SPREAD), through the integrated dendrogram visualization system accessible from the completed analysis card.

uml diagram

Run Reportree analysis

Once the ReporTree analysis has been selected in the dedicated run analysis page, the system will move to a confirmation interface: there is no need to choose the tool since the analysis is specific for ReporTree use.

The interface for input selection 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 required inputs for ReporTree are the allelic profiles of the samples:

The parameter definition screen offers a high level of customization, including:

  • ReporTree parameters:

    • Partition threshold for clustering definition: it allows you to customize the threshold values for creating the tree partitions;
    • Minimum proportion of samples per site without missing data: ReporTree normally considers all loci in the scheme when calculating the distance matrix and building the tree. This option allows you to set a threshold value: only loci called in a percentage of the dataset equal to or greater than the specified value will be considered. Loci that do not pass the filter are discarded;
    • Minimum proportion of loci/positions called for SNP/allele matrices: ReporTree normally uses all provided samples to compute the distance matrix and build the tree. This option allows you to define a threshold for the number of loci called in the allelic profile of a sample. Samples with a number of called loci lower than the specified value are discarded;
    • Sample of interest options: they allow one or more samples of interest to be specified 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 dendrogram options: selection of the mode for the optional Hierarchical Clustering;
    • Custom parameters: text field where command-line-style options can be entered, which will be passed directly to ReporTree.
  • VCF2MST parameters:

    • VCF filtering and normalization: it enables the normalization of complex variants by decomposing them into their individual SNPs.

Given the number and complexity of ReporTree parameters, please refer to the Reportree official guide for more information on how to use the software.

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, several options will be available, including the possibility to browse the output folder, direct access to some log and metadata files, opening the .nwk file, and the direct visualization of the MSTree through the integration of GrapeTree into the platform.

Visualizing the tree will require to navigate to the Grapetree result section and select the Minimum Spanning Tree with Grapetree link:

Note: Multi-sample analysis results cannot be imported. Please, use the dedicated functionality for storing non-importable analyses or, alternatively, the option for directly downloading the newick (.nwk) file and the metadata file, so that you can preserve the files and view the tree at any time, either within the platform or using an 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_clusterComposition.tsv Table with a list of clusters and their composition "result" folder
gt_dist_grapetree.tsv Distance matrix "result" folder
reportree_metadata.tsv Table of sample metadata "result" folder
gt_metadata_w_partitions.tsv Table of sample metadata + cluster membership based on partitions "result" folder
gt.nwk MST tree in newick format "result" folder
gt_dist_hamming.tsv Table with Hamming distances "result" folder
result_alleles_all.tsv Table of allelic calls "result" folder
gt_dist.tsv List of pairwise distances between samples "result" folder
gt_partitions_summary.tsv List of the tree partitions and the corresponding samples in the clusters "result" folder
gt_loci_report.tsv Report on the statistics of the used loci "result" folder
gt_partitions.tsv Table of samples and their corresponding cluster membership based on partitioning "result" folder
gt_loci_used.txt List of loci "result" folder

The .nwk file contains all the tree data and can be visualised using SPREAD or other external software for viewing dendrograms or distance graphs.