Skip to content

Commit c04eed5

Browse files
committed
fixed prokka ctg length
1 parent 770db00 commit c04eed5

2 files changed

Lines changed: 33 additions & 4 deletions

File tree

16s.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,14 +292,23 @@ Otu0009 3618 Bacteria(100);Bacteroidetes(100);Bacteroidia(100);Bacteroidales(100
292292

293293
This is telling you that Otu0001 was observed 12328 times in your sample and that 100% of the sequences were from *Barnesiella*
294294

295-
We'll visualize the composition of our datasets using Krona.
295+
<!-- We'll visualize the composition of our datasets using Krona.
296296
297297
```
298298
python mothur_krona_XML.py stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.an.unique_list.0.03.cons.tax.summary > mothur.xml
299299
ktImportXML mothur.xml
300300
```
301301
302-
Now open `xml.krona.html` in your browser!
302+
Now open `xml.krona.html` in your browser! -->
303+
304+
In order to vizualise the composition of our datasets, we'll use phyloseq, a R package to work with microbiom data.
305+
306+
Most of the phyloseq functionalities require aand a tree file. We need to generate it with mothur:
307+
308+
```
309+
dist.seqs(fasta=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.fasta, output=lt, processors=8)
310+
clearcut(phylip=stability.trim.contigs.good.unique.good.filter.unique.precluster.pick.pick.phylip.dist)
311+
```
303312

304313

305314
### Batch Mode
@@ -312,3 +321,22 @@ where script.batch (or whatever name you want, really) is a text file containing
312321
commands that you previously entered in interactive mode.
313322

314323
If you have time, copy all the commands from this tutorial in a file, a try to make mothur work in batch mode!
324+
325+
### PhyloSeq Analysis
326+
327+
The PhyloSeq package has an `import_mothur` function that you can use to import the files you generated with mothur.
328+
329+
To simplify the tutorial, we will use the example data provided with the phyloseq package:
330+
331+
```R
332+
mothlist <- system.file("extdata", "esophagus.fn.list.gz", package="phyloseq")
333+
mothgroup <- system.file("extdata", "esophagus.good.groups.gz", package="phyloseq")
334+
mothtree <- system.file("extdata", "esophagus.tree.gz", package="phyloseq")
335+
336+
show_mothur_cutoffs(mothlist)
337+
cutoff <- '0.10'
338+
x <- import_mothur(mothlist, mothgroup, mothtree, cutoff)
339+
x
340+
```
341+
342+
Note: If if you ever work with 16s data and decide to use QIIME instead of mothur, phyloseq also has an `import_qiime` function. Also, newer version of qiime and mothur have the ability to produce a `.biom` file

annotation.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ Alternatively, you can download an assembly [here](data/assembly.fasta)
1616

1717
```
1818
module load prokka
19-
prokka --compliant --centre SLU --outdir annotation \
20-
--kingdom Bacteria --proteins m_genitalium.faa assembly.fasta
19+
awk '/^>/{print ">ctg" ++i; next}{print}' < assembly.fasta > good_contigs.fasta
20+
prokka --outdir annotation --kingdom Bacteria \
21+
--proteins m_genitalium.faa good_contigs.fasta
2122
```
2223

2324
Once Prokka has finished, examine each of its output files.

0 commit comments

Comments
 (0)