A function of constructing the modulematrix for the modules was used to indicate whether genes belong to a given module or not.
exprs is a data frame or matrix for two groups or conditions, with rows as variables (genes) and columns as samples
NetworkModule is the gene sets or modules in the biological network or metabolic pathway, with the 1th column as the module names and the 2th columnn as the gene symbols constituting the module
Modulematrix is a matrix, in which the indicator variables 1 or 0 represent whether a gene belong to a given module or not.
Mingli Lei, Jia Xu, Li-Ching Huang, Lily Wang, Jing Li
1 2 3