Budding Yeast Cell
Budding Yeast Cell Reference#
BuddingCell
dataclass
#
Bases: BaseCell
Represents a budding yeast cell composed of two connected ovoids (mother and bud). The cells are connected at a "neck" region, with the bud growing from the mother cell.
Attributes:
| Name | Type | Description |
|---|---|---|
center |
ndarray
|
The (x, y, z) coordinates of the mother cell's center in XYZ plane |
mother_radius_x |
float
|
Mother cell radius along X axis |
mother_radius_y |
float
|
Mother cell radius along Y axis |
mother_radius_z |
float
|
Mother cell radius along Z axis |
bud_radius_x |
float
|
Bud radius along X axis |
bud_radius_y |
float
|
Bud radius along Y axis |
bud_radius_z |
float
|
Bud radius along Z axis |
bud_angle |
float
|
Angle in radians from x-axis where bud emerges |
bud_distance |
float
|
Distance between mother and bud centers |
neck_radius |
float
|
Radius of the connecting neck region |
Source code in SMS_BP/cells/budding_yeast_cell.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
contains_point_fallback(x, y, z, tolerance=0.001)
#
Determines if a given point is inside the BuddingCell. A point is inside if it's within the mother cell, the bud, or the neck region.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point
|
ndarray | List[float] | Tuple
|
The (x, y, z) coordinates of the point to check |
required |
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if the point is inside the cell, False otherwise |
Source code in SMS_BP/cells/budding_yeast_cell.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
make_BuddingCell(center, mother_radius_x, mother_radius_y, mother_radius_z, bud_radius_x, bud_radius_y, bud_radius_z, bud_angle, bud_distance, neck_radius)
#
Create a budding yeast cell using PyVista meshes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
center
|
ndarray | List[float] | Tuple
|
Center point of the mother cell |
required |
mother_radius_x/y/z
|
Radii of the mother cell along each axis |
required | |
bud_radius_x/y/z
|
Radii of the bud cell along each axis |
required | |
bud_angle
|
float
|
Angle in radians from x-axis where bud emerges |
required |
bud_distance
|
float
|
Distance between mother and bud centers |
required |
neck_radius
|
float
|
Radius of the connecting neck region |
required |
Returns:
| Name | Type | Description |
|---|---|---|
BuddingCell |
BuddingCell
|
Instance with PyVista mesh |
Source code in SMS_BP/cells/budding_yeast_cell.py
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |