@@ -292,14 +292,23 @@ Otu0009 3618 Bacteria(100);Bacteroidetes(100);Bacteroidia(100);Bacteroidales(100
292292
293293This 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```
298298python 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
299299ktImportXML 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
312321commands that you previously entered in interactive mode.
313322
314323If 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
0 commit comments