HUB
Sign inSign up

cimendes/megagta

By cimendes

•Updated about 7 years ago

Docker container for the megaGTA metagenomic assembled, including HMMER and UCHIME

Image
0

299

cimendes/megagta repository overview

⁠Benchmarking of de novo metagenomic assembly software

While searching for a benchmark with relevant metagenomic assembly software, I gave up and decided to make my own. WORK IN PROGRESS

⁠Table of Contents

⁠Introduction

TODO

⁠Methods

⁠Metagenomic datasets
⁠Simulated dataset

With the M3S3 tool⁠, a simulation sample was obtained made up of the Zymobiomics microbial community standasrd species of bacteria and yeast. The sample has the following composition (obtained with Kraken2 with the minimkaken2_V1 database):

zymos_zimulated_kraken2

⁠Zymos community Standard

Two commercially available mock communities containing 10 microbial species (ZymoBIOMICS Microbial Community Standards) were sequences by Nicholls et al. 2019⁠. Shotgun sequencing of the Even and Log communities was performed with the same protocol, with the exception that the Log community was sequenced individually on 2 flowcell lanes and the Even community was instead sequenced on an Illumina MiSeq using 2×151 bp (paired-end) sequencing. They are available under accession numbers ERR2984773⁠ (even) and ERR2935805⁠.

⁠Real dataset

As a real metagenomic dataset, the three CAMI synthetic metagenome challenge sets was used (Low (L), Medium with differential abundance (M), and High complexity with time series (H)). These datasets are publicly available in GigaDB⁠.

⁠Assembly softwares and commands

I've followed the following metagenomic assembly tools table⁠, published by Ayling et al. 2019⁠, as base for selecting metagenomic software to bee tested. In total 17 tools are presented. IVA⁠ and SAVAGE⁠ were removed as they were aimed at viruses, as well as Genovo⁠ and MAP⁠ due to unavailability of software, VICUNA⁠ due to requiring registeration, Omega⁠ as it was an assembly pipeline, abd BBAP⁠, MetaVelvet⁠, MEtaVelvet-SL⁠, PRICE⁠ and Ray Meta⁠ due to no update sinde 2016. The following tools will be tested:

⁠IDBA-UD :skull:

Published by Peng et al. 2012⁠, it's a De Brujin graph assembler for assembling reads from single-cell sequencing or metagenomic sequencing technologies with uneven sequencing depths. It employs multiple depthrelative thresholds to remove erroneous k-mers in both low-depth and high-depth regions. The technique of local assembly with paired-end information is used to solve the branch problem of low-depth short repeat regions. To speed up the process, an error correction step is conducted to correct reads of high-depth regions that can be aligned to highconfident contigs. The latest version is available at https://github.com/loneknightpy/idba⁠, and an official docker image at https://hub.docker.com/r/loneknightpy/idba⁠ Last update: 31/12/2016 (GitHub)

⁠MegaGTA :skull:

Published by Le et al. 2017⁠, MegaGTA is a gene-targeted assembler that utilizes iterative de Bruijn graphs. It tries to improve on Xander assembler, implementing the same method of using the trained Hidden Markov Model (HMM) to guide the traversal of de Bruijn graph, but using mutiple k-mer sizes to take full advantage of multiple k-mer sizes to make the best of both sensitivity and accuracy. The latest version is available at https://github.com/HKU-BAL/MegaGTA⁠. Last update: 16/06/2016 (GitHub)

⁠MEGAHIT

MEGAHIT, published by Li et al. 2015⁠, de novo assembler for assembling large and complex metagenomics data in a time- and cost-efficient manner. It makes use of succinct de Bruijn graph, with a a multiple k-mer size strategy. In each iteration, MEGAHIT cleans potentially erroneous edges by removing tips, merging bubbles and removing low local coverage edges,specially useful for metagenomics which suffers from non-uniform sequencing depths. The latest version is available at https://github.com/voutcn/megahit⁠ Last update: 12/08/2019 (GitHub)

docker container: cimendes/megahit-assembler:12.08.19-1 command: megahit -1 read_1.fq.gz -2 read_2.fq.gz -o out -t 16

⁠Snowball :skull:

Published by Gregot et al. 2016⁠, Snowball is a novel strain aware gene assembler for shotgun metagenomic data that does not require closely related reference genomes to be available. Like MegaGTA and Xander, it uses profile hidden Markov models (HMMs) of gene domains of interest to guide the assembly. The latest version is available at https://github.com/hzi-bifo/snowball⁠ Last update: 24/09/2017 (GitHub)

⁠SPAdes

A tool aiming to resolve uneven coverage in single cell genome data through multiple k-mer sizes of De Brujin graphs. It starts with the smallest k-mer size and and adds hypotetical k-mers to connect graph. Last update: 11/10/2018 (release) and 24/04/2019 (GitHub)

docker container: cimendes/metaspades:11.10.2018-1 command: spades.py -o out -1 read_1.fq.gz -2 read_2.fq.gz --careful --only-assembler -t 16 -m 32

