#include <AbstractCryptStatistics.hpp>
Public Member Functions | |
AbstractCryptStatistics (MeshBasedTissue< 2 > &rCrypt) | |
virtual | ~AbstractCryptStatistics () |
void | LabelSPhaseCells () |
void | LabelAllCellsAsHealthy () |
std::vector< bool > | GetWhetherCryptSectionCellsAreLabelled (std::vector< TissueCell * > cryptSection) |
Protected Attributes | |
MeshBasedTissue< 2 > & | mrCrypt |
Definition at line 36 of file AbstractCryptStatistics.hpp.
AbstractCryptStatistics::AbstractCryptStatistics | ( | MeshBasedTissue< 2 > & | rCrypt | ) | [inline] |
virtual AbstractCryptStatistics::~AbstractCryptStatistics | ( | ) | [inline, virtual] |
Destructor.
Definition at line 57 of file AbstractCryptStatistics.hpp.
void AbstractCryptStatistics::LabelSPhaseCells | ( | ) |
To recreate the Meineke labelling experiments
Cells which are in S phase have their mutation state changed from 'HEALTHY' to 'LABELLED'.
In Owen Sansom's experiments this is called twice; once at the beginning and once at the end of an hour to simulate uptake of the label over an hour, so some cells will already be labelled when this is called the second time.
(assumption that S phase lasts longer than one hour is pretty sound)
Definition at line 30 of file AbstractCryptStatistics.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), and mrCrypt.
void AbstractCryptStatistics::LabelAllCellsAsHealthy | ( | ) |
Sets all the cells in the crypt to have a mutation state of 'HEALTHY'
Definition at line 44 of file AbstractCryptStatistics.cpp.
References AbstractTissue< DIM >::Begin(), AbstractTissue< DIM >::End(), and mrCrypt.
std::vector< bool > AbstractCryptStatistics::GetWhetherCryptSectionCellsAreLabelled | ( | std::vector< TissueCell * > | cryptSection | ) |
Get all cells within a cell width of the section defined as the line between points (xBottom,0) and (xTop,yTop). If a patricular cell is labelled then the boolean true is returned.
Periodicity can be taken into account (if xTop and xBottom are more than half a crypt width apart then a more realistic section will be across the periodic boundary), using the final parameter. This obviously requires the mesh to be cylindrical.
cryptSection | A standard vector of pointers to TissueCells (from a call to GetCryptSection in the concrete class) |
Definition at line 54 of file AbstractCryptStatistics.cpp.
MeshBasedTissue<2>& AbstractCryptStatistics::mrCrypt [protected] |
The crypt.
Definition at line 41 of file AbstractCryptStatistics.hpp.
Referenced by CryptStatistics::CellIsInSection(), CryptStatistics::CellIsInSectionPeriodic(), CryptStatistics::GetCryptSection(), LabelAllCellsAsHealthy(), and LabelSPhaseCells().