|
142 | 142 | ] |
143 | 143 | }, |
144 | 144 | { |
145 | | - "metadata": {}, |
146 | 145 | "cell_type": "markdown", |
| 146 | + "metadata": {}, |
147 | 147 | "source": [ |
148 | 148 | "### Find recordings of a specific brain region\n", |
149 | 149 | "If we are interested in a given brain region, we can use the `search_insertions` method to find all recordings associated with that region. For example, to find all recordings associated with the **Rhomboid Nucleus (RH)** region of the thalamus." |
150 | 150 | ] |
151 | 151 | }, |
152 | 152 | { |
153 | | - "metadata": {}, |
154 | 153 | "cell_type": "code", |
| 154 | + "execution_count": null, |
| 155 | + "metadata": {}, |
| 156 | + "outputs": [], |
155 | 157 | "source": [ |
156 | 158 | "# this is the query that yields the few recordings for the Rhomboid Nucleus (RH) region\n", |
157 | 159 | "insertions_rh = one.search_insertions(atlas_acronym='RH', datasets='spikes.times.npy', project='brainwide')\n", |
|
161 | 163 | "\n", |
162 | 164 | "# the Allen brain regions parcellation is hierarchical, and searching for Thalamus will return all child Rhomboid Nucleus (RH) regions\n", |
163 | 165 | "assert set(insertions_rh).issubset(set(insertions_th))\n" |
164 | | - ], |
165 | | - "outputs": [], |
166 | | - "execution_count": null |
| 166 | + ] |
167 | 167 | }, |
168 | 168 | { |
169 | 169 | "cell_type": "markdown", |
|
183 | 183 | "outputs": [], |
184 | 184 | "source": [ |
185 | 185 | "# Find sessions that have spikes.times datasets\n", |
186 | | - "sessions_with_spikes = one.search(project='brainwide', dataset='spikes.times')" |
| 186 | + "sessions_with_spikes = one.search(project='brainwide', datasets='spikes.times.npy')" |
187 | 187 | ] |
188 | 188 | }, |
189 | 189 | { |
|
253 | 253 | "outputs": [], |
254 | 254 | "source": [ |
255 | 255 | "# Find an example session with trials data\n", |
256 | | - "eid, *_ = one.search(project='brainwide', dataset='_ibl_trials.table.pqt')\n", |
| 256 | + "eid, *_ = one.search(project='brainwide', datasets='_ibl_trials.table.pqt')\n", |
257 | 257 | "# List datasets associated with a session, in the alf collection\n", |
258 | 258 | "datasets = one.list_datasets(eid, collection='alf*')\n", |
259 | 259 | "\n", |
|
375 | 375 | "lab_name = list(labs)[0]\n", |
376 | 376 | "\n", |
377 | 377 | "# Searching for RS sessions with specific lab name\n", |
378 | | - "sessions_lab = one.search(dataset='spikes', lab=lab_name)" |
| 378 | + "sessions_lab = one.search(datasets='spikes', lab=lab_name)" |
379 | 379 | ] |
380 | 380 | }, |
381 | 381 | { |
|
0 commit comments