Skip to content

Commit 2568aa5

Browse files
committed
Edit text on individual vs co-assembly
- Remove 'Describe what de-replication is' from objectives; this is in the scope of the binning tutorial
1 parent 0a6488e commit 2568aa5

File tree

1 file changed

+45
-36
lines changed
  • topics/microbiome/tutorials/metagenomics-assembly

1 file changed

+45
-36
lines changed

topics/microbiome/tutorials/metagenomics-assembly/tutorial.md

Lines changed: 45 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,18 @@ questions:
1111
- "How tools based on De Bruijn graph work?"
1212
- "How to assess the quality of metagenomic data assembly?"
1313
objectives:
14-
- "Describe what an assembly is"
15-
- "Describe what de-replication is"
16-
- "Explain the difference between co-assembly and individual assembly"
17-
- "Explain the difference between reads, contigs and scaffolds"
18-
- "Explain how tools based on De Bruijn graph work"
19-
- "Apply appropriate tools for analyzing the quality of metagenomic data"
20-
- "Construct and apply simple assembly pipelines on short read data"
21-
- "Apply appropriate tools for analyzing the quality of metagenomic assembly"
22-
- "Evaluate the Quality of the Assembly with Quast, Bowtie2, and CoverM-Contig"
14+
- "Describe what an assembly is."
15+
- "Explain the difference between co-assembly and individual assembly."
16+
- "Explain the difference between reads, contigs and scaffolds."
17+
- "Explain how tools based on de Bruijn graph work."
18+
- "Evaluate the Quality of the Assembly with QUAST, Bowtie2, and CoverM-Contig."
19+
- "Construct and apply simple assembly pipelines on short read data.""
2320
time_estimation: "2H"
2421
key_points:
25-
- "Assembly groups reads into contigs and scafolds."
26-
- "De Brujin Graphs use k-mers to assembly reads"
27-
- "MetaSPAdes and MEGAHIT are assemblers"
28-
- "Quast is the tool to assess the assembly quality"
22+
- "Assembly groups reads into contigs and scaffolds."
23+
- "de Brujin Graphs use k-mers to assembly reads."
24+
- "MetaSPAdes and MEGAHIT are short-read assemblers."
25+
- "MetaQUAST is a tool to assess metagenomic assembly quality."
2926
edam_ontology:
3027
- topic_3174 # Metagenomics
3128
- topic_0196 # Sequence assembly
@@ -159,11 +156,11 @@ In case of a not very large dataset it's more convenient to upload data directly
159156
160157
As explained before, there are many challenges to metagenomics assembly, including:
161158
162-
1. differences in coverage between samples, resulting from differences in abundance,
163-
2. the fact that different species often share conserved regions ({%cite kececioglu2001%}), and
164-
3. the presence of multiple strains of a single species ({%cite miller2010%}).
159+
1. Differences in coverage between samples, resulting from differences in abundance;
160+
2. The fact that different species often share conserved regions ({%cite kececioglu2001%}), and
161+
3. The presence of multiple strains of a single species ({%cite miller2010%}).
165162
166-
To reduce the differences in coverage between samples, we can use a **co-assembly** approach, where reads from all samples are aligned together.:
163+
To reduce the differences in coverage between samples, we can use a **co-assembly** approach, where reads from all samples are aligned together:
167164
168165
![Image show one pile of sample1 reads and another pile of sample2 reads, then, green arrow leads to assembled reads from both piles](./images/co-assembly.png "Co-assembly"){:width="60%"}
169166
@@ -185,27 +182,37 @@ In these cases, co-assembly is reasonable if:
185182
- Longitudinal sampling of the same site
186183
- Related samples
187184
188-
If it is not the case, **individual assembly** should be prefered. In this case, an extra step of **de-replication** should be used:
185+
Examples where co-assembly would be reasonable:
186+
- Repeated sampling of the **same patient** along a particular amount of time.
187+
- Multiple samples taken from the **same site** and **similar environmental conditions**, eg. a patch of soil during the same sampling season.
188+
189+
Examples where co-assembly would NOT be recommended:
190+
- Samples from different patients.
191+
- Samples from the same site, but over different seasons or under different environmental conditions, eg. a patch of soil before and after a bushfire event, a marine site under upwelling vs. under normal conditions.
192+
193+
If samples differ like described, **individual assembly** is preferred. In the case of individual assembly, if **contigs are binned** after, an extra step of **de-replication** should be used:
189194
190195
![Image shows the process of individual assembly on two strains and five samples, after individual assembly of samples two samples are chosen for de-replication process. In parallel, co-assembly on all five samples is performed](./images/individual-assembly.png "Individual assembly followed by de-replication vs co-assembly. Source: dRep documentation"){:width="80%"}
191196
192-
Co-assembly is more commonly used than individual assembly and then de-replication after binning. But in this tutorial, to show all steps, we will run an **individual assembly**.
197+
For more information on dereplication, check out the [metagenomic binning tutorial](../metagenomics-binning/tutorial.md).
193198
194-
> <comment-title></comment-title>
195-
> Sometimes it is important to run assembly tools both on individual samples and on all pooled samples, and use both outputs to get the better outputs for the certain dataset.
199+
In this tutorial, to show all steps, we will run an **individual assembly**.
200+
201+
> <comment-title>Why not both?</comment-title>
202+
> Sometimes it is important to run both individual assembly and co-assembly, and use both outputs to get better results for that dataset.
196203
{: .comment}
197204
198205
As mentioned in the introduction, several tools are available for metagenomic assembly. But 2 are the most used ones:
199206
200-
- **MetaSPAdes** ({%cite nurk2017%}): an short-read assembler designed specifically for large and complex metagenomics datasets
207+
- **MetaSPAdes** ({%cite nurk2017%}): an short-read assembler designed specifically for large and complex metagenomics datasets.
201208
202209
MetaSPAdes is part of the SPAdes toolkit, which has several assembly pipelines. Since SPAdes handles non-uniform coverage, it is useful for assembling simple communities, but metaSPAdes also handles other problems, allowing it to assemble complex communities' metagenomes.
203210
204211
As input for metaSPAdes it can accept short reads. However, there is an option to use additionally long reads besides short reads to produce hybrid input.
205212
206213
- **MEGAHIT** ({% cite li2015 %}): a single node assembler for large and complex metagenomics NGS reads, such as soil
207214
208-
It makes use of succinct de Bruijn graph (SdBG) to achieve low memory assembly.
215+
It makes use of the Succinct de Bruijn Graph (SdBG) approach to achieve low memory assembly.
209216
210217
Both tools are available in Galaxy. But currently, only MEGAHIT can be used in individual mode for several samples.
211218
@@ -227,9 +234,11 @@ Both tools are available in Galaxy. But currently, only MEGAHIT can be used in i
227234
>
228235
{: .hands_on}
229236
230-
**MEGAHIT** produced a collection of output assemblies - one per sample - that can be proceeded further in binning step and then de-replication. The output contains **contigs**, contiguous lengths of genomic sequences in which bases are known to a high degree of certainty.
237+
**MEGAHIT** produced a collection of output assemblies - one per sample - that can be used for the subsequent step of **metagenomic binning**. The output contains **contigs**, contiguous lengths of genomic sequences in which bases are known to a high degree of certainty.
231238
232-
Contrary to **MetaSPAdes**, **MEGAHIT** does not output **scaffolds**, i.e. segments of genome sequence reconstructed fron contigs and gaps. The gaps occur when reads from the two sequenced ends of at least one fragment overlap with other reads from two different contigs (as long as the arrangement is otherwise consistent with the contigs being adjacent). It is possible to estimate the number of bases between contigs based on fragment lengths.
239+
<comment-title>Scaffolds</comment-title>
240+
Contrary to **MetaSPAdes**, **MEGAHIT** does not output **scaffolds**. **Scaffolds** are segments of genome sequence reconstructed fron contigs and gaps. The gaps occur when reads from the two sequenced ends of at least one fragment overlap with other reads from two different contigs (as long as the arrangement is otherwise consistent with the contigs being adjacent). It is possible to estimate the number of bases between contigs based on fragment lengths.
241+
{:. comment}
233242
234243
> <comment-title></comment-title>
235244
>
@@ -249,7 +258,7 @@ Contrary to **MetaSPAdes**, **MEGAHIT** does not output **scaffolds**, i.e. segm
249258
> > ```
250259
> >
251260
> >
252-
> > 2. Create a collection named `MEGAHIT Contig`, rename your pairs with the sample name
261+
> > 2. Create a collection named `MEGAHIT Contigs`, rename your pairs with the sample name
253262
> >
254263
> {: .hands_on}
255264
{: .comment}
@@ -290,7 +299,7 @@ Assemblies can be evaluated with **metaQUAST** ({%cite mikheenko2016%}), the met
290299
291300
> <hands-on-title>Evaluation assembly quality with metaQUAST</hands-on-title>
292301
>
293-
> 1. {% tool [Quast](toolshed.g2.bx.psu.edu/repos/iuc/quast/quast/5.2.0+galaxy1) %} with parameters:
302+
> 1. {% tool [QUAST](toolshed.g2.bx.psu.edu/repos/iuc/quast/quast/5.2.0+galaxy1) %} with parameters:
294303
> - *"Assembly mode?*": `Individual assembly (1 contig file per samples)`
295304
> - *"Use customized names for the input files?"*: `No, use dataset names`
296305
> - {% icon param-collection %} *"Contigs/scaffolds file"*: output **MEGAHIT**
@@ -309,11 +318,11 @@ Assemblies can be evaluated with **metaQUAST** ({%cite mikheenko2016%}), the met
309318
310319
> <comment-title></comment-title>
311320
>
312-
> Since the Quast process would take times we are just going to import the results:
321+
> Since the QUAST process would take times we are just going to import the results:
313322
>
314-
> > <hands-on-title>Import generated metaQuast results</hands-on-title>
323+
> > <hands-on-title>Import generated metaQUAST results</hands-on-title>
315324
> >
316-
> > 1. Import the metaQuast report file from [Zenodo]({{ page.zenodo_link }}) or the Shared Data library:
325+
> > 1. Import the metaQUAST report file from [Zenodo]({{ page.zenodo_link }}) or the Shared Data library:
317326
> >
318327
> > ```text
319328
> > {{ page.zenodo_link }}/files/quast_ERR2231567.html
@@ -327,7 +336,7 @@ Assemblies can be evaluated with **metaQUAST** ({%cite mikheenko2016%}), the met
327336
> {: .hands_on}
328337
{: .comment}
329338
330-
Quast main output are HTML reports which aggregate different metrics.
339+
QUAST main output are HTML reports which aggregate different metrics.
331340
332341
## Assembly statistics
333342
@@ -339,7 +348,7 @@ On the top of each report is a table with in rows statistics for contigs larger
339348
340349
A base in the reference genome is counted as aligned if at least one contig has at least one alignment to this base.
341350
342-
We did not provide any reference there, but metaQuast try to identify genome content of the metagenome by aligning contigs to [SILVA](https://www.arb-silva.de/) 16S rRNA database. For each assembly, 50 reference genomes with top scores are chosen. The full reference genomes of the identified organisms are afterwards downloaded from NCBI to map the assemblies on them and compute the genome fractions.
351+
We did not provide any reference there, but metaQUAST try to identify genome content of the metagenome by aligning contigs to [SILVA](https://www.arb-silva.de/) 16S rRNA database. For each assembly, 50 reference genomes with top scores are chosen. The full reference genomes of the identified organisms are afterwards downloaded from NCBI to map the assemblies on them and compute the genome fractions.
343352
344353
For each identified genomes, the genome fraction is given when clicking on **Genome fraction (%)**
345354
@@ -456,7 +465,7 @@ On the top of each report is a table with in rows statistics for contigs larger
456465
457466
3. **Misassemblies**: joining sequences that should not be adjacent.
458467
459-
Quast identifies missassemblies by mapping the contigs to the reference genomes of the identified organisms. 3 types of misassemblies can be identified:
468+
QUAST identifies missassemblies by mapping the contigs to the reference genomes of the identified organisms. 3 types of misassemblies can be identified:
460469
461470
![Image shows on the top a contig with a blue and a gren parts with white arrows (pointing on the right) on them and below a reference with 2 chromosomes. The 3 types of misassemblies are after schematized. Relocation: the blue and gren parts of the contig are on chr 1 but separated. Inversion: the blue and gren parts of the contig are on chr 1 but separated and with the arrows facing each other. Translocation: the blue part is on chr 1 and gren part on chr 2.](./images/quast_misassemblies.png "Source: <a href="https://quast.sourceforge.net/docs/manual.html#sec3.1.2">QUAST manual</a>"){:width="60%"}
462471
@@ -781,8 +790,8 @@ Metagenomic data can be assembled to, ideally, obtain the genomes of the species
781790
- **different tools** like MetaSPAdes and MEGAHIT
782791
783792
Once the choices made, metagenomic assembly can start:
784-
1. Input data are assembled to obtain contigs and sometimes scaffolds
785-
2. Assembly quality is evaluated with various metrics
793+
1. Input data are assembled to obtain contigs and sometimes scaffolds.
794+
2. Assembly quality is evaluated with various metrics.
786795
3. The assembly graph can be visualized.
787796
788-
Once all these steps done, we can move to the next phase to build Metagenomics Assembled Genomes (MAGs): binning
797+
Once all these steps done, we can move to the next phase to build Metagenomics Assembled Genomes (MAGs): [metagenomic binning](../metagenomics-binning/tutorial.md).

0 commit comments

Comments
 (0)