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

about events #3377

Open
bxy666666 opened this issue Sep 6, 2024 · 8 comments
Open

about events #3377

bxy666666 opened this issue Sep 6, 2024 · 8 comments
Labels
question General question regarding SI

Comments

@bxy666666
Copy link

hello, I had some events happened at some timepoint, I want to see if these events have effect. How can I do?

@alejoe91
Copy link
Member

alejoe91 commented Sep 6, 2024

Can you be a bit more specific? :)

@bxy666666
Copy link
Author

Can you be a bit more specific? :)

OK ,for example, I gave stimulation at 0.1s, 0,2s, 0.3s.....,and my record is about the whole 10minutes. how can I campare the recation between with stimulation and without stimulation in the whole period.

@bxy666666
Copy link
Author

Can you be a bit more specific? :)

Is that concering events?

@alejoe91 alejoe91 added the question General question regarding SI label Sep 6, 2024
@alejoe91
Copy link
Member

alejoe91 commented Sep 6, 2024

What would you like to compare?

@bxy666666
Copy link
Author

What would you like to compare?

I want to compare the units in files with these events and that without any events

@bxy666666
Copy link
Author

What would you like to compare?

I want to compare the units in files with these events and that without any events

like waveforms or other metrics.

@bxy666666
Copy link
Author

What would you like to compare?

I want to compare the units in files with these events and that without any events

like waveforms or other metrics.

Also I want to delete some recording slices , I think remove_artifactsis not suitable. I want to delete, no to replace with 0.

@JoeZiminski
Copy link
Collaborator

Hi @bxy666666, you can slice up your recordings with frame_slice or time_slice. If you want to put them back together (e.g. with parts dropped) you can use the concatenation machinery.

You can use get_unit_spike_train() to get an array of all spikes for a given unit (indices on which they fire). You can then slice this up based on the indices of your events using numpy slicing to generate things like peri-stimulus time histogram. As a first step I would first suggesting looking at the different units, and different events to see whether you are neurons selectively responding to events. Typically I would expect the actual waveforms of the unit to be stable whether responding to an event vs. responding when there is no stimulus presented (unless these events are some kind of drug application). But, of course anything's possible!

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

No branches or pull requests

3 participants