Displaying 2 results from an estimated 2 matches for "met3".
Did you mean:
met
2010 Jul 21
0
Converting Between Character and Numeric Objects
...}
return(velocities)
}
If I pass in the following example matrix, I get a list of flux expressions
('v') just like I want:
testS = matrix(c(-1, 0, 2, -1, -1, 0, 0, -1, -1, 1, 0, 0, 0, 1, 0),
nrow = 5,
ncol = 3,
byrow = TRUE)
rownames(testS) = c("met1", "met2", "met3", "met4", "met5")
colnames(testS) = c('rxn1', 'rxn2', 'rxn3')
v = makeMassActionFluxes(testS)
v
[1] "met1^1*met2^1" "met2^1*met3^1" "met3^1"
My next step is to use an ODE generating function to initialize values for
th...
2010 Jul 16
1
Creating symbolic expressions in R
...nning into trouble because R does not like doing numerical
operations on characters, but I need the rate to be in symbolic form.
Below I've described an example.
The input is a matrix like this one, but a lot bigger:
rxn1 rxn2 rxn3
met1 -2 0 2
met2 -1 -1 0
met3 0 -1 -1
and the goal is to generate a vector of monomials representing the
rate of each reaction 1 - 3:
rateRxn1 = (met1)^2 * (met2)^1
rateRxn2 = (met2)^1 * (met3)^1
rateRxn3 = (met3)^1
The rates need to be represented symbolically for me to pass into the
ODE solver where the metabo...