Skip to main content
. 2015 Jun 17;10(6):e0127972. doi: 10.1371/journal.pone.0127972

Table 7. Python implementation of cell-growth algorithm.

for cell in self.cellList:
cellDict = CompuCell.getPyAttrib(cell)
if cell.type == self.PCANCER:
   if cellDict[“Starv”] > ip.PNeThr0:
    cell.type = self.NECROTIC
    cellDict[“Health”]=0
if cell.type==self.QCANCER:
   if cellDict[“Starv”] > ip.QNeThr0:
    cell.type = self.NECROTIC
    cellDict[“Health”]=0
   if cellDict[“Health”] > ip.QPThr0:
    cell.type = self.PCANCER
    cellDict[“Health”]=0
if cell.type == self.PSTEM:
   if cellDict[“Starv”] > ip.SNeThr0:
    cell.type = self.NECROTIC
    cellDict[“Health”]=0
if cell.type == self.QSTEM:
   if cellDict[“Starv”] > ip.QSNeThr0:
    cell.type = self.NECROTIC
    cellDict[“Health”]=0
   if cellDict[“Health”] > ip.QSSThr0:
    cell.type = self.PSTEM
    cellDict[“Health”]=0