Skip to content

Commit

Permalink
viewspikes: a Gui to display electrophysiology features in IBL sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliche committed Jan 25, 2024
1 parent 3e60f33 commit 4677f01
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 538 deletions.
2 changes: 1 addition & 1 deletion atlasview/atlasview.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class ControllerTopView(PgImageController):
"""
TopView ControllerTopView
"""
def __init__(self, qmain: TopView, res: int = 25, volume='image'):
def __init__(self, qmain: TopView, res: int = 25, volume='image', **kwargs):
super(ControllerTopView, self).__init__(qmain)
self.volume = volume
self.atlas = AllenAtlas(res)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
entry_points={
'console_scripts': [
'atlas=atlasview.atlasview:main',
'align=atlaselectrophysiology.ephys_atlas_gui:main',
]
},
)
9 changes: 8 additions & 1 deletion viewspikes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ Pre-requisites:

```
conda activate iblenv
pip install easyqc
pip install viewephys
pip install -U pyqtgraph
```


## Roadmap
- multi-probe displays for sessions with several probes
- make sure NP2.0 4 shanks is supported
- display LFP
- speed up the raster plots in pyqtgraph
110 changes: 0 additions & 110 deletions viewspikes/data.py

This file was deleted.

15 changes: 15 additions & 0 deletions viewspikes/example_view_ephys_session.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from pathlib import Path
from one.api import ONE
from brainbox.io.one import EphysSessionLoader, SpikeSortingLoader
from iblapps.viewspikes.gui import view_raster

PATH_CACHE = Path("/datadisk/Data/NAWG/01_lick_artefacts/openalyx")

one = ONE(base_url="https://openalyx.internationalbrainlab.org", cache_dir=PATH_CACHE)

pid = '5135e93f-2f1f-4301-9532-b5ad62548c49'
eid, pname = one.pid2eid(pid)


self = view_raster(pid=pid, one=one, stream=False)

111 changes: 0 additions & 111 deletions viewspikes/examples_local.py

This file was deleted.

60 changes: 0 additions & 60 deletions viewspikes/examples_reproducible.py

This file was deleted.

13 changes: 0 additions & 13 deletions viewspikes/examples_stream.py

This file was deleted.

Loading

0 comments on commit 4677f01

Please sign in to comment.