Skip to content
Merged

Dev #134

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
8d43d84
Adding beginning of unit metrics and unit waveform notebooks.
rcpeene Dec 19, 2022
06522c9
Merge branch 'dev' of https://github.com/AllenInstitute/openscope_dat…
rcpeene Dec 20, 2022
fa425b9
Incremental additions
rcpeene Dec 20, 2022
c79c62d
Made progress with displaying spike times
rcpeene Dec 21, 2022
2cab869
Removed visualize_unit_waveform from this branch. Will be tracked on …
rcpeene Jan 3, 2023
2b3c10c
Finalized visualize_unit_metrics. Ready for review
rcpeene Jan 3, 2023
e3852f6
Merge branch 'dev' of https://github.com/AllenInstitute/openscope_dat…
rcpeene Jan 3, 2023
5293179
Update build.yml
rcpeene Jan 3, 2023
e09a6c7
Moved visualize_unit_waveform here from other branch
rcpeene Jan 3, 2023
d0dabff
Renamed file
rcpeene Jan 4, 2023
18d01d9
Added code to extract epochs from stimulus table.
rcpeene Jan 6, 2023
ffa341a
Added disclaimer to notebook that it currently doesnt work on remote …
rcpeene Jan 6, 2023
d122a8e
Merge branch 'main' of https://github.com/AllenInstitute/openscope_da…
rcpeene Jan 6, 2023
671c29c
Changed filename in eye tracking notebook for new convention
rcpeene Jan 6, 2023
8043232
Changed 2p raw filename for new convention
rcpeene Jan 6, 2023
50ae58e
Merge branch 'main' of https://github.com/AllenInstitute/openscope_da…
rcpeene Jan 6, 2023
b8d8f7d
Merge pull request #121 from AllenInstitute/neuropixel_probes
rcpeene Jan 6, 2023
339a2aa
Changed notebook to use streaming, fix typo, included output cells
rcpeene Jan 6, 2023
b254523
Merge branch 'unit_metrics' of https://github.com/AllenInstitute/open…
rcpeene Jan 6, 2023
b6f84f8
Change import namespace
rcpeene Jan 6, 2023
f33a478
Merge pull request #122 from AllenInstitute/2p_raw
rcpeene Jan 6, 2023
24884e7
Added completed unit responses notebook with output. Now its ready fo…
rcpeene Jan 10, 2023
c0a3540
Merge branch 'dev' of https://github.com/AllenInstitute/openscope_dat…
rcpeene Jan 10, 2023
89b666b
Removed extraneous import
rcpeene Jan 10, 2023
8fabfe4
Changed filepath once more, since dandi filenames were changed
rcpeene Jan 10, 2023
561d464
Merge branch 'dev' of https://github.com/AllenInstitute/openscope_dat…
rcpeene Jan 10, 2023
b530481
Merge branch 'main' of https://github.com/AllenInstitute/openscope_da…
rcpeene Jan 10, 2023
6b2e5a2
Issue #119, updated reference in exploring an nwb file
rcpeene Jan 10, 2023
b2bd64a
Created visualize_2p_responses notebook as duplicate of visualize_uni…
rcpeene Jan 10, 2023
e9f87aa
Turned off authentication code, as it is not needed for visual coding…
rcpeene Jan 10, 2023
05ba2de
Add stimulus table extraction to notebook
rcpeene Jan 11, 2023
22fc999
Changed back to download and changed files to use illusion rather tha…
rcpeene Jan 11, 2023
6850a0a
Reorganized notebook. Fixed some typos and one bug with extracting ep…
rcpeene Jan 12, 2023
54fda9c
Merge branch 'unit_responses' into 2p_responses
rcpeene Jan 12, 2023
588014d
Update visualize_unit_responses.ipynb
rcpeene Jan 12, 2023
e9e1dda
Organized some code, retailored first few sections for 2p data
rcpeene Jan 12, 2023
362f136
Variable name and markdown changes
rcpeene Jan 12, 2023
5f5a4db
Merge branch 'unit_responses' of https://github.com/AllenInstitute/op…
rcpeene Jan 12, 2023
0656af5
Small text changes
rcpeene Jan 12, 2023
f5397ef
typo fix
rcpeene Jan 12, 2023
5197587
Completed epoch plot for 2p data
rcpeene Jan 13, 2023
9ad58d7
Completed 2p responses notebook
rcpeene Jan 13, 2023
c6324f3
Merge pull request #120 from AllenInstitute/unit_metrics
rcpeene Jan 13, 2023
ffe7459
Merge pull request #123 from AllenInstitute/unit_responses
rcpeene Jan 17, 2023
4dc8e89
Changed notebook to operate on units table without converting to pand…
rcpeene Jan 18, 2023
9e3f027
Changed plot time inputs. Edited markdown
rcpeene Jan 18, 2023
25fde96
Removed unit waveforms graphs, replaced with 2d image
rcpeene Jan 18, 2023
e4267d2
regenerated some cells. removed extra cell
rcpeene Jan 18, 2023
acb97ab
Added correct time x axis for waveform plots
rcpeene Jan 19, 2023
aebdad3
Regenerated figures
rcpeene Jan 19, 2023
b61471a
Merge pull request #128 from AllenInstitute/2p_responses
rcpeene Jan 19, 2023
ad9bfe3
Merge pull request #133 from AllenInstitute/unit_responses
rcpeene Jan 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/basics/use_nwbwidgets.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"metadata": {},
"source": [
"# Exploring an NWB File\n",
"It can get cumbersome to manually dissect an NWB file with print statements. There are a few ways to view an NWB graphically instead. A great way to do this in a Jupyter notebook is with [NWBWidgets](https://github.com/NeurodataWithoutBorders/nwbwidgets). Here, you can use NWBWidgets to view a file from a location on your machine. If you don't want to download a file just to view it, you can still use NWBWidgets to view it remotely. Check out *Stream an NWB File with fsspec* to learn how to do this. Another way to explore an NWB file, that doesn't require Jupyter, is with [HDFView](https://www.hdfgroup.org/downloads/hdfview/)."
"It can get cumbersome to manually dissect an NWB file with print statements. There are a few ways to view an NWB graphically instead. A great way to do this in a Jupyter notebook is with [NWBWidgets](https://github.com/NeurodataWithoutBorders/nwbwidgets). Here, you can use NWBWidgets to view a file from a location on your machine. If you don't want to download a file just to view it, you can still use NWBWidgets to view it remotely. Check out [Streaming an NWB File with fsspec](./stream_nwb.ipynb) to learn how to do this. Another way to explore an NWB file, that doesn't require Jupyter, is with [HDFView](https://www.hdfgroup.org/downloads/hdfview/)."
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions docs/visualization/visualize_2p_raw.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"import fsspec\n",
"import h5py\n",
"import numpy as np\n",
"import pynwb\n",
"\n",
"from dandi import dandiapi\n",
"from fsspec.implementations.cached import CachingFileSystem\n",
"from matplotlib import pyplot as plt\n",
"from mpl_interactions import hyperslicer\n",
"from nwbwidgets import nwb2widget"
"from nwbwidgets import nwb2widget\n",
"from pynwb import NWBHDF5IO"
]
},
{
Expand All @@ -55,7 +55,7 @@
"outputs": [],
"source": [
"dandiset_id = \"000336\"\n",
"dandi_filepath = \"1186140941/1212553658/1212705237_raw.nwb\"\n",
"dandi_filepath = \"sub_1186140941/sub_1186140941sess_1212553658/sub_1186140941+sess_1212553658+exp_1212705237+raw_ophys.nwb\"\n",
"authenticate = True\n",
"dandi_api_key = os.environ['DANDI_API_KEY']"
]
Expand Down Expand Up @@ -124,7 +124,7 @@
"# opening may take awhile on a large file\n",
"f = fs.open(file_url, \"rb\")\n",
"file = h5py.File(f)\n",
"io = pynwb.NWBHDF5IO(file=file, mode='r', load_namespaces=True)\n",
"io = NWBHDF5IO(file=file, mode='r', load_namespaces=True)\n",
"nwb = io.read()"
]
},
Expand Down
Loading