Analyse Run

This is a template notebook to browse the results of a evolution simulation.

Please Restart & Run All to make shure you start with a clean notebook.

Enter the path of the project here (necessary to load the addons)


In [ ]:
import os,sys
#sys.path.append("immune")
sys.path.append("example_immune")

Import required libraries


In [ ]:
%matplotlib notebook
import matplotlib.pyplot as plt
import numpy as np
from  ipywidgets import widgets 
from ipywidgets import interact, interactive, fixed
from IPython.display import display,HTML,clear_output

HTML('''<script>code_show=true;function code_toggle() {if (code_show){$('div.input').hide();} else {$('div.input').show();} code_show = !code_show} $( document ).ready(code_toggle);</script><form action="javascript:code_toggle()"><input type="submit" value="Click here to toggle on/off the raw code."></form>''')
from  Immune import Add_ons_pMHC
import phievo.AnalysisTools as AT
from  phievo.AnalysisTools.Notebook import Notebook

notebook = Notebook()
notebook.run_dynamics_pMHC = Add_ons_pMHC.Run_Dynamics_pMHC(notebook)
notebook.plot_pMHC = Add_ons_pMHC.Plot_pMHC(notebook)
notebook.plot_layout_immune = Add_ons_pMHC.Plot_Layout_Immune(notebook)

Select the Project


In [ ]:
notebook.select_project.display()

Select Seed


In [ ]:
notebook.select_seed.display()

Plot observable


In [ ]:
notebook.plot_evolution_observable.display()

Select Generation


In [ ]:
notebook.select_generation.display()

PLot Layout


In [ ]:
notebook.plot_layout_immune.display()

Run Dynamics


In [ ]:
notebook.run_dynamics_pMHC.display()

Plot Response function


In [ ]:
notebook.plot_pMHC.display()

In [ ]: