An open API service indexing awesome lists of open source software.

https://github.com/jhu99/grnlmm

gene regulatory network with linear mixed model
https://github.com/jhu99/grnlmm

Last synced: 4 months ago
JSON representation

gene regulatory network with linear mixed model

Awesome Lists containing this project

README

        

# GRNLMM: Constructing gene co-expression networks from single-cell expression data using linear mixed model

![](https://img.shields.io/github/r-package/v/jhu99/GRNLMM)
![](https://img.shields.io/github/license/jhu99/GRNLMM)
[![](https://img.shields.io/badge/downloads-108-green)](https://github.com/jhu99/GRNLMM/graphs/traffic)
![](https://img.shields.io/github/stars/jhu99/grnlmm?style=social)

  We development a new method, GRNLMM, which models single-cell expression data by a linear mixed model and uses the covariance matrix of random effect terms to characterize the correlation between genes. To overcome the influence of randomness of intercellular expression and improve the accuracy of the predicted GRNs, we use a known correlation matrix to reflect the relationship between cells and add a noise term to the model. Our results show that GRNLMM has advantages in accurately identifying the co-expressive relationships between genes and can explore genes and gene function modules that play an essential role in biological processes.

## Installation
For installation please use the following codes in R

```
install_github("jhu99/GRNLMM")
```
## Example
```
library(grnlmm)
load('data/expressiondata.rda')
load('data/vg.rda')
load('data/ve.rda')
Vg <- grnlmm (x, vg, ve)
```

### Input of GRNLMM

  • x : G x C matrix of expression data, where G is the number of genes and C is the number of cells

  • V_g : G x G symmetric matrix of initial value of genetic covariance matrix

  • V_e : G x G symmetric matrix of initial value of error covariance matrix
  • ### Output of GRNLMM
    The output of GRNLMM is a G x G covariance symmetric matrix V_g with the format :
    ```
    0.31 0.15 -0.43 ...
    0.15 1.50 0.60 ...
    -0.43 0.60 1.13 ...
    .
    .
    .
    ```
    where V_g [ i , j ] represents the correlation between gene i and gene j.

    Further, we can transform it to a matrix R of correlation coefficient by
    ```
    for(i in 1:nrow(A)){
    D[i,i] <- sqrt(A[i,i])
    }

    Di <- solve(D)

    R <- Di %*% A %*% Di
    ```

    ## Applications
    The experimental code implementation in the paper can be viewed in applications folder.

    ## Citation
    Jialu Hu, Bin Lian, Xuequn Shang, GRNLMM: Constructing gene co-expression networks from single-cell expression data using linear mixed model (unpublished).