Demo 04: Disease Investigation¶
Apply a perturbation, observe the diseased system, and detect symptoms.
In [1]:
Copied!
import sys
from pathlib import Path
# Ensure alienbio is importable
_root = Path(".").resolve().parent.parent / "src"
if str(_root) not in sys.path:
sys.path.insert(0, str(_root))
_demos = Path(".").resolve().parent
if str(_demos) not in sys.path:
sys.path.insert(0, str(_demos))
%matplotlib inline
import sys
from pathlib import Path
# Ensure alienbio is importable
_root = Path(".").resolve().parent.parent / "src"
if str(_root) not in sys.path:
sys.path.insert(0, str(_root))
_demos = Path(".").resolve().parent
if str(_demos) not in sys.path:
sys.path.insert(0, str(_demos))
%matplotlib inline
In [2]:
Copied!
from _core import demo_04_disease
symptoms, fig_traj, fig_symp = demo_04_disease()
print(f'Detected {len(symptoms)} symptom(s)')
from _core import demo_04_disease
symptoms, fig_traj, fig_symp = demo_04_disease()
print(f'Detected {len(symptoms)} symptom(s)')
Detected 2 symptom(s)
Diseased Trajectories¶
In [3]:
Copied!
fig_traj
fig_traj
Out[3]:
Symptom Detection¶
In [4]:
Copied!
fig_symp
fig_symp
Out[4]: