GEO RNA-Seq Experiments Processing Pipeline

An R based pipeline to download and process Gene Expression Omnibus (GEO) RNA-seq data. For a given GEO series accession ID, this pipeline generates metadata, both gene and transcript level counts, and quality control (QC) report. This package is mainly developed to process the GEO RNA-seq datasets for the web platform GREIN. More details about GREP2 and GREIN can be found here .

The Gene Expression Omnibus (GEO) is a public repository of gene expression data that hosts more than 6,000 RNA-seq datasets and this number is increasing. Most of these datasets are deposited in raw sequencing format which needs to be downloaded and processed. With an aim to transform all these datasets in an analysis-ready format, we have developed a comprehensive pipeline to simultaneously download and process RNA-seq data sets from GEO. This R-based automated pipeline can process the available RNA-seq data of human, mouse, and rat from GEO. This package is recommended to use in the unix environment as many of the features are not available in windows.


Before installing GREP2, you need to install the following software packages first:

  1. SRA toolkit
  2. Aspera-connect
  3. FastQC
  4. Salmon
  5. MultiQC

You will also need to install the following R and Bioconductor packages:

install.packages(c("devtools", "XML", "parallel", "utils", "rentrez", "RCurl")
biocLite(c("GEOquery", "Biobase", "tximport", "EnsDb.Hsapiens.v86", "EnsDb.Rnorvegicus.v79", "EnsDb.Mmusculus.v79",
    "AnnotationDbi", "", "", ""))

Once you install the above packages, you can now install GREP2 using CRAN:


You can also install GREP2 using devtools:


GREP2 pipeline workflow

To consistently process GEO RNA-seq datasets through a robust and uniform system, we have built GEO RNA-seq evenly processing pipeline (GREP2). To demonstrate the usage of the package, we demonstrate the processing steps with a small dataset from GEO: GSE102170. The whole processing workflow can be summarized in the following steps:

  1. The pipeline starts with a valid GEO series accession ID. Currently the pipeline works for human, mouse, and rat species. We then retrieve metadata for the GEO series accession using Bioconductor package GEOquery. We also download metadata file from the sequence read archive (SRA) to get corresponding run information.
metadata <- get_metadata(geo_series_acc="GSE102170",destdir=tempdir(),
  1. Download corresponding experiment run files from the SRA using ascp utility of Aspera Connect or regular download. All the downloaded files are stored in the local repository until processed. You can skip this step by downloading fastq files directly.
srr_id <- metadata$metadata_sra$Run
for(i in 1:length(srr_id)){
    get_srr(srr_id=srr_id[i], destdir=tempdir(), ascp=FALSE,
  1. Convert SRA files to fastq format using NCBI SRA toolkit or download fastq files directly.
library_layout <- metadata$metadata_sra$LibraryLayout
for(i in 1:length(srr_id)){
  1. Run FastQC on each fastq file to generate quality control (QC) reports.
  1. Remove adapter sequences if necessary using Trimmomatic.
for(i in 1:length(srr_id)){
  1. Quantify transcript abundances using Salmon. Transcript level estimates are then summarized to gene level using Bioconductor package tximport. We obtained gene annotation for Homo sapiens (GRCh38), Mus musculus (GRCm38), and Rattus norvegicus (Rnor_6.0) from Ensemble.
# Before running Salmon, you will have to build index first.
# Run Salmon
for(i in 1:length(srr_id)){
# Run tximport
counts_list <- run_tximport(srr_id=srr_id, species="human",
  1. Compile FastQC reports and Salmon log files into a single interactive HTML report using MultiQC.

You can run the above individual functions for each step or run the whole pipeline using the following process_geo_rnaseq function. All of the above steps are combined into the following single function. We would recommend using this function for processing GEO RNA-seq data.

process_geo_rnaseq (geo_series_acc=geo_series_acc,destdir=tempdir(),


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.0.1 by Naim Al Mahi, 7 months ago

Report a bug at

Browse source code at

Authors: Naim Al Mahi [cre, aut] , Mario Medvedovic [aut, ctb]

Documentation:   PDF Manual  

GPL-3 license

Imports XML, rentrez, RCurl, GEOquery, Biobase, parallel, tximport, EnsDb.Hsapiens.v86, EnsDb.Rnorvegicus.v79, EnsDb.Mmusculus.v79, AnnotationDbi,,,, GenomicFeatures, utils

Suggests knitr, rmarkdown

System requirements: SRAtoolkit, Salmon, Java, FastQC, MultiQC

See at CRAN