-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathECell.py
42 lines (32 loc) · 1.38 KB
/
ECell.py
1
2
3
4
5
6
7
8
9
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
#------------------------------------------------------------------------------
# The ECell class represents a migratory endothelial cell within the blood vessel wall
#
# Lowell Taylor Edgar
# University of Edinburgh
# 2019
import random as rand
from Tensor3D import *
#------------------------------------------------------------------------------
class ECell:
# ECell constructor
def __init__(self, ID =0, vessID =0, polvect =Vect(0., 0., 0.,)):
# Cell number identifier
ID : int
self.ID = ID
# Identifier for which Vessel the cell resides in
vessID : int
self.vessID = vessID
# Cell polarity vector
polarity : Vect
polvect = Vect(rand.uniform(-1, 1), rand.uniform(-1, 1), 0.)
polvect.unit()
self.polarity = polvect
# Migration idicator (+1 for upstream/against vessel unit vector, -1 for downstream/along vessel unit vector, 0 for not migrating)
migrate : int
self.migrate = 0
def __str__(self):
return "Cell {0} is in Vessel {1}; polarity = {2}; migrate = {3}".format(self.ID, self.vessID, round(self.polarity, 2), self.migrate)
#------------------------------------------------------------------------------
# main program
if __name__ == "__main__":
pass