Skip to content

Commit c1ebf05

Browse files
authored
Merge pull request #2109 from shiltemann/update-abr
[Metagenomics] Nanopore tutorial updates
2 parents 705908a + b5e6ba3 commit c1ebf05

File tree

5 files changed

+95
-54
lines changed

5 files changed

+95
-54
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ icon-tag:
9797
feedback: far fa-comments
9898
galaxy-barchart: fas fa-chart-bar
9999
galaxy-chart-select-data: fas fa-database
100+
galaxy-clear: fas fa-times-circle
100101
galaxy-columns: fas fa-columns
101102
galaxy-cross: fas fa-times
102103
galaxy-dropdown: fas fa-caret-down
4.49 KB
Loading

snippets/history_search.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
>
2+
> > ### {% icon tip %} Tip: Searching your history
3+
> >
4+
> > To make it easier to find datasets in large histories, you can filter your history by keywords as follows:
5+
> > 1. **Click** on the *search datasets* box at the top of the history panel.
6+
> >
7+
> > ![history search box]({{site.baseurl}}/shared/images/history_search_datasets.png)
8+
> >
9+
> > 2. **Type** a search term in this box
10+
> > - For example a tool name, or sample name
11+
> > 3. To undo the filtering and show your full history again, press on the *clear search* button {% icon galaxy-clear %} next to the search box
12+
> {: .tip}
13+
>

snippets/scratchbook.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
>
2+
> > ### {% icon tip %} Tip: Using the Scratchbook to view multiple datasets at once
3+
> > If you would like to view two or more datasets at once, you can use the **Scratchbook** feature in Galaxy:
4+
> > 1. **Click** on the *Scratchbook* icon {% icon galaxy-scratchbook%} on the top menu bar.
5+
> > - You should see a little checkmark on the icon now
6+
> > 2. **View** {% icon galaxy-eye %} a dataset by clicking on the eye icon {% icon galaxy-eye %} to view the output
7+
> > - You should see the output in a window overlayed over Galaxy
8+
> > - You can resize this window by dragging the bottom-right corner
9+
> > 3. **Click** outside the file to exit the Scratchbook
10+
> > 4. **View** {% icon galaxy-eye %} a second dataset from your history
11+
> > - You should now see a second window with the new dataset
12+
> > - This makes it easier to compare the two outputs
13+
> > 5. Repeat this for as many files as you would like to compare
14+
> > 6. You can turn off the **Scratchbook** {% icon galaxy-scratchbook %} by clicking on the icon again
15+
> {: .tip}
16+
>

topics/metagenomics/tutorials/plasmid-metagenomics-nanopore/tutorial.md

