ExamplesΒΆ
For example, to plot the informed prior for the head volume for DMPC:
[1]:
import avant.parameter.vh as vh
vh.plotGauss('DMPC')
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_124/3786636547.py in <module>
----> 1 import avant.parameter.vh as vh
2 vh.plotGauss('DMPC')
ModuleNotFoundError: No module named 'avant'
For example, to plot the uniform prior for the head volume for DMPC:
[2]:
import avant.parameter.vh as vh
vh.plotUniform('DMPC')
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_124/4090706304.py in <module>
----> 1 import avant.parameter.vh as vh
2 vh.plotUniform('DMPC')
ModuleNotFoundError: No module named 'avant'
Here is an example of setting the value of the parameter to that of the Gauss object - this is a class containing statistical information about the prior and can be fed straight into Refnx.
For example, to set a parameter for the head volume of DMPC:
[3]:
import avant.parameter.vh as vh
x = vh.Gauss('DMPC')
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_124/3562674503.py in <module>
----> 1 import avant.parameter.vh as vh
2 x = vh.Gauss('DMPC')
ModuleNotFoundError: No module named 'avant'
Here is an example of setting the value of the parameter to a tuple containing the lower and upper bound of the uniform range of values for the parameter. This can be fed straight into Refnx.
For example, to set a parameter for the head volume of DMPC:
[4]:
import avant.parameter.vh as vh
x = vh.uniform('DMPC')
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
/tmp/ipykernel_124/3915618590.py in <module>
----> 1 import avant.parameter.vh as vh
2 x = vh.uniform('DMPC')
ModuleNotFoundError: No module named 'avant'