Learn R Programming

SCdeconR

SCdeconR aims to provide a streamlined workflow from deconvolution of bulk RNA-seq data to downstream differential and gene-set enrichment analysis. SCdeconR provides a simulation framework to generate artificial bulk samples for benchmarking purposes. It also provides various visualization options to compare the influence of adjusting for cell-proportions differences on differential expression and pathway analyses.

Installation

# install devtools if it's not installed already
if (!require("devtools", quietly = TRUE)) install.packages("devtools")
devtools::install_github("liuy12/SCdeconR")

To use scaden within SCdeconR, follow the below steps:

# install reticulate package first
install.packages("reticulate")

Intall scaden python package:

Use pip:

pip install scaden

Or use Conda:

conda install scaden

Then provide your desired python path (that have scaden installed) to option pythonpath for function scdecon. You should be good to go.

The following packages are optional, and only needed for specific methods within SCdeconR.

# install BiocManager if it's not installed already
if (!require("BiocManager", quietly = TRUE)) install.packages("BiocManager")

# data normalization
## scater
BiocManager::install("scater")

## scran
BiocManager::install("scran")

## Linnorm
BiocManager::install("Linnorm")

## SingleCellExperiment
BiocManager::install("SingleCellExperiment")

# deconvolution methods
## FARDEEP
install.packages("FARDEEP")

## nnls
install.packages("nnls")

## MuSiC
devtools::install_github('xuranw/MuSiC')

## SCDC
devtools::install_github("meichendong/SCDC")

# differential expression
## DESeq2
BiocManager::install("DESeq2")

# cell-type specific gene expression
## spacexr
devtools::install_github("dmcable/spacexr", build_vignettes = FALSE)

# interactive plot
install.packages("plotly")

Usage

library(SCdeconR)

See here for detailed documentation and tutorials.

See here for a document to reproduce the results from the study.

Copy Link

Version

Install

install.packages('SCdeconR')

Monthly Downloads

189

Version

1.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Yuanhang Liu

Last Published

March 22nd, 2024

Functions in SCdeconR (1.0.0)

comparedeg_scatter

Generate a scatter plot comparing two differential expression results
celltype_expression

Compute cell type specific gene expression
comparegsea_scatter

Generate a scatter plot comparing two gene set enrichment analysis results
SCdeconR-package

SCdeconR: Deconvolution of Bulk RNA-Seq Data using Single-Cell RNA-Seq Data as Reference
gsea_sumplot

Summary plot of gene set enrichment analysis
gsea_heatmap

Heatmap to demonstrate enrichment of selected gene-sets
construct_ref

Integration of single-cell/nuclei RNA-seq data as reference
gsea_rwplot

GSEA random-walk plot
compute_metrics

Statistical evaluations of predicted cell proportions
bulk_generator

Generate artificial bulk RNA-seq samples based on simulation
scdecon

Deconvolution of bulk RNA-seq data
transformation

Transformation of gene expression data
prop_barplot

Bar plot of cell type proportions across samples
run_de

Differential expression analysis
load_scdata

Load, filter and normalize scRNA-seq/snRNA-seq data
reformat_gmt

Methods to manipulate .gmt files
scaling

Normalization of gene expression data
prepare_rnk

Prepare .rnk file for GSEA preranked analysis