-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Hello,
Thanks for the great library! I've recently been working with PyDarwin and getting some nice results.
We had some challenges when designing model spaces which were overcome using a modified version of the NONMEM adapter.
The features enabled with the NONMEM adapter modifications were:
- SAEM and IMP estimation methods which required MU referencing
- Variable number of transient absorption compartments which required dynamic rate constant and compartment count.
If you are interested, I would be happy to create a new branch and open a pull request with these modifications. I'll provide a little more detail about the implementation below.
Please let me know what you think.
Thanks,
Sam
Mu parameters
- Updating of mu parameters was completed in a similar fashion to how theta values are currently handled, e.g. mu template = MU(CL), mu model file = MU_1
- Mu parameters in the template:

- Mu parameters in the model file:

Dynamic rate constants
- Added RATE_CONSTANT as a new variable in the templates. This allows you to specify the rate constants by compartment name rather than number e.g Template = RATE_CONSTANT(DEPOT, TRANSIT1), Model file = k12
The compartment names are based on whatever the user defines at the start of the model file, e.g. for 'COMP = (DEPOT, INITIALOFF)' the compartment name would be 'DEPOT'. - Rate constant in tokens:

- Rate constant in model file:

Dynamic compartment number
- Added NUMBER_COMPARTMENTS as a variable in the template. A user can specify
NCOMP=NUMBER_COMPARTMENTS
without knowing the final number of compartments we used this to add a variable number of transient compartments to the absorption model. - Compartment count in template:

- Compartment count in model file:

Metadata
Metadata
Assignees
Labels
No labels