BMILAB / scNPF

An integrative framework assisted by network propagation and network fusion for pre-processing of single-cell RNA-seq data
1 stars 4 forks source link

scNPF R package

An integrative framework assisted by network propagation and network fusion for pre-processing of single-cell RNA-seq data

About

scNPF is an R package for pre-processing of single-cell RNA-seq data by leveraging the context-specific topology inherent in the given data and the network information from priori gene-gene interaction networks. The basic scNPF framework consists of two modules (Figure 1), including scNPF-propagation for imputing dropouts and scNPF-fusion for fusing multiple smoothed expression matrices to learn a cell-cell similarity matrix. The scNPF framework is highly integrative and flexible in that the two modules are independent but interconnected. scNPF-propagation involves a network propagation process based on random walk with restart (RWR) on a given gene-gene interaction network to obtain a distribution for each node (gene), which captures its relevance to all other genes in the network. This process takes the global connectivity patterns of the interaction network into account for profiling the topological context of each gene. More importantly, this module contains two modes of propagation, including the priori mode that uses a publicly available interaction network and the context mode that is solely based on the given scRNA-seq data set. The output of scNPF-propagation is a propagated gene-cell expression matrix, which could be used as input for scNPF-fusion. scNPF-fusion constructs a sample-similarity network for each propagated expression matrix and then integrates different networks into a single cell-cell similarity network based on a nonlinear combination method. The learned similarity matrix from scNPF-fusion or the smoothed expression matrix from scNPF-propagation can be used as inputs for other existing scRNA-seq pipelines or tools for downstream analyses, such as cell type clustering, dimension reduction, and visualization.

image Figure 1. Schematic diagram of the scNPF framework.

Installing scNPF

Mandatory

Required R Packages

Suggested R Packages

Installation

Preparations

Gene expression count matrix

The input to scNPF is matrix of gene expression count. The rows correspond to genes and the columns correspond to cells. In this study, we will use the human embryonic stem cells data from yan as example.

##Loading gene expression count matrix
load(system.file("data","yan.Rdata",package = "scNPF"))
exp.data <- yan$data
dim(exp.data)

Gene-gene interaction network

A gene-gene interaction network (a adjacency matrix) is used to smooth expression values in the scNPF-propagation model. If users use priori mode, they should provide gene co-expression network from publicly available database or a specific gene-gene network established on your own method. In this package, we provided three human gene-gene interaction networks from different databases, including String, HumanNet and an integrated network. If users use context mode, a gene co-expression network is automatically generated in the scNPF.pro function.

Using scNPF

In order to facilitate user understanding, we use the provided example yan data to illustrate the standard analysis work-flow of scNPF. Please refer to the User Guide for full details.

Section 1 scNPF-propagation

scNPF-propagation involves a network propagation process based on RWR on a given gene-gene interaction network to obtain a distribution for each node (gene), which captures its relevance to all other genes in the network. In this step, users can use priori mode or context mode.

Section 2 scNPF-fusion

scNPF-fusion constructs a sample-similarity network for each propagated expression matrix and then integrates these networks into a single cell-cell similarity network based on a nonlinear combination method. For example, we takes the propagated matrices from scNPF-propagation using the priori mode with the String network and the context mode as inputs and learns a matrix of similarities between cells by network fusion.

 ##Construction a cell-by-cell similarity matrix.
similarity<-scNPF.fus(data=list(string=string.data,context=context.data))

Citation

If you are using scNPF, please cite: Ye W, Ji G, Ye P, Long Y, Xiao X, Li S, Su Y and Wu X* (2019) scNPF: an integrative framework assisted by network propagation and network fusion for preprocessing of single-cell RNA-seq data, BMC Genomics, 20, 347.