cal_lmi_data: Calculate local moran's I matrix for a network and a gene...

Description Usage Arguments Details Value Examples

View source: R/DNLC.R

Description

cal_lmi_data() will calculate the local moran's I data for a input igraph object and gene expression data matrix.

Usage

1
  cal_lmi_data(gene_expr, gene_graph)

Arguments

gene_expr

Expression for genes. Each row is a gene, and each column is a sample.

gene_graph

The graph of gene network.

Details

cal_lmi_data() will calculate the local moran's I matrix for a input igraph object and gene expression data matrix. The function will return a matrix in the same dimension of the input gene expression matrix. Every gene x's lmi data takes a row.

Value

A table of local moran's I data. Row name is gene id. Each row stands for the local moran's I data of gene x. Each column stands for a sample.

Examples

1
2
3
4
5
6
7
8
## Not run: 
simulation <- init_simulation_gene_net()
lmi_data = cal_lmi_data( simulation$gene_expr, simulation$gene_graph)
t_data = DNLC_statistics(simulation$gene_graph, simulation$gene_expr,
  simulation$patient_matrix, lmi_data = lmi_data)
fdr_result <- gene_fdrtest(t_data)
sig_genes <- significant_genes(fdr_obj = fdr_result, thres = 0.2)
## End(Not run)

ilab/DNLC documentation built on May 5, 2019, 5:52 p.m.