view rmarkdown_samtools_flagstat.Rmd @ 2:1c010e5617c4 draft

change tool id and tool name
author mingchen0919
date Wed, 27 Dec 2017 11:58:37 -0500
parents a0f0effea707
children ec39bfeaf496
line wrap: on
line source

---
title: 'HTML report title'
output:
    html_document:
      number_sections: true
      toc: true
      theme: cosmo
      highlight: tango
---

```{r setup, include=FALSE, warning=FALSE, message=FALSE}
knitr::opts_chunk$set(
  echo = ECHO,
  error = TRUE
)
```


# Code for computational analysis

```{r 'step 1'}
command = paste0('samtools flagstat ', opt$input_bam, ' > report.csv')
system(command)
read.csv('report.csv')
```