// Created by libAntimony v2.13.0
function death(beta, sub, mod)
  beta*sub*mod;
end

death is "death"

function logistic(o, cell)
  o*cell*(1 - cell);
end

logistic is "logistic"

function n(a, gg, H, N)
  a*gg*H*N;
end

n is "n+"

function Constant_flux__irreversible(v)
  v;
end

Constant_flux__irreversible is "Constant flux (irreversible)"

function kill(p, sub, Q, a)
  p*sub*Q/(a + sub);
end

kill is "kill"


model *Iarosz2015___brain_tumor()

  // Compartments and Species:
  compartment tme;
  species G in tme, C in tme, N in tme, Q in tme;

  // Assignment Rules:
  H := piecewise(0, (-gg) < 0, piecewise(1, (-gg) > 0, 0.5));
  gg := rateOf(G);

  // Reactions:
  gc_growth:  => G; tme*logistic(o1, G);
  gc_death: G => ; tme*death(b1, G, C);
  gc_killing: G => ; tme*kill(p1, G, Q, a1);
  cc_growth:  => C; tme*logistic(o2, C);
  cc_death: C => ; tme*death(b2, C, G);
  cc_killing: C => ; tme*kill(p2, C, Q, a2);
  n_increase:  => N; tme*n(a, gg, H, N);
  n_killing: N => ; tme*kill(p3, N, Q, a3);
  chemotherapy:  => Q; tme*Constant_flux__irreversible(fi);
  drug_decay: Q => ; tme*zeta*Q;

  // Species initializations:
  G = 0.99;
  G has substance_per_volume;
  C = 0.01;
  C has substance_per_volume;
  N = 0.99;
  N has substance_per_volume;
  Q = 0;
  Q has substance_per_volume;

  // Compartment initializations:
  tme = 1;
  tme has volume;

  // Variable initializations:
  o1 = 0.0068;
  o1 has unit_0;
  b1 = 0.018;
  b1 has unit_0;
  p1 = 4.7e-08;
  p1 has unit_0;
  a1 = 1;
  a1 has unit_1;
  o2 = 0.012;
  o2 has unit_0;
  b2 = 0.0018;
  b2 has unit_0;
  p2 = 4.7e-05;
  p2 has unit_0;
  a2 = 1;
  a2 has unit_1;
  a = 2;
  a has unit_1;
  p3 = 4.7e-08;
  p3 has unit_0;
  a3 = 1;
  a3 has unit_1;
  fi = 100;
  fi has unit_0;
  zeta = 0.2;
  zeta has unit_0;
  H has unit_1;
  gg has unit_0;

  // Other declarations:
  var H, gg;
  const tme, o1, b1, p1, a1, o2, b2, p2, a2, a, p3, a3, fi, zeta;

  // Unit definitions:
  unit length = metre;
  unit area = metre^2;
  unit volume = 1e-3 litre;
  unit time_unit = time_unit;
  unit substance = 1e-3 mole;
  unit unit_0 = 1 / 86400e-1 second;
  unit unit_1 = 1 / dimensionless^-0;
  unit extent = substance;
  unit substance_per_volume = 1e-3 mole / 1e-3 litre;

  // Display Names:
  time_unit is "time";
  unit_0 is "1/d";
  unit_1 is "1";
  gc_growth is "gc growth";
  gc_death is "gc death";
  gc_killing is "gc killing";
  cc_growth is "cc growth";
  cc_death is "cc death";
  cc_killing is "cc killing";
  n_increase is "n increase";
  n_killing is "n killing";
  drug_decay is "drug decay";

  // CV terms:
  tme hypernym "http://identifiers.org/ncit/C94498"
  G hypernym "http://identifiers.org/cl/CL:0000125"
  C hypernym "http://identifiers.org/bto/BTO:0000526"
  N hypernym "http://identifiers.org/cl/CL:0000540"
  Q hypernym "http://identifiers.org/ncit/C15632"
  o1 hypernym "http://identifiers.org/sbo/SBO:0000610"
  b1 hypernym "http://identifiers.org/ncit/C25636"
  p1 hypernym "http://identifiers.org/ncit/C25636"
  a1 hypernym "http://identifiers.org/sbo/SBO:0000281"
  o2 hypernym "http://identifiers.org/sbo/SBO:0000610"
  b2 hypernym "http://identifiers.org/ncit/C25636"
  p2 hypernym "http://identifiers.org/ncit/C25636"
  a2 hypernym "http://identifiers.org/sbo/SBO:0000281"
  a hypernym "http://identifiers.org/ncit/C84380"
  p3 hypernym "http://identifiers.org/ncit/C25636"
  a3 hypernym "http://identifiers.org/sbo/SBO:0000281"
  fi hypernym "http://identifiers.org/ncit/C25636"
  zeta hypernym "http://identifiers.org/ncit/C25636"
  H hypernym "http://identifiers.org/ncit/C54025"
  gg hypernym "http://identifiers.org/ncit/C25636"
  gc_growth identity "http://identifiers.org/go/GO:0014009"
  gc_growth hypernym "http://identifiers.org/go/GO:0008283"
  gc_growth hypernym "http://identifiers.org/sbo/SBO:0000393"
  gc_death hypernym "http://identifiers.org/sbo/SBO:0000179"
  gc_death hypernym "http://identifiers.org/go/GO:0008219"
  gc_killing hypernym "http://identifiers.org/sbo/SBO:0000179"
  gc_killing hypernym "http://identifiers.org/go/GO:0008219"
  cc_growth hypernym "http://identifiers.org/go/GO:0008283"
  cc_growth hypernym "http://identifiers.org/sbo/SBO:0000393"
  cc_death hypernym "http://identifiers.org/sbo/SBO:0000179"
  cc_death hypernym "http://identifiers.org/go/GO:0008219"
  cc_killing hypernym "http://identifiers.org/sbo/SBO:0000179"
  cc_killing hypernym "http://identifiers.org/go/GO:0008219"
  n_increase hypernym "http://identifiers.org/go/GO:0008283"
  n_increase hypernym "http://identifiers.org/sbo/SBO:0000393"
  n_killing hypernym "http://identifiers.org/go/GO:0008219"
  n_killing hypernym "http://identifiers.org/sbo/SBO:0000179"
  chemotherapy hypernym "http://identifiers.org/ncit/C15632"
  chemotherapy hypernym "http://identifiers.org/sbo/SBO:0000393"
  drug_decay hypernym "http://identifiers.org/sbo/SBO:0000179"
end

Iarosz2015___brain_tumor is "Iarosz2015 - brain tumor"

Iarosz2015___brain_tumor description "http://identifiers.org/pubmed/25596516"
Iarosz2015___brain_tumor model_entity_is "http://identifiers.org/biomodels.db/MODEL1908020001",
                                         "http://identifiers.org/biomodels.db/BIOMD0000000775"
Iarosz2015___brain_tumor property "http://identifiers.org/mamo/MAMO_0000046"
Iarosz2015___brain_tumor property "http://identifiers.org/go/GO:0002418"
Iarosz2015___brain_tumor property "http://identifiers.org/efo/0003833"
Iarosz2015___brain_tumor property "http://identifiers.org/ncit/C15632"
Iarosz2015___brain_tumor taxon "http://identifiers.org/taxonomy/9606"
