Learn R Programming

SimEvolEnzCons (version 2.0.0)

is.beta.accurate: Verification of beta matrix accuracy

Description

Verifies if the the matrix beta_fun of co-regulation coefficients is accurate for other functions

Usage

is.beta.accurate(beta_fun, n_fun, correl_fun)

Arguments

beta_fun

Numeric matrix of co-regulation coefficients

n_fun

Number of enzymes in the system

correl_fun

Character string indicating the constraint applied on the system

Value

Return TRUE if all conditions are respected, else stop

Details

Different tests are performed on matrix beta_fun to verify its accuracy.

  • Is there regulation in correl_fun? If yes, beta_fun is necessary.

  • Does beta_fun have a correct size? Compare nrow(beta_fun) and ncol(beta_fun) to number of enzymes n_fun. If difference, stops.

  • Is there negative regulation in correl_fun? If yes, does beta_fun include a negative regulation? If difference, stops.

  • Each element of beta_fun diagonal needs to be equal to 1.

See Also

To verify vector of global co-regulation coefficients, see function is.B.accurate.

Examples

Run this code
# NOT RUN {
beta <- matrix(c(1,10,5,0.1,1,0.5,0.2,2,1),nrow=3)
is.beta.accurate(beta,3,"CRPos")


# }

Run the code above in your browser using DataLab