Contents

Note: the most recent version of this vignette can be found here and a short overview slide show here.

1 Introduction

systemPipeRdata is a helper package to generate with a single command NGS workflow templates that are intended to be used by its parent package systemPipeR (Girke 2014). The latter is an environment for building end-to-end analysis pipelines with automated report generation for next generation sequence (NGS) applications such as RNA-Seq, Ribo-Seq, ChIP-Seq, VAR-Seq and many others. The directory structure of the workflow templates and the sample data used by systemPipeRdata are described here.

Back to Table of Contents

2 Getting Started

2.1 Installation

The R software for using systemPipeRdata can be downloaded from CRAN. The systemPipeRdata package can be installed from within R as follows:

source("http://bioconductor.org/biocLite.R") # Sources the biocLite.R installation script 
biocLite("tgirke/systemPipeRdata", build_vignettes=TRUE, dependencies=TRUE) # Installs from github
biocLite("systemPipeRdata") # Installs from Bioconductor once available there
Back to Table of Contents

2.2 Loading package and documentation

library("systemPipeRdata") # Loads the package
library(help="systemPipeRdata") # Lists package info
vignette("systemPipeRdata") # Opens vignette
Back to Table of Contents

2.3 Generate workflow template

Load one of the available NGS workflows into your current working directory. The following does this for the varseq template. The name of the resulting workflow directory can be specified under the mydirname argument. The default NULL uses the name of the chosen workflow. An error is issued if a directory of the same name and path exists already.

genWorkenvir(workflow="varseq", mydirname=NULL)
setwd("varseq")

On Linux and OS X systems the same can be achieved from the command-line of a terminal with the following commands.

$ Rscript -e "systemPipeRdata::genWorkenvir(workflow='varseq', mydirname=NULL)"

The workflow templates generated by genWorkenvir contain the following preconfigured directory structure:

workflow_name/            # *.Rnw/*.Rmd scripts and targets file
                param/    # parameter files for command-line software 
                data/     # inputs e.g. FASTQ, reference, annotations
                results/  # analysis result files
Back to Table of Contents

2.4 Run workflows

Next, run from within R the chosen sample workflow by executing the code provided in the corresponding *.Rnw template file. If preferred the corresponding *.Rmd or *.R versions can be used instead. Alternatively, one can run an entire workflow from start to finish with a single command by executing from the command-line 'make -B' within the workflow directory (here 'varseq'). Much more detailed information on running and customizing systemPipeR workflows is available in its overview vignette here. This vignette can also be opened from R with the following command.

library("systemPipeR") # Loads systemPipeR which needs to be installed via biocLite() from Bioconductor 
vignette("systemPipeR", package = "systemPipeR")
Back to Table of Contents

2.5 Return paths to sample data

The location of the sample data provided by systemPipeRdata can be returned as a list.

pathList()
## $targets
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/param/targets.txt"
## 
## $targetsPE
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/param/targetsPE.txt"
## 
## $annotationdir
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/annotation/"
## 
## $fastqdir
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/fastq/"
## 
## $bamdir
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/bam/"
## 
## $paramdir
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/param/"
## 
## $workflows
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/workflows/"
## 
## $chipseq
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/workflows/chipseq/"
## 
## $rnaseq
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/workflows/rnaseq/"
## 
## $riboseq
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/workflows/riboseq/"
## 
## $varseq
## [1] "/tmp/Rtmpc4JzlC/Rinst32a018c108ef/systemPipeRdata/extdata/workflows/varseq/"
Back to Table of Contents

3 Version information

sessionInfo()
## R version 3.3.0 (2016-05-03)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 14.04.2 LTS
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
##  [4] LC_COLLATE=C               LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
## [10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] parallel  stats4    stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] systemPipeRdata_1.3.3      systemPipeR_1.7.2          ShortRead_1.31.0          
##  [4] GenomicAlignments_1.9.3    SummarizedExperiment_1.3.5 Biobase_2.33.0            
##  [7] BiocParallel_1.7.4         Rsamtools_1.25.0           Biostrings_2.41.4         
## [10] XVector_0.13.2             GenomicRanges_1.25.4       GenomeInfoDb_1.9.1        
## [13] IRanges_2.7.6              S4Vectors_0.11.5           BiocGenerics_0.19.1       
## [16] BiocStyle_2.1.8           
## 
## loaded via a namespace (and not attached):
##  [1] Rcpp_0.12.5             lattice_0.20-33         GO.db_3.3.0             digest_0.6.9           
##  [5] plyr_1.8.4              BatchJobs_1.6           backports_1.0.2         RSQLite_1.0.0          
##  [9] evaluate_0.9            ggplot2_2.1.0           zlibbioc_1.19.0         GenomicFeatures_1.25.12
## [13] annotate_1.51.0         Matrix_1.2-6            checkmate_1.8.0         rmarkdown_0.9.6        
## [17] GOstats_2.39.0          splines_3.3.0           stringr_1.0.0           pheatmap_1.0.8         
## [21] RCurl_1.95-4.8          biomaRt_2.29.2          munsell_0.4.3           sendmailR_1.2-1        
## [25] rtracklayer_1.33.7      base64enc_0.1-3         BBmisc_1.9              htmltools_0.3.5        
## [29] fail_1.3                edgeR_3.15.0            codetools_0.2-14        XML_3.98-1.4           
## [33] AnnotationForge_1.15.4  bitops_1.0-6            grid_3.3.0              RBGL_1.49.1            
## [37] xtable_1.8-2            GSEABase_1.35.0         gtable_0.2.0            DBI_0.4-1              
## [41] magrittr_1.5            formatR_1.4             scales_0.4.0            graph_1.51.0           
## [45] stringi_1.1.1           hwriter_1.3.2           genefilter_1.55.2       limma_3.29.10          
## [49] latticeExtra_0.6-28     brew_1.0-6              rjson_0.2.15            RColorBrewer_1.1-2     
## [53] tools_3.3.0             Category_2.39.0         survival_2.39-4         yaml_2.1.13            
## [57] AnnotationDbi_1.35.3    colorspace_1.2-6        knitr_1.13
Back to Table of Contents

4 Funding

This project was supported by funds from the National Institutes of Health (NIH) and the National Science Foundation (NSF).

Back to Table of Contents

References

Girke, Thomas. 2014. “systemPipeR: NGS Workflow and Report Generation Environment.” UC Riverside. https://github.com/tgirke/systemPipeR.