group_types: Which types are the different regulation groups?

Description Usage Arguments Details Value See Also Examples

View source: R/group_types.R

Description

Determines the type of all regulation groups from the matrix of co-regulation coefficients

Usage

1
group_types(beta_fun)

Arguments

beta_fun

Matrix of co-regulation coefficients

Details

Regulation groups exist in three types :

The position of the groups is determined from the list of regulation, computed with function class_group.

Value

Return a list of three elements that contains the numbers of the regulation groups:

If there is no group of a type, the corresponding element returns NULL instead of a numeric vector.

See Also

Function class_group to compute the list of regulation groups

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#Only one group
beta <- matrix(c(1,10,5,0.1,1,0.5,0.2,2,1),nrow=3)
L_Phi <- class_group(beta)
group_types(beta) #gives c(1), NULL and NULL


#Two groups
n <- 3
beta <- diag(1,n) 
beta[1,2] <- -0.32 
beta[2,1] <- 1/beta[1,2]

L_Phi <- class_group(beta)
group_types(beta) #gives NULL, c(2) and c(1)

#with data
data(data_sim_RegNeg_1grpNeg1grpPos)
group_types(data_sim_RegNeg_1grpNeg1grpPos$param$beta)

SimEvolEnzCons documentation built on Oct. 29, 2021, 1:07 a.m.