powered by
Verifies if the the matrix beta_fun of co-regulation coefficients is accurate for other functions
beta_fun
is.beta.accurate(beta_fun, n_fun, correl_fun)
Numeric matrix of co-regulation coefficients
Number of enzymes in the system
Character string indicating the constraint applied on the system
Return TRUE if all conditions are respected, else stop
TRUE
Different tests are performed on matrix beta_fun to verify its accuracy.
Is there regulation in correl_fun? If yes, beta_fun is necessary.
correl_fun
Does beta_fun have a correct size? Compare nrow(beta_fun) and ncol(beta_fun) to number of enzymes n_fun. If difference, stops.
nrow(beta_fun)
ncol(beta_fun)
n_fun
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.
To verify vector of global co-regulation coefficients, see function is.B.accurate.
is.B.accurate
# 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