metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
129 stars 36 forks source link

Include more function defs in nm-vars #1173

Closed kylebaron closed 2 months ago

kylebaron commented 6 months ago

Right now, we only have LOG, not LOG10

Included

mattfidler commented 6 months ago

In case you need a list of supported functions for nm-vars there is one in the nonmem2rx parser syntax:

https://github.com/nlmixr2/nonmem2rx/blob/d74a4eef3a9c0211636cd0931f8424a2bd64e195/inst/abbrev.g#L233

I think I captured them all, but am unsure.

kylebaron commented 6 months ago

Thanks for sharing this, @mattfidler; very helpful. I'd like to find a way to tap into what you're doing with the nonmem parser some day; much more elegant than what I'm doing for now.

Kyle

mattfidler commented 6 months ago

No problem Kyle, thought the function names might be helpful (it took me a bit to find from the NONMEM manual).

As far as the NONMEM translator, it translates directly to rxode2, so it may not be as useful for mrgsolve directly (unless we eventually figure out some translator, which is still on my internal backlog).

However, the nonmem2rx::nminfo() may be useful for reading NONMEM by itself. If I recall correctly you guys already have some of these utilities yourself (so it may not be useful).

However, if you decide to translate monolix, the monolix2rx parses most of the content to R first, so that may be useful if you want to include a translator from that direction (which I think is likely a long term project for you guys).

kylebaron commented 3 months ago

Included