⁠MetaSPAdes

SPAdes started out as a tool aiming to resolve uneven coverage in single cell genome data, but later metaSPAdes was released, building specific metagenomic pipeline on top of SPAdes. It was published by Nurk et al. 2017⁠, and like SPAdes, it uses multiple k-mer sizes of de Bruijn graph, starting with lowest kmer size and adding hypothetical kmers to connect graph. It's available at http://cab.spbu.ru/software/spades/⁠ and https://github.com/ablab/spades⁠ Last update: 11/10/2018 (release) and 24/04/2019 (GitHub)

docker container: cimendes/metaspades:11.10.2018-1 command: metaspades.py -o out -1 read_1.fq.gz -2 read_2.fq.gz --only-assembler -t 16 -m 32

⁠SKESA

This de novo sequence read assembler is based on DeBruijn graphs and uses conservative heuristics and is designed to create breaks at repeat regions in the genome, creating shorter assemblies but with greater sequence quality. It tries to obtain good contiguity by using k-mers longer than mate length and up to insert size. It was recently published by Souvorov et al. 2018⁠ and it's available at https://github.com/ncbi/SKESA⁠. Last update: 09/10/2018 (GitHub)

docker container: cimendes/ command: skesa --cores 16 --fastq read_1.fq.gz read_2.fq.gz --use_paired_ends > out.fasta

⁠Xander :skull:

Like Snowball and MegaGTA, Xander employs HMM profile model to perform a guided assembly targeting specific genes. These are used to create a novel combined weighted assembly graph. Xander performs both assembly and annotation concomitantly using information incorporated in this graph. It was published by Wang et al. 2015⁠ and it's available at https://github.com/rdpstaff/Xander_assembler⁠. Last update: 27/10/2017 (GitHub)

⁠Assessing Metagenomic Assembly Success
⁠Assembly Continuity

Rick et al. 2019⁠ proposed the use of a triple reference to assess chromosome contiguity while benchmaking long-read genomic assemblers. This measure is the longest single alignment between the assembly and the reference. Therefore, in terms of the reference length:

  • Contiguity is 100% if the assembly went perfectly.
  • Contiguity slightly less than 100% (e.g. 99.99%) indicates that the assembly was complete, but some bases were lost at the start/end of the circular chromosome.
  • Contiguity more than 100% (e.g. 102%) indicates that the assembly contains duplicated sequence via a start-end overlap.
  • Much lower contiguity (e.g. 70%) indicate that the assembly was not complete, either due to fragmentation or missassembly.

More information is available on Rick's Assembly Benchmark GitHub page⁠

For each reference in the Zymos community standard, we've generated a chromosomal triple reference. Each metagenomic assembly was mapped against the triple chromosome references with minimap2⁠, published by Li, 2018⁠.

container: cimendes/minimap2:2.17-1

minimap2 --secondary=no -c -t 16 -r 10000 -g 10000 -x asm20 --eqx data/references/Zymos_Genomes_triple_chromosomes.fasta ${sample}_contigs.fa > ${sample}_${reference}.paf

Because each metagenomic sample is composed by more than one genome, the contings in the assemblies are mapped against all references and only the best result is kept with --secondary=no flag. The resulting mapping file, in PAF format⁠ describes the approximate mapping positions between each mapped contig and the reference.

To obtain the contiguity, as well as other assembly statistics such as NA50, N50, number of contigs, number of aligned contigs and aligned basepairs, and breadth of coverage, the assembly_stats.py script is used.

python assembly_stats.py <assembly.fasta> <paf_file> data/reference/Zymos_Genomes_triple_chromosomes.fasta <assembler_name> > <assembler>_stats.tsv 2>>

⁠Chimera Assessment

The metagenomic assembly can produce chimeric contigs when similar sequences belonging to different organisms are assembled togethers. To assess the level of chimeric sequences produced, we've mapped the original sequence data to the resulting assembly. To do that we used minimap2

container: cimendes/minimap2:2.17-1

minimap2 --secondary=no -x sr --eqx <assembly> <read_1> <read_2> > mapping.paf

For each assembly, the resulting PAF files are then analysed with the contig_chimera.py script.

python contig_chimera.py mapping.paf

⁠Results

⁠Simulated dataset

MEGAHIT_table

metaSPAdes_table

SPAdes_table

SKESA_table

all_assemblers_table

mock_chimeras

mock_assembly_violin

⁠Authors

  • Inês Mendes

    • Instituto de Microbiologia, Instituto de Medicina Molecular, Faculdade de Medicina, Universidade de Lisboa, Lisboa, Portugal;
    • University of Groningen, University Medical Center Groningen, Department of Medical Microbiology and Infection Prevention, Groningen, The Netherlands
  • Yair Motro

    • Department of Health System Management, School of Public Health, Faculty of Health Sciences, Ben-Gurion University of the Negev, Beer-Sheva, Israel.
Tag summary
Recent tags
Content type
Image
Digest
Size
596.2 MB
Last updated
about 7 years ago
docker pull cimendes/megagta:16.06.2016-1