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

accessing the stimulus waveform (holding command) #13

Open
sayakaminegishi opened this issue Jul 25, 2023 · 1 comment
Open

accessing the stimulus waveform (holding command) #13

sayakaminegishi opened this issue Jul 25, 2023 · 1 comment

Comments

@sayakaminegishi
Copy link

Hello,
I am just wondering whether there is a way to access the stimulus waveform (the holding command in current clamp) when using abfload.
Thank you so much.

@nsdesai
Copy link

nsdesai commented Jul 26, 2023

In pClamp, from the Edit menu, select "Create Stimulus Waveform Signal ..." and create the stimulus waveform for the channel you care about. Now save the ABF file ("myFile.abf").

If you do that, then d = abfload("myFile.abf") will return a K x M x L matrix, where K is the number of sample points, M the number of channels (in this case, recording channel and stimulus channel), and L the number of sweeps. So, your recording will be recording = squeeze(d(:,1,:)) and your stimulus will be stimulus = squeeze(d(:,2,:)).

It should be possible to generate the stimulus outside of pClamp, but I don't know how to do that. But this way works.

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

2 participants