Skip to content

Commit b0280fb

Browse files
committed
sam to bam
1 parent c04eed5 commit b0280fb

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

16s.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,7 @@ If you have time, copy all the commands from this tutorial in a file, a try to m
324324

325325
### PhyloSeq Analysis
326326

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:
327+
The PhyloSeq package has an `import_mothur` function that you can use to import the files you generated with mothur. As an example, import the example mothur data provided by phyloseq as an example:
330328

331329
```R
332330
mothlist <- system.file("extdata", "esophagus.fn.list.gz", package="phyloseq")
@@ -339,4 +337,16 @@ x <- import_mothur(mothlist, mothgroup, mothtree, cutoff)
339337
x
340338
```
341339

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
340+
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.
341+
342+
> “The biom file format (canonically pronounced ‘biome’) is designed to be a general-use format for representing counts of observations in one or more biological samples. BIOM is a recognized standard for the Earth Microbiome Project and is a Genomics Standards Consortium candidate project.”
343+
344+
More info on [http://biom-format.org/](http://biom-format.org/)
345+
346+
For the rest of this tutorial, we will work with an example dataset provided by the phyloseq package. Load the data with the following command:
347+
348+
349+
```R
350+
data(enterotype)
351+
enterotype
352+
```

variant_calling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ First you need to sort the reads in the BAM-file so the variant caller can easil
7777

7878
You may need to convert your sam file into a bam file first:
7979

80-
`samtools view -b -o $output.bam $input.sam`
80+
`samtools view -bS -o $output.bam $input.sam`
8181

8282
then sort and index the bam file:
8383

0 commit comments

Comments
 (0)