annotate rmarkdown_flagstat.Rmd @ 0:ba913054bbff draft

planemo upload
author mingchen0919
date Tue, 26 Dec 2017 19:27:41 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
1 ---
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
2 title: 'samtools flagstat'
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
3 output:
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
4 html_document:
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
5 number_sections: true
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
6 toc: true
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
7 theme: cosmo
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
8 highlight: tango
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
9 ---
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
10
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
11 ```{r setup, include=FALSE, warning=FALSE, message=FALSE}
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
12 knitr::opts_chunk$set(
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
13 echo = ECHO
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
14 )
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
15 ```
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
16
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
17
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
18 # Code for computational analysis
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
19
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
20 ```{r 'run flagstat'}
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
21 command = paste0('samtools flagstat ', opt$input_bam, ' > report.txt')
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
22 system(command)
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
23 ```
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
24
ba913054bbff planemo upload
mingchen0919
parents:
diff changeset
25