cal_lmi_data {DNLC} | R Documentation |
Calculate local moran's I matrix for a network and a gene expression matrix
Description
cal_lmi_data()
will calculate the local moran's I data for a input igraph object and gene expression data matrix.
Usage
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
## 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)
[Package DNLC version 1.0.0 Index]