Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NP course: iblsort + viewephys assignment & presentation #828

Open
1 of 4 tasks
mayofaulkner opened this issue Aug 7, 2024 · 1 comment
Open
1 of 4 tasks

NP course: iblsort + viewephys assignment & presentation #828

mayofaulkner opened this issue Aug 7, 2024 · 1 comment
Assignees

Comments

@mayofaulkner
Copy link
Contributor

mayofaulkner commented Aug 7, 2024

  • raw data quality and viewephys presentation @oliche
  • IBL sort presentation @oliche

Due mid Sept:

NP course shedule https://docs.google.com/document/d/1Zz1Nx49atBPMMDLylmbSBxyl5GXq5om6G-yMRYZP7vQ/edit

@mayofaulkner mayofaulkner added this to the UCL Neuropixel Course milestone Aug 7, 2024
@GaelleChapuis GaelleChapuis changed the title iblsort + viewephys assignment NP course: iblsort + viewephys assignment & presentation Sep 9, 2024
@GaelleChapuis GaelleChapuis self-assigned this Sep 9, 2024
@GaelleChapuis
Copy link
Contributor

GaelleChapuis commented Sep 10, 2024

viewephys assignment: https://github.com/int-brain-lab/neuropixels_course_2024/tree/main/viewephys

Notes:

  • did not show the viewephys command that is nice when wanting to look at the data on disk, because adding the spikes to it would require changing the GUI to account for jumping across windows
  • did not show residual analysis. Attempted the residual analysis on the raw data snippet using spike interface functions
import spikeinterface.extractors as se
import spikeinterface.generation as ge

# The inject_templates requires a Sorting object and a BaseRecording object.

# --- Option 1: Create Sorting object using just the spikes within the raw data snippet
sorting_obj = spikeinterface.core.NumpySorting(
    spikes=ssa, sampling_frequency=sr_ap.fs, unit_ids=su)
# This was bugging, although the input were as specified in the doc (simple numpy arrays)

# --- Option 2: Create sorting object using the reader
re = se.read_ibl_recording(one=one, pid=pid, stream_name=f'{probe}.ap')
# This however loaded the whole train of spike, and it was unclear how to restrict it to only the raw data snippet time

# The convolution function is the following, however it was unclear how to precise the length of it without a BaseRecording object
convolved_templ = ge.inject_templates(sorting=re, templates=negative_wavs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants