PyOpenWorm.cell module¶
-
class
PyOpenWorm.cell.
Cell
(name=None, lineageName=None, **kwargs)[source]¶ Bases:
PyOpenWorm.biology.BiologyType
A biological cell.
All cells with the same name are considered to be the same object.
Parameters: - name : str
The name of the cell
- lineageName : str
The lineageName of the cell
-
blast
(self)[source]¶ Return the blast name.
Example:
>>> c = Cell(name="ADAL") >>> c.blast() # Returns "AB"
Note that this isn’t a Property. It returns the blast extracted from the ‘’first’’ lineageName saved.
-
defined_augment
(self)[source]¶ This fuction must return False if
identifier_augment()
would raise anIdentifierMissingException
. Override it when defining a non-standard identifier for subclasses of DataObjects.
-
identifier_augment
(self, *args, **kwargs)[source]¶ Override this method to define an identifier in lieu of one explicity set.
One must also override
defined_augment()
to return True whenever this method could return a valid identifier.IdentifierMissingException
should be raised if an identifier cannot be generated by this method.Raises: - IdentifierMissingException
-
description
¶ A description of the cell
-
divisionVolume
¶ The volume of the cell at division
Example:
>>> v = Quantity("600","(um)^3") >>> c = Cell(lineageName="AB plapaaaap") >>> c.divisionVolume(v)
-
lineageName
¶ The lineageName of the cell Example:
>>> c = Cell(name="ADAL") >>> c.lineageName() # Returns ["AB plapaaaapp"]
-
name
¶ The ‘adult’ name of the cell typically used by biologists when discussing C. elegans