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

Create static ephys phase plot image #467

Open
2 tasks
wbwakeman opened this issue Aug 17, 2020 · 0 comments
Open
2 tasks

Create static ephys phase plot image #467

wbwakeman opened this issue Aug 17, 2020 · 0 comments

Comments

@wbwakeman
Copy link

wbwakeman commented Aug 17, 2020

As a Brain Knowledge Platform user, I want to see a summary of the electrophysiology of a cell, so that I can immediately understand at a high level the electrophysiology characteristics of the cell.

Summary:
The ephys phase plot is calculable from information that comes out of IPFX. There are start and end of spike indices determined by IPFX. We could either have the phase plot just show the first spike, in which case we just pull out that waveform between the indices, calculate its time derivative, and plot the voltage (x-axis) vs the derivative of voltage (y-axis).

If we want to average spikes, we could still pull out the spikes in the same way and average them (then do the derivative & plotting) - the only slightly tricky part is getting the lengths of all the waveforms the same (but there are options for dealing with that - filling the ends of shorter ones with NaNs, etc.).

Example image and code references courtesy of NathanG:
image.png

The function that plots it is here:
https://github.com/AllenInstitute/mouse-met-figures/blob/408585d3769e99252aef4ef0ac074517dc5fa9b7/mouse_met_figs/summary_fig.py#L294

And that function is called around here:
https://github.com/AllenInstitute/mouse-met-figures/blob/408585d3769e99252aef4ef0ac074517dc5fa9b7/mouse_met_figs/summary_fig.py#L524

In my plotting code, it uses an already-processed version of the AP waveform (basically a version that just takes the next 3 ms after the start of the spike).

Track the output image in LIMS.

size?
layout?
labels?
background/transparency?

Tasks:

  • asdf

Acceptance criteria:

  • asdf
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

1 participant