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

Bandpassed power plot does not change in Electrophysiology Atlas GUI #119

Open
cspurandare opened this issue Apr 3, 2024 · 5 comments
Open

Comments

@cspurandare
Copy link

Hi,
I am using the IBL ephys alignment GUI and have tested the sample data provided as well as my own data. Things are looking good, in terms of spike related properties and RMS of LFP and AP channels seems reasonable. But when I try to extract more information using the "Probe plots" by switching between different frequency bands (0-4Hz vs 80-200Hz) the resultant plot is unchanged. This happens with my data, but the GUI behaves well with the sample data. I tried to look through the code and couldn't figure it out. I tried to open the raw npy files in MATLAB, and noticed that the sample data is 513x385, whereas my data was 513x384 (1 for each of the NP1.0 channels). Perhaps that is the cause of the difference? What does the 385th channel do, and how does one get that information?

Also as an aside, the output plot is a (4x N_Channels) color matrix in dB. I am curious how it reaches that dimensions, specifically how does it choose which 4 bins to plot at? My data files and 2 screenshots for the issue are at the link below -
https://drive.google.com/drive/folders/1OFNksUzYOTsWKy3cAvNcT-kA0NSjjX-U?usp=sharing
Thanks,
Chinmay

@mayofaulkner
Copy link
Contributor

Hello!

The 385th channel is the sync channel that contains the 1Hz signal from spikeglx/openephys that can be used to align the probe to other recordings devices. It isn't a problem that this is present as this is accounted for by the channels.rawInd.npy file that only contains the 384 channels that have the neural signal on them.

I've just loaded in your data and looked at the plot with the spectrum across frequency and it seems to be the case that the LFP spectrum is the same across all frequency bands.

Screen Shot 2024-04-05 at 9 12 00 AM

If you look at the raw LFP data is it very noisy? Just looking at the rms LFP plot the units seem to be crazy compared to the sample data...?

Screen Shot 2024-04-05 at 9 19 30 AM

@cspurandare
Copy link
Author

cspurandare commented Apr 7, 2024 via email

@mayofaulkner
Copy link
Contributor

The code in the extract data uses the spikeglx reader module under the hood, which basically used the ADC conversion factor to translate the data from bits into volts. So on your side you should not need to do any conversion. Was your data recorded using spikeglx or openephys?

For the 4 values per channel, I'm not sure I fully understand the question, but the probe plot basically shows the data on the individual channels as they are arranged on the neuropixel probe. Does that clear things up?

@cspurandare
Copy link
Author

cspurandare commented Apr 9, 2024 via email

@mayofaulkner
Copy link
Contributor

Hello,

Okay, let me know if you get to the bottom of the conversion issue.

For the probe plot display, each little rectangle represents an electrode on the shank. For the NP1.0 geometry, the electrodes are arranged in a checkerboard pattern with 96 rows (seperated by 20um) and 4 columns (seperated by 11um). This is basically what that plot is displaying. So the columns are the location of the electrodes in the x direction of the shank.

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