Skip to content

Commit 641db1a

Browse files
committed
Carrying capacity depends on number of drivers
1 parent 22fceaa commit 641db1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/simulation/cell.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Cell::Outcome Cell::performGeneration(const AnatomicalSiteFactorVector& anatomic
3737

3838
double logistic_factor = map.find(_driverMutations)->second;
3939

40-
double birthRate = 0.65 * (1 + s_0) * (_driverMutations.size() + 1) * logistic_factor;
40+
double birthRate = 0.5 * (1 + s_0) * (_driverMutations.size() + 1) * logistic_factor;
4141
if (birthRate < 0)
4242
birthRate = 0;
4343
else if (birthRate > 1)

src/simulation/celltree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ void CellTree::updateAnatomicalSiteFactors()
297297
nrCells_s += nrCells_sX;
298298

299299
// _anatomicalSiteFactors[s][X] = double(_K - nrCells_sX) / _K;
300-
_anatomicalSiteFactors[s][X] = 1 - double(nrCells_sX) / _K;
300+
_anatomicalSiteFactors[s][X] = 1 - double(nrCells_sX) / (_K * (1 + X.size()));
301301

302302
if (nrCells_sX > 0)
303303
{

0 commit comments

Comments
 (0)