Prakash Packirisamy in Discussions
最後のアクティビティ: 2020 年 4 月 2 日

Question: How to load a host of variants created through scripts to a sbproj file so that we can simulate and visualize them through the simbiology GUI. Description : In a typical QSP workflow, we generate virtual patients by perturbing a set of parameters. These virtual patients are generated as variants by using "addvariant". We end up with an array of variants saved as "variants.mat". This mat contains the list of ~3000 variants. These variants are now to be simulated with different dose objects. This could be done with scripts but it would be ideal if we import these variants into the sbproj file and simulate via simbiology GUI for both purpose of troubleshooting and dosing. Is there a way to do this? Simulating and visualizing variants created from scripts Hi Prakash, the method |addvariant| adds variants to a model. It sounds like you load first a model with |sbioloadproject|, add variants to the loaded model in a script and now would like to save the variants into the sbproj file. Is this correct? If so, I would recommend the following instead: # open the sbproj file in the SimBiology App. # in the 'Model' Tab, choose _Export_ -> _Export Model to Workspace_' # leave the SimBiology App open and go to your script # now add the variants to the model exported in the workspace using the method |addvariant| # you should now see them in the list of variants in the SimBiology App. # you can now save the SimBiology project from the App to keep your project with all its tasks, its diagram, etc along with the new variants. I hope this helps. Hi Prakash, When you - export a model from SimBiolog app to workspace (as opposed to using sbioloadproject) - and keep the SimBiology app and the project running, changes you make to the exported model (let's say m1) via command-line/scripts will also be reflected on the model that's running on the project/SimBiology app. For example, you can use addvariant on m1 and the variant will be added to the simbiology project. Let me know if this helps. Fulden Thanks Fulden. This is exactly what we are looking for. Correct Jeremy. Thanks for such a quick response. variants
Abed Alnaif in MATLAB Answers
最後のアクティビティ: 2019 年 10 月 3 日

Hello, Is it possible to specify different variants for different groups when using the 'sbiofit' function in code? From the documentation, it appears that 'sbiofit' only supports the specification of a single set of variants to be applied to all of the groups. Thank you, Abed Alnaif
Jonathan Hamp in MATLAB Answers
最後のアクティビティ: 2017 年 2 月 8 日

I have seen some similar questions about this but they haven't quite answered what I need to do. For my set-up I have a simple compartmental model which describes drug distribution, the volumes of these compartments is dependent on a parameter ( _Bodyweight_) I am trying to parameterise the model using several datasets which are pooled to provide a single parameter set However each dataset comes from a different experiment where the bodyweights are different and so I cannot use a single set bodyweight for all as it bias' my parameter estimations Does anyone know how I could set a parameter estimation so that for each dataset a different value for the parameter _Bodyweight_ is used?