Mercurial > repos > mingchen0919 > rmarkdown_samtools_flagstat
comparison rmarkdown_samtools_flagstat.Rmd @ 5:1c16536c70f5 draft
update
author | mingchen0919 |
---|---|
date | Wed, 27 Dec 2017 15:20:55 -0500 |
parents | ec39bfeaf496 |
children |
comparison
equal
deleted
inserted
replaced
4:ec39bfeaf496 | 5:1c16536c70f5 |
---|---|
14 error = TRUE | 14 error = TRUE |
15 ) | 15 ) |
16 ``` | 16 ``` |
17 | 17 |
18 | 18 |
19 # Reads alignment stats | 19 # Reads alignment stats on `r opt$input_bam_name` |
20 | 20 |
21 ```{r 'flagstat'} | 21 ```{r 'flagstat'} |
22 command = paste0('samtools flagstat ', opt$input_bam, ' > ', paste0(opt$report_dir, '/report.txt')) | 22 command = paste0('samtools flagstat ', opt$input_bam, ' > ', paste0(opt$report_dir, '/report.txt')) |
23 system(command) | 23 system(command) |
24 df = readLines(paste0(opt$report_dir, '/report.txt')) %>% | 24 df = readLines(paste0(opt$report_dir, '/report.txt')) %>% |