Lines changed: 65 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ report page.
128128
129129
> ### {% icon hands_on %} Hands-on: Plotting scripts for long read sequencing data
130130
>
131-
> 1. **NanoPlot** {% icon tool %} with the following parameters
132-
> - *"Select multifile mode"*: `batch`
133-
> - *"Type of the file(s) to work on"*: `fasta`
134-
> - *"files"*: The `Plasmids` dataset collection you just created
131+
> 1. {% tool [Nanoplot](tool toolshed.g2.bx.psu.edu/repos/iuc/nanoplot/nanoplot/1.28.2+galaxy1) %} with the following parameters
132+
> - {% icon param-select %} *"Select multifile mode"*: `batch`
133+
> - {% icon param-select %} *"Type of the file(s) to work on"*: `fasta`
134+
> - {% icon param-collection %} *"files"*: The `Plasmids` dataset collection you just created
135135
>
136136
> {% include snippets/select_collection.md %}
137137
>
@@ -178,14 +178,14 @@ the Minimap2 publication ({% cite Li2018 %}).
178178
179179
> ### {% icon hands_on %} Hands-on: Pairwise sequence alignment
180180
>
181-
> 1. **Map with minimap2** {% icon tool %} with the following parameters
182-
> - *"Will you select a reference genome from your history or use a built-in index?"*: `Use a genome from history and build index`
183-
> - *"Use the following data collection as the reference sequence"*: `Created dataset collection (Plasmids)`
184-
> - *"Single or Paired-end reads"*: `Single`
185-
> - *"Select fastq dataset"*: The `Plasmids` dataset collection
186-
> - *"Select analysis mode (sets default)"*: `Oxford Nanopore all-vs--all overlap mapping`
181+
> 1. {% tool [Map with minimap2](toolshed.g2.bx.psu.edu/repos/iuc/minimap2/minimap2/2.17+galaxy2) %} with the following parameters
182+
> - {% icon param-select %} *"Will you select a reference genome from your history or use a built-in index?"*: `Use a genome from history and build index`
183+
> - {% icon param-collection %} *"Use the following data collection as the reference sequence"*: `Plasmids` dataset collection we just created
184+
> - {% icon param-select %} *"Single or Paired-end reads"*: `Single`
185+
> - {% icon param-collection %} *"Select fastq dataset"*: The `Plasmids` dataset collection
186+
> - {% icon param-select%} *"Select a profile of preset options"*: `Oxford Nanopore all-vs--all overlap mapping`
187187
> - In the section **Set advanced output options**:
188-
> - *"Select an output format"*: `paf`
188+
> - {% icon param-select %} *"Select an output format"*: `paf`
189189
>
190190
> {% include snippets/select_collection.md %}
191191
>
@@ -231,9 +231,9 @@ Thus the per-base error rate is similar to the raw input reads.
231231
232232
> ### {% icon hands_on %} Hands-on: De novo assembly
233233
>
234-
> 1. **miniasm** {% icon tool %} with the following parameters
235-
> - *"Sequence Reads"*: The `Plasmids` dataset collection
236-
> - *"PAF file"*: `Output Minimap dataset collection` created by **Minimap2** {% icon tool %}
234+
> 1. {% tool [miniasm](toolshed.g2.bx.psu.edu/repos/iuc/miniasm/miniasm/0.3+galaxy0) %} with the following parameters
235+
> - {% icon param-collection %} *"Sequence Reads"*: The `Plasmids` dataset collection
236+
> - {% icon param-collection %} *"PAF file"*: `Output Minimap dataset collection` created by **Minimap2** {% icon tool %}
237237
>
238238
> {% include snippets/select_collection.md %}
239239
>
@@ -256,33 +256,34 @@ Remapping is done with the original reads, using the Miniasm assembly as a refer
256256
257257
> ### {% icon hands_on %} Hands-on: Pairwise sequence alignment
258258
>
259-
> 1. **GFA to Fasta** {% icon tool %} with the following parameters
260-
> - *"Input GFA file"*: the `Assembly Graph` (collection) created by **Miniasm** {% icon tool %}
261-
>
262-
> 2. **Map with minimap2** {% icon tool %} with the following parameters
263-
> - *"Will you select a reference genome from your history or use a built-in index?"*: `Use a genome from history and build index`
264-
> - *"Use the following dataset as the reference sequence"*: `FASTA file` collection created by **GFA to Fasta** {% icon tool %}
265-
> - *"Single or Paired-end reads"*: `single`
266-
> - *"Select fastq dataset"*: The `Plasmids` collection
267-
> - *"Select analysis mode (sets default)"*: `PacBio/Oxford Nanopore read to reference mapping (-Hk19)`
268-
> - In the section **Set advanced output options**:
269-
> - *"Select an output format"*: `paf`
270-
>
271-
>
272-
> {% include snippets/select_collection.md %}
259+
> 1. {% tool [GFA to Fasta](toolshed.g2.bx.psu.edu/repos/iuc/gfa_to_fa/gfa_to_fa/0.1.1) %} with the following parameters
260+
> - {% icon param-collection %} *"Input GFA file"*: the `Assembly Graph` (collection) created by **Miniasm** {% icon tool %}
273261
>
274262
> > ### {% icon question %} Question
275263
> >
276-
> > How many contigs do we have for the RB05 sample after the use of **Minimap2** {% icon tool %} and **Miniasm** {% icon tool %}?
264+
> > How many contigs do we have for the RB05 sample after de novo assembly?
277265
> > <br><br>
278266
> > Hint: run **Nanoplot** {% icon tool %} on the output of **GFA to Fasta** {% icon tool %}
279267
> >
280268
> > > ### {% icon solution %} Solution
281-
> > > 22
269+
> > > 25
282270
> > >
283271
> > > This can be determined by looking at the NanoStats output of NanoPlot.
284272
> > {: .solution }
285273
> {: .question}
274+
>
275+
> 2. {% tool [Map with minimap2](toolshed.g2.bx.psu.edu/repos/iuc/minimap2/minimap2/2.17+galaxy2) %} with the following parameters
276+
> - {% icon param-select %} *"Will you select a reference genome from your history or use a built-in index?"*: `Use a genome from history and build index`
277+
> - {% icon param-collection %} *"Use the following dataset as the reference sequence"*: `FASTA file` output from **GFA to Fasta** {% icon tool %} (collection)
278+
> - {% icon param-select %} *"Single or Paired-end reads"*: `single`
279+
> - {% icon param-collection %} *"Select fastq dataset"*: The `Plasmids` collection
280+
> - {% icon param-select %} *"Select a profile of preset options"*:: `PacBio/Oxford Nanopore read to reference mapping (-Hk19)`
281+
> - In the section **Set advanced output options**:
282+
> - {% icon param-select %} *"Select an output format"*: `paf`
283+
>
284+
>
285+
> {% include snippets/select_collection.md %}
286+
>
286287
{: .hands_on}
287288
288289
## Ultrafast consensus module using Racon
@@ -296,10 +297,10 @@ It supports data produced by both Pacific Biosciences and Oxford Nanopore Techno
296297
297298
> ### {% icon hands_on %} Hands-on: Consensus module
298299
>
299-
> 1. **Racon** {% icon tool %} with the following parameters
300-
> - *"Sequences"*: The `Plasmids` dataset collection
301-
> - *"Overlaps"*: the latest `PAF file` collection created by **Minimap2** {% icon tool %}
302-
> - *"Target sequences"*: the `FASTA file` collection created by **GFA to Fasta** {% icon tool %}
300+
> 1. {% tool [Racon](toolshed.g2.bx.psu.edu/repos/bgruening/racon/racon/1.4.13) %} with the following parameters
301+
> - {% icon param-collection %} *"Sequences"*: The `Plasmids` dataset collection
302+
> - {% icon param-collection %} *"Overlaps"*: the latest `PAF file` collection created by **Minimap2** {% icon tool %}
303+
> - {% icon param-collection %} *"Target sequences"*: the `FASTA file` collection created by **GFA to Fasta** {% icon tool %}
303304
>
304305
{: .hands_on}
305306
@@ -326,8 +327,8 @@ By visualizing these assembly graphs, Bandage allows users to better understand,
326327
327328
> ### {% icon hands_on %} Hands-on: Visualising de novo assembly graphs
328329
>
329-
> 1. **Bandage image** {% icon tool %} with the following parameters
330-
> - *"Graphical Fragment Assembly"*: the `Assembly graph` collection created by **Miniasm** {% icon tool %}
330+
> 1. {% tool [Bandage image](toolshed.g2.bx.psu.edu/repos/iuc/bandage/bandage_image/0.8.1+galaxy2) %} with the following parameters
331+
> - {% icon param-collection %} *"Graphical Fragment Assembly"*: the `Assembly graph` collection created by **Miniasm** {% icon tool %}
331332
>
332333
> 2. Explore {% icon galaxy-eye %} the output images
333334
>
@@ -372,23 +373,34 @@ Let's try it on our data!
372373
373374
> ### {% icon hands_on %} Hands-on: Unicycler assembly
374375
>
375-
> 1. **Create assemblies with Unicycler** {% icon tool %} with the following parameters
376-
> - *"Paired or Single end data"*: `None`
377-
> - *"Select long reads. If there are no long reads, leave this empty"*: The `Plasmids` dataset collection
376+
> 1. {% tool [Create assemblies with Unicycler](toolshed.g2.bx.psu.edu/repos/iuc/unicycler/unicycler/0.4.8.0) %} with the following parameters
377+
> - {% icon param-select %} *"Paired or Single end data"*: `None`
378+
> - {% icon param-collection %} *"Select long reads. If there are no long reads, leave this empty"*: The `Plasmids` dataset collection
378379
>
379-
> 2. **Bandage image** {% icon tool %} with the following parameters
380-
> - *"Graphical Fragment Assembly"*: the `Final Assembly Graph` collection created by **Unicycler** {% icon tool %}
380+
> 2. {% tool [Bandage image](toolshed.g2.bx.psu.edu/repos/iuc/bandage/bandage_image/0.8.1+galaxy2) %} with the following parameters
381+
> - {% icon param-collection %} *"Graphical Fragment Assembly"*: the `Final Assembly Graph` collection created by **Unicycler** {% icon tool %}
381382
>
382383
> 3. Examine {% icon galaxy-eye %} the output images again
383384
>
384-
> > ### {% icon question %} Question
385-
> >
386-
> > For which samples has the plasmid assembly improved?
387-
> >
388-
> > > ### {% icon solution %} Solution
389-
> > > Exploring the outputs for all the samples reveals that many now display circular assemblies, indicating the full plasmids sequence was resolved.
390-
> > {: .solution }
391-
> {: .question}
385+
> 4. Use the **Scratchbook** {% icon galaxy-scratchbook %} to compare the two assemblies for sample `RB01`
386+
> - Compare the **Bandage** {% icon tool %} images for our two assemblies:
387+
> 1. The assembly we got from running **minimap2, miniasm, racon** {% icon tool%} (first time we ran bandage)
388+
> 2. The assembly obtained with **Unicycler** {% icon tool %}
389+
> - Tip: Search your history for the term `bandage` to easily find the outputs from our two bandage runs
390+
>
391+
> {% include snippets/scratchbook.md %}
392+
> {% include snippets/history_search.md %}
393+
>
394+
> 5. Repeat this comparison for the other samples.
395+
>
396+
> > ### {% icon question %} Question
397+
> >
398+
> > For which samples has the plasmid assembly improved?
399+
> >
400+
> > > ### {% icon solution %} Solution
401+
> > > Exploring the outputs for all the samples reveals that many now display circular assemblies, indicating the full plasmids sequence was resolved.
402+
> > {: .solution }
403+
> {: .question}
392404
>
393405
{: .hands_on}
394406
@@ -410,8 +422,8 @@ It relies on the neural network models trained on full genome and plasmid sequen
410422
411423
> ### {% icon hands_on %} Hands-on: Prediction of plasmid sequences
412424
>
413-
> 1. **PlasFlow** {% icon tool %} with the following parameters
414-
> - *"Sequence Reads"*: the `Final Assembly` collection created by **Unicycler** {% icon tool %}
425+
> 1. {% tool [PlasFlow](toolshed.g2.bx.psu.edu/repos/iuc/plasflow/PlasFlow/1.0) %} with the following parameters
426+
> - {% icon param-collection %} *"Sequence Reads"*: the `Final Assembly` collection created by **Unicycler** {% icon tool %}
415427
>
416428
> > ### {% icon question %} Question
417429
> >
@@ -456,8 +468,8 @@ and compiles a summary report of detected antimicrobial resistance genes.
456468
457469
> ### {% icon hands_on %} Hands-on: Prediction of AMR genes
458470
>
459-
> 1. **staramr** {% icon tool %} with the following parameters
460-
> - *"genomes"*: the `Final Assembly` collection created by **Unicycler**
471+
> 1. {% tool [staramr](toolshed.g2.bx.psu.edu/repos/nml/staramr/staramr_search/0.7.1+galaxy2) %} with the following parameters
472+
> - {% icon param-collection %} *"genomes"*: the `Final Assembly` collection created by **Unicycler** {% icon tool %}
461473
>
462474
> > ### {% icon question %} Question
463475
> >
@@ -518,4 +530,3 @@ You have worked your way through the following pipeline:
518530
519531
![Workflow representation of this tutorial](../../images/plasmid-metagenomics-nanopore/Workflow.png)
520532
521-

0 commit comments

Comments
 (0)