Power analysis is essential to optimize the design of RNA-seq experiments and to assess and compare the power to detect differentially expressed genes. PowsimR is a flexible tool to simulate and evaluate differential expression from bulk and especially single-cell RNA-seq data making it suitable for a priori and posterior power analyses.
https://github.com/bvieth/powsimR/blob/c70c819beeec35a21558cfb717fe91e7704be126/R/Evaluate.R#L108