GenPat Platform, Wiki

Topics
Topics

GrapeTree

Introduction

The GrapeTree analysis builds tree graphs using the "Minimum Spanning Tree" (MSTree) or "Neighbor Joining" (NJ) algorithms, based on the allelic profiles of provided samples, as identified in the cgMLST analysis.

GrapeTree GitHub page: https://github.com/achtman-lab/GrapeTree

On the platform, it is possible both to compute the trees and to visualize them thanks to the integration of the stand-alone version of the GrapeTree interactive visualization system.

uml diagram

A complete guide to the use and interface of the visualization system on the platform is available on the page dedicated to SPREAD.

For further information on the software, please refer to the research article and the official documentation of the EnteroBase system, of which GrapeTree is a part.

Run GrapeTree analysis

Once the GrapeTree 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 multi-sample analyses always use a specific software.

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 possible inputs that can be used for GrapeTree are:

For both possible inputs, it is imperative that the program used to compute the allelic profiles is chewBBACA. Therefore, we suggest you to be careful and select this software when running the 4TY_cgMLST or 4TY_wgMLST, if you intend to launch GrapeTree as a downstream analysis.

In the parameter definition screen it is possible to:

  • select the encoding: the available options include the crc32 encoding and the izsam encoding. Selecting default corresponds to crc32;
  • specify the scheme for the microbial species on which 4TY_cgMLST__chewbbaca was performed, if allelic profiles from cgMLST are selected as input. The field is pre-filled with the appropriate scheme for the bacterial species whose codes are present in the cart, or the active tag, used to launch the analysis. No further action is therefore required from the user.

Note: by default, GrapeTree uses, as input, the output generated by version 2.8.5 of the ChewBBACA database, encoding with crc32. To maintain backward compatibility with previous analyses, it is still possible to run GrapeTree on older profiles generated with ChewBBACA 2.8.4; in this case, it is necessary to select izsam as the encoding.

Please note that these associations must be respected for the analysis to be performed correctly. Any other combination will result in the failure of the analysis.

Moreover, please note that, for the analyses to be considered valid, it is necessary to use ChewBBACA version 2.8.5.

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 output folder, several features will be available, such as the access to some of the output files and the direct graph visualization, both MSTree and NJ graph, thanks to GrapeTree's integration in 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) files 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. 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
cgMLST.nwk file of the tree in .nwk (newick) format calculated using the MSTree algorithm folder: result
cgMLST.tsv .tsv table of alleles identified by chewBBACA during cgMLST (allelic call). Rows: samples; Columns: loci. folder: result
cgMLST_NJ.nwk file of the tree in .nwk (newick) format calculated using the NJ algorithm folder: result
missing_loci.tsv list of loci not shared among the samples and therefore discarded for the tree construction folder: result
cgMLST_dists_matrix.csv allelic distance matrix from cgMLST in .csv format folder: result

The .nwk files contain all the tree data and can be viewed using GrapeTree or other external software for dendrogram visualization.