Mercurial > repos > mingchen0919 > aurora_htseq_site
comparison 01_htseq_count_analysis.Rmd @ 5:cf3fde5d0834 draft
planemo upload commit 104ae24ee30761a0099eeb91362ed1e3e13aba4b-dirty
| author | mingchen0919 |
|---|---|
| date | Tue, 01 May 2018 11:27:32 -0400 |
| parents | |
| children | a40d5db8687e |
comparison
equal
deleted
inserted
replaced
| 4:b3e5f4753856 | 5:cf3fde5d0834 |
|---|---|
| 1 --- | |
| 2 title: 'HTSeq-count Analysis' | |
| 3 output: | |
| 4 html_document: | |
| 5 highlight: pygments | |
| 6 --- | |
| 7 | |
| 8 ## Job script | |
| 9 | |
| 10 ```{bash, echo=FALSE} | |
| 11 sh ${TOOL_INSTALL_DIR}/build-and-run-job-scripts.sh | |
| 12 ``` | |
| 13 | |
| 14 ```{r echo=FALSE, comment='', results='asis'} | |
| 15 cat('```bash\n') | |
| 16 cat(readLines(paste0(Sys.getenv('REPORT_FILES_PATH'), '/htseq-count.sh')), sep = '\n') | |
| 17 cat('\n```') | |
| 18 ``` | |
| 19 | |
| 20 ## Counts | |
| 21 | |
| 22 Only the first few rows are displayed. | |
| 23 | |
| 24 ```{r, echo=FALSE} | |
| 25 count_data = read.table(paste0(opt$X_d, '/counts.txt'), row.names = 1) | |
| 26 sample_names = trimws(strsplit(opt$X_B, ',')[[1]]) | |
| 27 colnames(count_data) = rep(sample_names, length = ncol(count_data)) | |
| 28 kable(head(count_data)) | |
| 29 | |
| 30 # modify column names | |
| 31 count_data = data.frame(feature_id = rownames(count_data), count_data) | |
| 32 write.csv(count_data, | |
| 33 file = paste0(Sys.getenv('REPORT_FILES_PATH'), '/count_data.csv'), | |
| 34 quote = FALSE, row.names = FALSE) | |
| 35 ``` | |
| 36 |
