knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%", message = FALSE, warning = FALSE, fig.path = "man/figures/" )
The scFlow R package provides the analytical back-end to the nf-core/scflow Nextflow pipeline for the orchestration of automated, scalable, and reproducible single-cell RNA sequencing analyses.
The scFlow R package is built to enable standardized workflows following best practices on top of popular single-cell R packages, including Seurat, Monocle, scater, emptyDrops, DoubletFinder, LIGER, and MAST (Hao 2021, Cao 2019, McCarthy 2017, Lun 2019, McGinnis 2019, Welch 2019). Common analytical tasks required by users that involve multiple tools can be performed in scFlow with a single command (i.e. a higher level of abstraction). Key plots, tables, and other analysis outputs are automatically generated, together with interactive HTML reports for each stage of the analysis. These reports provide informative summaries of analytical steps in ways that can highlight the impact of parameter choices and guide their revision when needed.
The following example illustrates a complete sample quality-control with default parameters using the scFlow R package, including ambient RNA profiling, gene/cell annotation, thresholding, doublet/multiplet removal, and generation of an interactive HTML report with key plots: -
sce <- read_sparse_matrix(matrix_path) %>% generate_sce(metadata) %>% find_cells() %>% annotate_sce() %>% filter_sce() %>% find_singlets() %>% filter_sce() %>% report_qc_sce()
Overview of scFlow features
Our primary documentation is at https://combiz.github.io/scflow-manual/.
You can install the development version of scFlow from GitHub with: -
# install.packages("devtools") devtools::install_github("neurogenomics/scFlow")
If using linux system, open a cmd terminal and run the following commands:
docker pull nfancy/scflow docker run --rm -d \ -v $HOME:/home/rstudio/home \ -e ROOT=true \ -e PASSWORD=password \ -p 8950:8787 \ nfancy/scflow
Then access the RStudio Server on your browser at IP:8950. The default username is rstudio
and password is password
. To understand more on how to run docker Rstudio follow the link here.
Check the CONTRIBUTING page.
Combiz Khozoie, Nurun Fancy, Mahdi M. Marjaneh, Alan E. Murphy, Paul M. Matthews, Nathan Skene. "scFlow: A Scalable and Reproducible Analysis Pipeline for Single-Cell RNA Sequencing Data." bioRxiv 2021 August 19. doi: 10.22541/au.162912533.38489960/v1.
Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen. “The nf-core framework for community-curated bioinformatics pipelines”. Nat Biotechnology (2020); doi: 10.1038/s41587-020-0439-x
Note: If you use scFlow in your GitHub projects, please add scFlow in the requirements.txt.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.