Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libSBML R package power function is pow() instead of ^ #353

Open
LeonieLorenz opened this issue Oct 3, 2023 · 0 comments
Open

libSBML R package power function is pow() instead of ^ #353

LeonieLorenz opened this issue Oct 3, 2023 · 0 comments

Comments

@LeonieLorenz
Copy link

When reading in an SBML file that contains a rule with the power function (), the R package translates it into pow(x,y) which is not defined in R. Instead you would want the result to be x^y or x**y.


Here is a snippet from the SBML model that I am reading and the resulting R code below.

SBML (from BioModels BIOMD0000000982):

beta_0 1 p time

R (based on libSBML tutorial):

formulaToString( Rule_getMath(Model_getRule(m,5)))
[1] "beta_0 * pow(1 - p, time)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant