fuzzygene_regulation_matrix {FuzzyGene} R Documentation

Export the signed regulation weight matrix of a trained model.

Description

Usage

fuzzygene_regulation_matrix(fuzzygene,
    layout = "square",
    minWeight = 0,
    genes = NULL);

Arguments

fuzzygene

a trained model. [as FuzzyGeneModel]

layout

square (default), regulators or compact. [as string]

minWeight

edges with a smaller absolute weight are exported as zero; 0 keeps all. [as double]

genes

restrict the exported rows to these target genes; empty means all. [as string]

env

the R# runtime environment used to report errors. [as Environment]

Details

Rows are target genes, columns are regulators, and the element W[i, j] is the signed influence of regulator j on target i (the average analytic partial derivative dx_target/dx_regulator): positive means activation, negative means repression, zero means no modelled edge.

The result is a standard Matrix object, so it can be written directly with geneExpression::write.expr_matrix() or fed into downstream network analysis:

 let w = fuzzygene::fuzzygene_regulation_matrix(model, layout = "compact");
 geneExpression::write.expr_matrix(w, file = "/path/to/network_weight.csv", id = "geneID");
 

Layouts: square (strict N x N, rows and columns are all model genes), regulators (columns limited to genes that really appear as regulators) and compact (rows = targets with at least one edge, columns = regulators). For a genome scale model the square layout is N^2 doubles (about 2.7 GB for 18,533 genes), so prefer compact/regulators together with the genes row filter.

Authors

biosystem

Value

a Matrix object (rows = targets, columns = regulators)

clr value class

Examples


[Package FuzzyGene version 1.0.0.0 Index]