Skip to content

Updates to the NONMEM adapter #73

@samjrrr

Description

@samjrrr

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:
image
  • Mu parameters in the model file:
image

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:
image
  • Rate constant in model file:
image

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:
image
  • Compartment count in model file:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions