pySTDLM.Cells#
Functions
|
Set the logger to write to the console as the code is working |
|
Set up file handler to print log to file |
|
Set the level of the logger for the application |
Classes
|
A representation for a spherical cell. |
|
A representation for a spherical cell. |
|
A representation for a spherical cell. |
Base class for a particular cell type for use in CellArranger (and later more) |
|
|
A representation for a spherical cell. |
- class pySTDLM.Cells.BoxCell(p1=[0.0, 0.0, 0.0], p2=[0.0, 0.0, 0.0])[source]#
Bases:
CellShape
A representation for a spherical cell. This cell requires an attribute dictionary that includes “width”, “height”, “depth” and “membraneThickness”
- addToSimulation(sim)#
Add the cell to the simulation
- Parameters:
sim – An RDMESimulation object
- boundingBox()#
Return a bounding box for the cell
- createModelCell(attr)#
Create model cell
- Parameters:
attrs – A dictionary of attributes
- getVolume()#
Volume occupied by cell
When overriding this class, you must specify a “computeVolume()” function of no arguments
- Returns:
Volume in intrinsic units
- setRegions(membrane, cytoplasm)#
Set regions
- Parameters:
membrane – The name of the region in which the membrane should be considered
cytoplasm – The name of the region in which the cytoplasm should be considered
- class pySTDLM.Cells.CapsuleCell(p1=[0.0, 0.0, 0.0], p2=[0.0, 0.0, 0.0], radius=0.0, length=0.0)[source]#
Bases:
CellShape
A representation for a spherical cell. This cell requires an attribute dictionary that includes “radius”, “length”, and “membraneThickness”
- addToSimulation(sim)#
Add the cell to the simulation
- Parameters:
sim – An RDMESimulation object
- boundingBox()#
Return a bounding box for the cell
- createModelCell(attr)#
Create model cell
- Parameters:
attrs – A dictionary of attributes
- getVolume()#
Volume occupied by cell
When overriding this class, you must specify a “computeVolume()” function of no arguments
- Returns:
Volume in intrinsic units
- setRegions(membrane, cytoplasm)#
Set regions
- Parameters:
membrane – The name of the region in which the membrane should be considered
cytoplasm – The name of the region in which the cytoplasm should be considered
- class pySTDLM.Cells.CapsuleShellCell(p1=[0.0, 0.0, 0.0], p2=[0.0, 0.0, 0.0], radius=0.0, length=0.0)[source]#
Bases:
CapsuleCell
A representation for a spherical cell. This cell requires an attribute dictionary that includes “radius”, “length” and “membraneThickness”
- addToSimulation(sim)#
Add the cell to the simulation
- Parameters:
sim – An RDMESimulation object
- boundingBox()#
Return a bounding box for the cell
- createModelCell(attr)#
Create model cell
- Parameters:
attrs – A dictionary of attributes
- getVolume()#
Volume occupied by cell
When overriding this class, you must specify a “computeVolume()” function of no arguments
- Returns:
Volume in intrinsic units
- internalTranslateCell(point)#
- setRegions(membrane, cytoplasm)#
Set regions
- Parameters:
membrane – The name of the region in which the membrane should be considered
cytoplasm – The name of the region in which the cytoplasm should be considered
- class pySTDLM.Cells.CellShape[source]#
Bases:
object
Base class for a particular cell type for use in CellArranger (and later more)
- addToSimulation(sim)[source]#
Add the cell to the simulation
- Parameters:
sim – An RDMESimulation object
- getVolume()[source]#
Volume occupied by cell
When overriding this class, you must specify a “computeVolume()” function of no arguments
- Returns:
Volume in intrinsic units
- class pySTDLM.Cells.SphereCell(origin=[0.0, 0.0, 0.0], radius=0.0)[source]#
Bases:
CellShape
A representation for a spherical cell. This cell requires an attribute dictionary that includes “radius” and “membraneThickness”
- addToSimulation(sim)#
Add the cell to the simulation
- Parameters:
sim – An RDMESimulation object
- boundingBox()#
Return a bounding box for the cell
- createModelCell(attr)#
Create model cell
- Parameters:
attrs – A dictionary of attributes
- getVolume()#
Volume occupied by cell
When overriding this class, you must specify a “computeVolume()” function of no arguments
- Returns:
Volume in intrinsic units
- setRegions(membrane, cytoplasm)#
Set regions
- Parameters:
membrane – The name of the region in which the membrane should be considered
cytoplasm – The name of the region in which the cytoplasm should be considered