Learn R Programming

SimEvolEnzCons (version 2.0.0)

group_types: Which types are the different regulation groups?

Description

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

Usage

group_types(beta_fun)

Arguments

beta_fun

Matrix of co-regulation coefficients

Value

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

  • $grp_pos: numeric vector containing the position of positive groups

  • $grp_single: numeric vector containing the position of singletons

  • $grp_neg: numeric vector containing the position of negative groups

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

Details

Regulation groups exist in three types :

  • positive group, when all regulation coefficients are positive

  • negative group, when it exists at least one negative regulation coefficients in the group

  • singletons, when enzyme is lone in the group, and is therefore independent from all others enzymes

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

See Also

Function class_group to compute the list of regulation groups

Examples

Run this code
# NOT RUN {
#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)


# }

Run the code above in your browser using DataLab