surgery.py
activate(surgery_schema_name, subject_schema_name=None, *, create_schema=True, create_tables=True, linking_module=True)
¶
Activate this schema.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema_name |
str
|
schema name on the database server to activate the
|
required |
create_schema |
bool
|
when True (default), create schema in the database if it does not yet exist. |
True
|
create_tables |
bool
|
when True (default), create tables in the database if they do not yet exist. |
True
|
linking_module |
bool
|
a module name or a module containing the |
True
|
required |
dependencies to activate the `subject` element
|
|
required |
Dependencies:
Upstream tables
User: the who conducted a particular surgery/implantation
Source code in element_animal/surgery.py
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 | |
CoordinateReference
¶
Bases: dj.Lookup
Coordinate reference system
Attributes:
| Name | Type | Description |
|---|---|---|
reference |
varchar(60)
|
Reference system (e.g., bregma, lambda, etc.) |
Source code in element_animal/surgery.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
BrainRegion
¶
Bases: dj.Manual
Brain region of a given surgery
Attributes:
| Name | Type | Description |
|---|---|---|
region_acronym |
varchar(32) )
|
Brain region shorthand |
region_name |
varchar(128) )
|
Brain region full name |
Source code in element_animal/surgery.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
Hemisphere
¶
Bases: dj.Lookup
Brain region hemisphere
Attributes:
| Name | Type | Description |
|---|---|---|
hemisphere |
varchar(8)
|
Brain region hemisphere (e.g., left, right, middle) |
Source code in element_animal/surgery.py
93 94 95 96 97 98 99 100 101 102 103 104 105 | |
ImplantationType
¶
Bases: dj.Lookup
Type of implantation
Attributes:
| Name | Type | Description |
|---|---|---|
implant_type |
varchar(16)
|
Short name for type of implanted device |
implant_description |
varchar(32)
|
Full description for implanted device |
Source code in element_animal/surgery.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
Implantation
¶
Bases: dj.Manual
Implantation of a device
Attributes:
| Name | Type | Description |
|---|---|---|
Session |
foreign key
|
Session primary key |
location_id |
int
|
ID of of brain location |
ap |
float
|
In mm, Anterior/posterior; Anterior Positive |
ap_reference |
projected attribute
|
Coordinate reference |
ml |
float
|
In mm, medial axis; Right Positive |
ml_reference |
projected attribute
|
Coordinate reference |
dv |
float
|
In mm, dorso-ventral axis. Ventral negative |
dv_reference |
projected attribute
|
Coordinate reference |
theta |
float, nullable
|
Elevation in degrees. Rotation about ml-axis [0, 180] relative to z-axis |
phi |
float, nullable
|
Azimuth in degrees. Rotations about dv-axis [0, 360] relative to x-axis |
beta |
float, nullable
|
Rotation about shank in degrees. Rotation about the shank [-180, 180]. Clockwise is increasing. 0 is the probe-front facing anterior |
Source code in element_animal/surgery.py
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 | |