Tutorial on the interaction function details: Difference between revisions

From BanghamLab
Jump to navigation Jump to search
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[GFtbox_Tutorial_pages|Back to tutorial pages]]
[[GFtbox_Tutorial_pages#2 Modelling using a combination of GUI and interaction function|Back to tutorial pages]]


Here is stuff on interaction function
The aim is to illustrate how to program the interaction function to have two submodels. In this example, the first grows isotropically and the second anisotropically where the growth axis is specified by a gradient of polariser. <br>
'''1)  Create and save a new mesh''' exactly as for [[Tutorial on the basic interaction function| the basic interaction function]]. Next, add two new morphogens, ''id_a'' and ''id_b''.
Having saved the project (here we call it ''GPT_tut_interaction_20110530''), click Panel: Interaction function:Edit to automatically create the new interaction function.  [[Full freshly minted interaction function|It is shown here.]]<br><br>
There are lots of '''comments shown in green'''. These are designed to both help us structure our thoughts on the growth model and  provide reminders of useful commands and syntax without having to dive into a manual.<br><br>
The comments are easily removed - but for the moment we will leave them in.<br><br>
2) Add the [[GFtbox#What does GFtbox require?|code illustrating why we chose Matlab]] into the first model. This is shown in  <span style="color: Magenta">Magenta</span> in [[GPT_tut_interaction_20110530 second edit|GPT_tut_interaction_20110530 second edit]]. Note that it is in the space left for MODEL 1 and that MODEL 1 has been renamed 'NoPolariser'. <br><br>
3) Add the second model - new code is shown in <span style="color: MediumBlue">MediumBlue</span>. Notice that the polariser is set up in the same way for both models - but in the NoPolariser (first) model the growth rates parallel and perpendicular to the polariser are identical so the polariser gradient can have no effect. The final interaction function will look like [[GPT_tut_interaction_20110530 second edit|GPT_tut_interaction_20110530 second edit]].
{| border="0" cellpadding="15" cellspacing="3"
|- valign="top"
|width="300pt"|Pattern of A (blue) and B (green) morphogens at the start. Growth will be promoted by A but partially inhibited by B.
|width="300pt"|[[Image:GPT_tut_interaction_example_20110601-0001_First.png|250px|left|none|No Polariser]]
Initial shape.
|- valign="top"
|width="300pt"|[[Image:GPT_tut_interaction_example_20110601-0002.png|250px|left|none|No Polariser]] Isotropic growth, i.e. specified growth parallel to and perpendicular to any polariser is identical (''Kapar=Kbpar=Kaper=Kbper'').
|width="300pt"|[[Image:GPT_tut_interaction_example_20110601-0006_Last.png‎|250px|left|none|No Polariser]] Anisotropic growth where specified growth perpendicular to the polariser (arrows) is 0.1 that parallel to the polariser.
|}

Latest revision as of 20:55, 2 June 2011

Back to tutorial pages

The aim is to illustrate how to program the interaction function to have two submodels. In this example, the first grows isotropically and the second anisotropically where the growth axis is specified by a gradient of polariser.
1) Create and save a new mesh exactly as for the basic interaction function. Next, add two new morphogens, id_a and id_b. Having saved the project (here we call it GPT_tut_interaction_20110530), click Panel: Interaction function:Edit to automatically create the new interaction function. It is shown here.

There are lots of comments shown in green. These are designed to both help us structure our thoughts on the growth model and provide reminders of useful commands and syntax without having to dive into a manual.

The comments are easily removed - but for the moment we will leave them in.

2) Add the code illustrating why we chose Matlab into the first model. This is shown in Magenta in GPT_tut_interaction_20110530 second edit. Note that it is in the space left for MODEL 1 and that MODEL 1 has been renamed 'NoPolariser'.

3) Add the second model - new code is shown in MediumBlue. Notice that the polariser is set up in the same way for both models - but in the NoPolariser (first) model the growth rates parallel and perpendicular to the polariser are identical so the polariser gradient can have no effect. The final interaction function will look like GPT_tut_interaction_20110530 second edit.

Pattern of A (blue) and B (green) morphogens at the start. Growth will be promoted by A but partially inhibited by B.
No Polariser

Initial shape.

No Polariser
Isotropic growth, i.e. specified growth parallel to and perpendicular to any polariser is identical (Kapar=Kbpar=Kaper=Kbper).
No Polariser
Anisotropic growth where specified growth perpendicular to the polariser (arrows) is 0.1 that parallel to the polariser.