Mercurial > repos > mingchen0919 > rmarkdown_feature_counts
diff rmarkdown_feature_counts.Rmd @ 13:eb51eca6cdf1 draft
update
author | mingchen0919 |
---|---|
date | Fri, 29 Dec 2017 15:00:59 -0500 |
parents | 238d57ce7d74 |
children | bfa6440d01a3 |
line wrap: on
line diff
--- a/rmarkdown_feature_counts.Rmd Fri Dec 29 14:24:54 2017 -0500 +++ b/rmarkdown_feature_counts.Rmd Fri Dec 29 15:00:59 2017 -0500 @@ -85,8 +85,13 @@ ```{r} colnames(res$counts) = strsplit(opt$input_bam_names, ',')[[1]] # write count into csv file -write.csv(res$counts, file = 'feature_counts.csv', row.names = TRUE) -datatable(res$counts) +write.table(res$counts, file = 'feature_counts.txt') +``` + +Display the first 100 rows. + +```{r} +datatable(head(res$counts, 100)) ``` # Save results into RData file