# ERSSA: Empirical RNA-seq Sample Size Analysis
Date: 2020-01-21<br>
Version: 1.19.1<br>
Author: Zixuan Shao and Julie Kornfield<br>
Maintainer: Zixuan Shao (zixuanshao.zach@gmail.com)
### Introduction
Sample size calculation is an important optimization step in any comparative RNA sequencing (RNA-seq) experiment. Empirical RNA-seq Sample Size Analysis (ERSSA) is a R software package designed to test whether an existing RNA-seq dataset has sufficient biological replicates to detect a majority of the differentially expressed genes (DEGs) between two conditions. Compare to existing RNA-seq sample size analysis algorithms, ERSSA does not rely on any a priori assumptions about the data. Rather, ERSSA takes an user-supplied RNA-seq sample set and determines whether sufficient biological replicates have been included.
Base on the number of replicates already available, the algorithm subsamples at step-wise replicate levels and uses existing differentially expression (DE) analysis softwares (e.g. edgeR and DESeq2) to identify the number of DEGs at each level. This process is repeated for a sufficient number of times with unique combinations of samples to generate a distribution of the number of DEGs at each replicate level. Once all of the DE comparisons have been processed, the DEG numbers are then plotted and base on the trend in the plot, the user can assess whether sufficient biological replicates have been employed.
When applied to RNA-seq data from studies including GTEx, ERSSA demonstrated proficiency in determining whether sufficient biological replicates have been included. Overall, ERSSA can be used as a flexible and easy-to-use tool that offers an alternative approach to identify the appropriate sample size in comparative RNA-seq studies.
### Installation
ERSSA can now be easily installed following instruction at [bioconductor](http://bioconductor.org/packages/release/bioc/html/ERSSA.html).
### Usage
See [ERSSA vignette](http://bioconductor.org/packages/release/bioc/vignettes/ERSSA/inst/doc/ERSSA.html) for detailed usage information.