probe.py
Neuropixels Probes
activate(schema_name, *, create_schema=True, create_tables=True)
¶
Activates the probe schemas.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
schema_name |
str
|
A string containing the name of the probe schema. |
required |
create_schema |
bool
|
If True, schema will be created in the database. |
True
|
create_tables |
bool
|
If True, tables related to the schema will be created in the database. |
True
|
Dependencies:
Upstream tables
Session: A parent table to ProbeInsertion.
Functions:
Source code in element_array_ephys/probe.py
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 | |
ProbeType
¶
Bases: dj.Lookup
Type of probe.
Attributes:
| Name | Type | Description |
|---|---|---|
probe_type |
foreign key, varchar (32)
|
Name of the probe type. |
Source code in element_array_ephys/probe.py
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 110 111 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 | |
Electrode
¶
Bases: dj.Part
Electrode information for a given probe.
Attributes:
| Name | Type | Description |
|---|---|---|
ProbeType |
foreign key
|
ProbeType primary key. |
electrode |
foreign key, int
|
Electrode index, starting at 0. |
shank |
int
|
shank index, starting at 0. |
shank_col |
int
|
column index, starting at 0. |
shank_row |
int
|
row index, starting at 0. |
x_coord |
float
|
x-coordinate of the electrode within the probe in micrometers. |
y_coord |
float
|
y-coordinate of the electrode within the probe in micrometers. |
Source code in element_array_ephys/probe.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | |
create_neuropixels_probe(probe_type='neuropixels 1.0 - 3A')
staticmethod
¶
Create ProbeType and Electrode for neuropixels probes:
+ neuropixels 1.0 - 3A
+ neuropixels 1.0 - 3B
+ neuropixels UHD
+ neuropixels 2.0 - SS
+ neuropixels 2.0 - MS
For electrode location, the (0, 0) is the bottom left corner of the probe (ignore the tip portion) Electrode numbering is 1-indexing
Source code in element_array_ephys/probe.py
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 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 | |
Probe
¶
Bases: dj.Lookup
Represent a physical probe with unique ID
Attributes:
| Name | Type | Description |
|---|---|---|
probe |
foreign key, varchar(32)
|
Unique ID for this model of the probe. |
ProbeType |
dict
|
ProbeType entry. |
probe_comment |
varchar(1000)
|
Comment about this model of probe. |
Source code in element_array_ephys/probe.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | |
ElectrodeConfig
¶
Bases: dj.Lookup
Electrode configuration setting on a probe.
Attributes:
| Name | Type | Description |
|---|---|---|
electrode_config_hash |
foreign key, uuid
|
unique index for electrode configuration. |
ProbeType |
dict
|
ProbeType entry. |
electrode_config_name |
varchar(4000)
|
User-friendly name for this electrode configuration. |
Source code in element_array_ephys/probe.py
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 | |
Electrode
¶
Bases: dj.Part
Electrode included in the recording.
Attributes:
| Name | Type | Description |
|---|---|---|
ElectrodeConfig |
foreign key
|
ElectrodeConfig primary key. |
ProbeType.Electrode |
foreign key
|
ProbeType.Electrode primary key. |
Source code in element_array_ephys/probe.py
196 197 198 199 200 201 202 203 204 205 206 207 | |
build_electrode_layouts(probe_type, site_count_per_shank, col_spacing=None, row_spacing=None, white_spacing=None, col_count_per_shank=1, shank_count=1, shank_spacing=None, y_origin='bottom')
¶
Builds electrode layouts.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
probe_type |
str
|
probe type (e.g., "neuropixels 1.0 - 3A"). |
required |
site_count_per_shank |
int
|
site count per shank. |
required |
col_spacing |
float
|
(um) horizontal spacing between sites. Defaults to None (single column). |
None
|
row_spacing |
float
|
(um) vertical spacing between columns. Defaults to None (single row). |
None
|
white_spacing |
float
|
(um) offset spacing. Defaults to None. |
None
|
col_count_per_shank |
int
|
number of column per shank. Defaults to 1 (single column). |
1
|
shank_count |
int
|
number of shank. Defaults to 1 (single shank). |
1
|
shank_spacing |
float
|
(um) spacing between shanks. Defaults to None (single shank). |
None
|
y_origin |
str
|
{"bottom", "top"}. y value decrements if "top". Defaults to "bottom". |
'bottom'
|
Source code in element_array_ephys/probe.py
210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |