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
- Host: GitHub
- URL: https://github.com/jhu99/grnlmm
- Owner: jhu99
- License: mit
- Created: 2022-05-13T03:27:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T03:59:16.000Z (almost 3 years ago)
- Last Synced: 2024-04-20T06:29:58.470Z (about 1 year ago)
- Language: R
- Size: 327 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GRNLMM: Constructing gene co-expression networks from single-cell expression data using linear mixed model


[](https://github.com/jhu99/GRNLMM/graphs/traffic)
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
### 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).