Getting the proper channel mapping from a Spikegadgets .rec file (tetrodes)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
The question is how the channel_name property from read_spikegadgets maps onto the device indices passed to set_device_channel_indices on each probe in a ProbeGroup. Start by printing the recording's channel_name values and the trode to channel mapping, then check the probe's device channel indices against them. Done would be a worked SpikeGadgets tetrode example, or a clear explanation of the missing mapping step.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi, I'm trying to (re)write a spike-sorting pipeline for spikegadgets tetrode data via spike interface & probe interface (both are very convenient!! thank you!) It's going pretty well but I am wondering about the channel mapping.
My setup is 128 channels organised in 32 tetrodes.
On the one hand, spike interface can read my example recording (directly from the .rec file with read_spikegadgets !) and the recording has a channel_name property that in my case contains the following:
array(['trode19chan0', 'trode5chan32', 'trode9chan64', 'trode15chan96',
'trode20chan1', 'trode30chan33', 'trode10chan65', 'trode24chan97',
'trode19chan2', 'trode5chan34', 'trode9chan66', 'trode15chan98', ...]
I can use this to create a dictionnary between tetrode numbers (1-> 32) and channel numbers (0 -> 127), I can then feed this to spike / probe interface to give it the relevant 4 channel numbers for each tetrode, with something like:
tetrode_group = ProbeGroup()
for trode_name in tetrode_list:
tetrode = generate_tetrode()
these_chan = TT_dict[trode_name]
tetrode.set_device_channel_indices(these_chan)
tetrode_group.add_probe(tetrode)
this_rec.set_probegroup(tetrode_group, group_mode = 'by_probe')
However, I think something is missing in that approach as the resulting 4 channels of each tetrode do not look like they belong to the same tetrode in Phy or in any data previews. I'm pretty sure there should be an additional mapping step but I'm not sure what exactly is missing, looking at the spike interface or probeinterface doc does not help me much as I couldn't see any SpikeGadgets examples there.
I'm thinking that probably the channel names in the 'channel_name' property of the recording do not actually match the naming scheme used by set_device_channel_indices? But how to get them to match?
Would anyone has any insights, link to relevant documentation that I might have missed or, even better, an example code that handles this mapping? Happy to share my code once it works or if it helps debug!
- Ngôn ngữ chính
- Python
- Star
- 89
- Fork
- 52
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 4
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của SpikeInterface/probeinterface
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
SpikeInterface/probeinterface#475 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
SpikeInterface/probeinterface#469 · 2 bình luận ·
-
probe plotting feature requestĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
SpikeInterface/probeinterface#465 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 48/100
SpikeInterface/probeinterface#452 · 1 bình luận ·
-
question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
SpikeInterface/probeinterface#449 · 7 bình luận ·
Tất cả issue của SpikeInterface/probeinterface
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
available bug good first issue tooling
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Nixitov/Riptide-Native#816 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
SpikeInterface/spikeinterface#5008 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
teng-lin/notebooklm-py#2593 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
claimed-by:collie role:small-fix status:running
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Beovulfo/herd-sdlc#325 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày