R/defineNetwork.R
defineNetwork.Rd
Define a network providing its matrix of interactions and specifying the functions groups in row and col.
defineNetwork(mat, typeInter, rowFG, colFG)
mat | An adjacency matrix (symmetric or not) or an incidence matrix |
---|---|
typeInter | Type of the matrix, choice between "inc" (incidence), "adj" (adjacency) and "diradj" (directed adjacency) |
rowFG | Name of the functional group in row |
colFG | Name of the function group in column |
a list object formatted for the GREMLINS package
#> $mat #> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] #> [1,] 0 0 1 0 0 0 0 0 1 0 #> [2,] 1 0 0 0 0 0 0 0 0 0 #> [3,] 0 0 0 0 0 1 0 0 0 0 #> [4,] 1 0 0 1 1 1 0 0 0 1 #> [5,] 0 1 0 0 0 0 0 1 0 0 #> [6,] 0 0 0 0 0 0 0 0 1 0 #> [7,] 1 0 0 0 0 0 0 1 0 1 #> [8,] 0 1 0 0 0 1 0 0 0 1 #> [9,] 0 1 1 1 0 0 0 0 1 0 #> [10,] 0 0 0 0 0 0 1 0 0 1 #> #> $typeInter #> [1] "diradj" #> #> $rowFG #> [1] "FG1" #> #> $colFG #> [1] "FG1" #>