Open stfrkniz opened 2 years ago
Thank you for these observations. I was never able to get to the bottom of these issues when I looked at the code. I, too, would be very interested in working code that does what the paper describes.
From: stfrkniz @.> Sent: Friday, October 14, 2022 5:36:11 AM To: hallowkm/RenalModel @.> Cc: Subscribed @.***> Subject: [hallowkm/RenalModel] Not the parameters described in the publication (Issue #3)
External Email - Use Caution
I downloaded the code from here and also compared it with the textfiles from the supplement on the website where the paper ('A Quantitative Systems Physiology Model of Renal Function and Blood Pressure Regulation: Model Description') about this model was published. There are a few issues with the program and the model.
First, like others already discussed, the code does not work in R. There is an error that some parameters are missing although they obviously have a value set to them.To avoid this problem I implemented the code in python so that I can run the program and try out the simulations of the model.
Second, I noticed that a lot of parameters set in the file 'calcNomParams_human' do not match with the values for them described in the paper. If you implement the values described in the paper, simulations will not run appropriately (errors when you try to simulate even a rather short time span (e.g. 2-3 days) and some variables can not be computed since you divide through zero etc.).
Third, if you run simulations without changing the parameters according to the paper, the simulations will run, but they can not be the results differ from the results described in the paper. The following simulation shows the influence of the choice of controller gains for proportional-integral feedback controllers on the response of cardiac output and Na concentration to a perturbation (double the Na intake): [Simulation_HallowPaper]https://user-images.githubusercontent.com/115784216/195812267-fff637e1-d4ba-4fc6-8295-bc4bb480f57b.png I replicated this simulation but got a noticably different output: [Simulation_default_model]https://user-images.githubusercontent.com/115784216/195811160-5bcb7a11-4140-40d2-8557-93bfd5b81428.png Not only is for example the Na Concentration reduced instead of increased, it also takes ten times longer to get back to the steady state Na conecentration of 140.0 mEq/L.
I am really interested in this model but the fact that the values set for the parameters in the programm are different from the values described in the paper and no matter which parameterization you choose, you can not replicate simulation output and therefore can not validate this model is frustrating.
Furthermore a lot of the parameters in the model are not described and there is no indication where they are from so it is not possible to find out or compare the values for myself.
Did somebody manage to replicate simulations and values described in the paper and if yes, what parameters have to be changed and to what value?
— Reply to this email directly, view it on GitHubhttps://github.com/hallowkm/RenalModel/issues/3, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG6BHPMRJXH3C4XQX7O7GKLWDESQXANCNFSM6AAAAAARFB743A. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
I downloaded the code from here and also compared it with the textfiles from the supplement on the website where the paper ('A Quantitative Systems Physiology Model of Renal Function and Blood Pressure Regulation: Model Description') about this model was published. There are a few issues with the program and the model.
First, like others already discussed, the code does not work in R. There is an error that some parameters are missing although they obviously have a value set to them.To avoid this problem I implemented the code in python so that I can run the program and try out the simulations of the model.
Second, I noticed that a lot of parameters set in the file 'calcNomParams_human' do not match with the values for them described in the paper. If you implement the values described in the paper, simulations will not run appropriately (errors when you try to simulate even a rather short time span (e.g. 2-3 days) and some variables can not be computed since you divide through zero etc.).
Third, if you run simulations without changing the parameters according to the paper, the simulations will run, but they can not be the results differ from the results described in the paper. The following simulation shows the influence of the choice of controller gains for proportional-integral feedback controllers on the response of cardiac output and Na concentration to a perturbation (double the Na intake): I replicated this simulation but got a noticably different output: Not only is for example the Na Concentration reduced instead of increased, it also takes ten times longer to get back to the steady state Na conecentration of 140.0 mEq/L.
I am really interested in this model but the fact that the values set for the parameters in the programm are different from the values described in the paper and no matter which parameterization you choose, you can not replicate simulation output and therefore can not validate this model is frustrating.
Furthermore a lot of the parameters in the model are not described and there is no indication where they are from so it is not possible to find out or compare the values for myself.
Did somebody manage to replicate simulations and values described in the paper and if yes, what parameters have to be changed and to what value?
Hi, I'm focusing on this work recently. I noticed that the code didn't work in R, and I transfered them into python, however, the code couldn't run due to variable loop definition. Have you ever met this situation before? I would appreciate it if I could get your reply. Thank you!
Hello,
I never got it working. I tried for a while in different ways, but I was not ultimately successful. This could be at least partially attributable to my modest coding abilities. Please feel free to reach out to me if you would like to discuss some interesting applications of modeling of this type, should it be possible to get it or another similar model working.
Sincerely, Brian
From: Zhaoyxcpu @.> Sent: Tuesday, January 30, 2024 12:26 PM To: hallowkm/RenalModel @.> Cc: Byrd, James (J. "Brian") @.>; Comment @.> Subject: Re: [hallowkm/RenalModel] Not the parameters described in the publication (Issue #3)
External Email - Use Caution
I downloaded the code from here and also compared it with the textfiles from the supplement on the website where the paper ('A Quantitative Systems Physiology Model of Renal Function and Blood Pressure Regulation: Model Description') about this model was published. There are a few issues with the program and the model.
First, like others already discussed, the code does not work in R. There is an error that some parameters are missing although they obviously have a value set to them.To avoid this problem I implemented the code in python so that I can run the program and try out the simulations of the model.
Second, I noticed that a lot of parameters set in the file 'calcNomParams_human' do not match with the values for them described in the paper. If you implement the values described in the paper, simulations will not run appropriately (errors when you try to simulate even a rather short time span (e.g. 2-3 days) and some variables can not be computed since you divide through zero etc.).
Third, if you run simulations without changing the parameters according to the paper, the simulations will run, but they can not be the results differ from the results described in the paper. The following simulation shows the influence of the choice of controller gains for proportional-integral feedback controllers on the response of cardiac output and Na concentration to a perturbation (double the Na intake): [Simulation_HallowPaper] https://user-images.githubusercontent.com/115784216/195812267-fff637e1-d4ba-4fc6-8295-bc4bb480f57b.png I replicated this simulation but got a noticably different output: [Simulation_default_model] https://user-images.githubusercontent.com/115784216/195811160-5bcb7a11-4140-40d2-8557-93bfd5b81428.png Not only is for example the Na Concentration reduced instead of increased, it also takes ten times longer to get back to the steady state Na conecentration of 140.0 mEq/L.
I am really interested in this model but the fact that the values set for the parameters in the programm are different from the values described in the paper and no matter which parameterization you choose, you can not replicate simulation output and therefore can not validate this model is frustrating.
Furthermore a lot of the parameters in the model are not described and there is no indication where they are from so it is not possible to find out or compare the values for myself.
Did somebody manage to replicate simulations and values described in the paper and if yes, what parameters have to be changed and to what value?
Hi, I'm focusing on this work recently. I noticed that the code didn't work in R, and I transfered them into python, however, the code couldn't run due to variable loop definition. Have you ever met this situation before? I would appreciate it if I could get your reply. Thank you!
— Reply to this email directly, view it on GitHubhttps://github.com/hallowkm/RenalModel/issues/3#issuecomment-1917540242, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AG6BHPMROUV5BYV7GOOJ2H3YREULZAVCNFSM6AAAAAARFB743CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJXGU2DAMRUGI. You are receiving this because you commented.Message ID: @.***>
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues
I tried different ways, including transfer the initial conditions into direct constants rather than variables, change the algorithm in rxode2 package in R, however it didn't work and the error " EE:[lsoda] 70000 steps taken before reaching tout @(lsoda.c:751" or "Error in C_urine_flow_ecf_volume * (urine_flow_rate) : non-numeric argument to binary operator". Then, I transfered the code into Berkeley Madonna, a software for solving differential equations and it couldn't work either because the symbol "Na_concentration_out_AscLoH" has been circly defined. I'm not familiar with Python, but I tried to use the Scipy to solve it. I noticed that several variables were not defined, and it seemed that these variables were defined in both differential equations and calNomParameters, and I didn't know whether it was reasonable. I'm attracted by the series of paper of the wrtier but I can't got the code working any part of it. It seems someone has already at least got the plot of the model but I can't get any result of the code. I would appreciate it if anyone could give some advice to help me with my poor coding abilities.
I downloaded the code from here and also compared it with the textfiles from the supplement on the website where the paper ('A Quantitative Systems Physiology Model of Renal Function and Blood Pressure Regulation: Model Description') about this model was published. There are a few issues with the program and the model.
First, like others already discussed, the code does not work in R. There is an error that some parameters are missing although they obviously have a value set to them.To avoid this problem I implemented the code in python so that I can run the program and try out the simulations of the model.
Second, I noticed that a lot of parameters set in the file 'calcNomParams_human' do not match with the values for them described in the paper. If you implement the values described in the paper, simulations will not run appropriately (errors when you try to simulate even a rather short time span (e.g. 2-3 days) and some variables can not be computed since you divide through zero etc.).
Third, if you run simulations without changing the parameters according to the paper, the simulations will run, but they can not be the results differ from the results described in the paper. The following simulation shows the influence of the choice of controller gains for proportional-integral feedback controllers on the response of cardiac output and Na concentration to a perturbation (double the Na intake): I replicated this simulation but got a noticably different output: Not only is for example the Na Concentration reduced instead of increased, it also takes ten times longer to get back to the steady state Na conecentration of 140.0 mEq/L.
I am really interested in this model but the fact that the values set for the parameters in the programm are different from the values described in the paper and no matter which parameterization you choose, you can not replicate simulation output and therefore can not validate this model is frustrating.
Furthermore a lot of the parameters in the model are not described and there is no indication where they are from so it is not possible to find out or compare the values for myself.
Did somebody manage to replicate simulations and values described in the paper and if yes, what parameters have to be changed and to what value?