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 |