certara / pyDarwin

Python solution for the application of machine learning to Pop PK model selection.
GNU General Public License v3.0
24 stars 3 forks source link

Updates to the NONMEM adapter #73

Open samjrrr opened 9 months ago

samjrrr commented 9 months ago

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:

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

image image

Dynamic rate constants

image image

Dynamic compartment number

certara-msale commented 7 months ago

Sam, Thanks for looking at this, sorry I'm just getting to this now. There is a branch called mu-referencing, we recognized that this would be something that users would need, just haven't gotten it into the master yet. But, we'd be very interested in your solution to this. WRT the templates, those are completely the users responsibility. That said, an example with a general solution to rates and number of compartments for ODEs would be great. So, yes, please fork it, and do a PR, we'll take a look. Mark

samjrrr commented 6 months ago

Hi Mark, Thanks for the message. Will hopefully have a pull request ready next month.

The other changes with dynamic rate constants and compartment numbers are not just a template convention they also involve modifications to PyDarwin. In both cases the user can enter a variable in the template rather than the actual number of compartments or the correctly numbered rate constant. PyDarwin substitutes these variables for the correctly formatted value expected by NONMEM. We used these dynamic variables to enable the addition of a variable number of transient compartments to our model space.

certara-msale commented 6 months ago

Thanks Sam, we'll look forward to seeing what you've done. It sounds useful, (although maybe a bit of a deviation from the general purpose architecture) Mark

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Sam Richardson @.> Sent: Thursday, March 28, 2024 9:37:49 AM To: certara/pyDarwin @.> Cc: Mark Sale @.>; Comment @.> Subject: Re: [certara/pyDarwin] Updates to the NONMEM adapter (Issue #73)

CAUTION: This email originated from outside of Certara. Do not click links or open attachments unless you recognize the sender and know the content is safe.

Hi Mark, Thanks for the message. Will hopefully have a pull request ready next month.

The other changes with dynamic rate constants and compartment numbers are not just a template convention they also involve modifications to PyDarwin. In both cases the user can enter a variable in the template rather than the actual number of compartments or the correctly numbered rate constant. PyDarwin substitutes these variables for the correctly formatted value expected by NONMEM. We used these dynamic variables to enable the addition of a variable number of transient compartments to our model space.

— Reply to this email directly, view it on GitHubhttps://github.com/certara/pyDarwin/issues/73#issuecomment-2025650275, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYP44EBMGXLGXKEIOIHSJCLY2Q2MVAVCNFSM6AAAAABBU5U2RSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRVGY2TAMRXGU. You are receiving this because you commented.Message ID: @.***>

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.