QC, Assemble and Bin Pangenomes

This workflow guides the investigator through the key steps to analyze whole-genome shotgun metagenomic reads and deconstruct them into clusters of sequences (bins) using the tools Bin Pangenomes by Taxonomy and Bin Pangenomes by Sequence. The inputs to the workflow are short reads belonging to a single metagenome sample (also split in multiple sequence objects). The outputs are two sequence lists objects: one for reads and one for assembled contigs, labelled for bin association. Reports are also output at each step.

To run the workflow, go to:

        Toolbox | Template Workflows (Image workflow_group) | Microbial Workflows (Image mgm_folder_closed_flat_16_h_p) | Metagenomics (Image wma_folder_open_flat_16_n_p) | Taxonomic Analysis (Image taxonomic_analysis_folder_closed_16_n_p) | QC, Assemble and Bin Pangenomes (Image binpan_workflow2_16_n_p)

In the first step, one or more reads sequence objects are selected (figure 2.8).

Image bintax1
Figure 2.8: Select the reads.

The workflow first performs QC of raw reads using basic quality-based trimming, but fixed-length trimming can also be added. In the "Trim Reads" dialog, you can specify a trim adapter list and set up parameters if you would like to trim your sequences from adapters. Specifying a trim adapter list is optional but recommended to ensure the highest quality data for your typing analysis (figure 2.9).

Image bintax2
Figure 2.9: Trim the reads.

In the next step, QC-processed reads are assembled in contigs using the De novo Assemble Metagenome tool. Specify minimum contig length, the type of de novo assembly you wish to perform (fast, or optimized for longer contigs), and whether you wish to perform scaffolding (figure 2.10).

Image bintax3
Figure 2.10: Parameters for the De Novo Assembly Metagenome tool.

Reads and contigs are then first binned according to taxonomic association and then based on sequence similarity. The tool is designed to work on contigs assembled from the same set of reads used as input (as in the workflow, see QC, Assemble and Bin Pangenomes). The tool will use the result of the De novo assembly configured here, but you can set the minimum contig length needed in the next dialog (figure 2.11).

As reference databases, one or two Taxonomic Profiling index files can be provided:

Both references can be obtained by using the Download Curated Microbial Reference Database tool (Download Curated Microbial Reference Database) or Download Custom Microbial Reference Database tool (Download Custom Microbial Reference Database). If using the custom downloader, the microbial reference index is built with the Create Taxonomic Profiling Index tool (Create Taxonomic Profiling Index).

Image bintax4
Figure 2.11: Select the references and configure the Bin Pangenomes by Taxonomy.

Depending on the dataset, it may be necessary to adapt the contig purity settings, where "Maximum level" refers to a maximum level in the taxonomic tree and where a specific "Minimum purity" per contig needs to be reached in order for it to be considered a part of a bin. For example, if Maximum level = Genus and Minimum purity = 0.8 and 512 reads map to a given contig, at least 0.8 * 512 = 410 reads need to have the same Genus level taxonomy in order for the contig to become part of the respective bin. If more precise taxonomic information is available (e.g., on Species level) with the requested minimum purity, this information will be used instead.

In the next dialog (figure 2.12), configure the parameters for the Bin Pangenomes by Sequence: once again you can set the minimum contig length of the contigs generated by the De Novo Assembly Metagenome tool. You can also choose the maximum of iterations that should be performed, and how to label singletons (bins with only one genome).

Image bintax5
Figure 2.12: Configure the Bin Pangenomes by Sequence.

The tool will produce the following outputs:

Image bintax6
Figure 2.13: The Bin Pangenomes by Taxonomy report. Sequences with the same TaxBin label should have very similar, if not identical, taxonomy.

Image bintax7
Figure 2.14: The Bin Pangenomes by Sequence report. Sequences with same Bin label are closely related in sequence space.

Individual bins can be extracted from the sequence and contig lists (when seen as tables, you can find the bin label inthe Assembly_ID column) and used for downstream analysis such as reference-based assembly (or re-assembly), functional analysis, typing etc.