Coder Social home page Coder Social logo

scpower's Introduction

scPower

scPower is a R package for design and power analysis of cell type specific interindividual DE and eQTL studies using single cell RNA-seq. It enables the user to calculate the power for a given experimental setup and to choose for a restricted budget the optimal combination of experimental parameters which maximizes the power. Necessary experimental priors, e.g. effect sizes and expression distributions, can be taken from example data sets, saved in the package, or estimated from new data sets. The tool was evaluated with data from different tissues and single cell technologies, based on UMI counts and read counts.

The calculation can also performed using a graphical interface of a shiny app or at our webpage scpower, which is however temporarily not available (see section below).

A short tutorial is given in the vignette introduction-scPower.

A detailed description of all methods and citation of all used tools and data sets can be found in the associated paper

Schmid, K. T., Höllbacher, B., Cruceanu, C., Boettcher, A., Lickert, H., Binder, E. B., Theis, F. J., & Heinig, M. (2021). scPower accelerates and optimizes the design of multi-sample single cell transcriptomic studies. Nature Communications. https://doi.org/10.1038/s41467-021-26779-7

An explanation how the plots in the paper were generated is shown in the second vignette reproduce-paper-plots and an example how to combine our model with more complex designs is shown in the third vignette extension-complex-design.

Update: web server for scPower temporarily down

Helmholtz Munich has been the target of a cyberattack, which our IT responded with immediate defensive measures. This also means that our scientific web services are currently not available. We hope that they will soon be restored, including our webserver for scPower. In the meanwhile, you can use the graphical inferface of scPower by launching the shiny app on your local computer. After installing the package (see section Installation), you can call the app using:

library(scPower)
runShiny()

Sorry for the inconvenience, please contact us in case you need further assistance.

Installation

You will need the latest version of devtools. First install the release version:

install.packages("devtools")

then update it to the latest developement version:

devtools::install_github("hadley/devtools")

Finally you can install the latest development version of scPower from github with:

devtools::install_github("heiniglab/scPower")

If you have problems installing the package, please try to install necessary packages yourself from CRAN.

#CRAN packages
install.packages(c("pwr","MKmisc","reshape2","HardyWeinberg","plotly", "shiny"))

Shiny app

Run the Shiny app of the package with the following commands:

library(scPower)
runShiny()

The shiny app is also available at the webpage scpower .

Vignettes for introduction and for reproduction of paper plots

The package provides two vignettes for the user. The first one, called introduction-scPower, is a user manual describing all functions with small toy examples. The second one, called reproduce-paper-plots, shows how all plots in the manuscript were created with the package. The vignettes can be built when downloading the package with setting the option "build_vignettes=TRUE", however, this will take several minutes, as the vignettes are quite detailed. Alternatively, the pdf files are directly uploaded and can be accessed in github.

devtools::install_github("heiniglab/scPower",build_vignettes=TRUE)
browseVignettes("scPower")

Be aware that additional libraries are required for building the vignettes:

#CRAN packages
install.packages(c("knitr","rmarkdown","ggpubr","data.table", "viridis", "RColorBrewer","gridExtra","dplyr"))

scpower's People

Contributors

cem-gulec avatar katharinaschmid avatar matthiasheinig avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.