view rmarkdown_samtools_flagstat.Rmd @ 1:a0f0effea707 draft

fix wrong input type error
author mingchen0919
date Wed, 27 Dec 2017 11:55:46 -0500
parents
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')
```