MouseLand / Kilosort

Fast spike sorting with drift correction for up to a thousand channels
https://kilosort.readthedocs.io/en/latest/
GNU General Public License v3.0
457 stars 238 forks source link

170-190 out of 383 channels have low signals... #198

Closed Pusm closed 4 years ago

Pusm commented 4 years ago

First of all, thank you for developing great software. Maybe this is not due to kilosort problem, but to my recording quality... so I should apologize to ask here. Could you see the attached image '100ms_data_after_CAR'?? 110th-240th channels seem to have low voltage than others.

Using Neuropixels 1.0, recordings were made under anesthesia (chlorprothixene 1 mg / kg) from the mouse visual cortex. I recorded from a total of 4 locations with 3.8mm depth (SpikeGLX settings were APx500, LFPx250 , and AP high pass filter 300 Hz. Ground & Reference-soldered External reference was used. External reference was soldered to Ag ball and inserted into cerebellum.) Using Kilosort2 with the default settings, in three of the four recordings, lump-like 170-190 out of 383 channels were set as bad channels and excluded from analysis. The number of single units (that is, KSLabel='good') per one recording site is also below 130. I noticed that by changing minFR from 0.1 to 0, all channels can be analyzed.

However, what I am concerned about is the small number of putative action potentials, below -6SD. (I read your nice matlab code in pre-processing phase) Possible reasons are maybe below: -relatively deep anesthesia -I dont how to distinguish agar vs cortex during recording, so perhaps this low signal channels are in agar?? (Note that I got diffrent bad channels from another recording sites, indicating this problem is not due to probe itself but from mice/agar) -any structure (maybe thalamus or hippocampus??) which has low signals -electrical noise -broken probe or HS -something wrong about SpikeGLX or Kilosort2 setting due to my misunderstanding

Screenshots are my rawdata before and after CAR. I'm a beginner in electrophysiology and don't know if this is noisy. Could you give me any advice?

100ms_data_before_CAR 100ms_data_before_CAR_plot 100ms_data_before_CAR 10ms_data_before_CAR 10ms_data_before_CAR_plot 10ms_data_before_CAR

100ms_data_after_CAR 100ms_data_after_CAR 100ms_data_after_CAR_plot 10ms_data_after_CAR 10ms_data_after_CAR_plot 10ms_data_after_CAR 100ms_data_after_CAR_anothersite

another site data after CAR 10ms_data_after_CAR_plot_anothersite 10ms_data_after_CAR_anothersite 100ms_data_after_CAR_anothersite

100ms_data_after_CAR_plot_anothersite

nsteinme commented 4 years ago

Looks ok to me - In both of your last two plots we can see spikes around channels 10-20 (i.e. near the top of the plot). Those spikes look good to me and the data don't appear too noisy. Might just be that there was very low activity due to the anesthetic (I don't know anything about that particular anesthetic), or if there was bleeding or too much compression during insertion. Suggest to look at the kilosort results in phy - assuming they look ok there too I think you can proceed with analysis, or try more recordings.

On Sat, Apr 4, 2020 at 12:02 PM Pusm notifications@github.com wrote:

First of all, thank you for developing great software. Using Neuropixels 1.0, recordings were made under anesthesia (chlorprothixene 1 mg / kg) from the mouse visual cortex. I recorded from a total of 4 locations with 3.8mm depth (SpikeGLX settings were APx500, LFPx250 , and AP high pass filter 300 Hz. Ground & Reference-soldered External reference was used. External reference was soldered to Ag ball and inserted into cerebellum.) Using Kilosort2 with the default settings, in any of the four recordings, 150-200 out of 383 channels were set as bad channels and excluded from analysis. The number of single units (that is, KSLabel='good') per one recording site is also below 100. I noticed that by changing minFR from 0.1 to 0, all channels can be analyzed. However, what I am concerned about is the small number of putative action potentials, below -6SD. (I read your nice matlab code in pre-processing phase) Possible reason are maybe below:

  1. electrical noise
  2. relatively deep anesthesia
  3. broken probe or HS
  4. something wrong about SpikeGLX or Kilosort2 setting due to my misunderstanding

Screenshots are my rawdata before and after CAR. I'm a beginner in electrophysiology and don't know if this is noisy. Could you give me any advice? [image: 100ms_data_before_CAR_plot] https://user-images.githubusercontent.com/23078454/78458934-357f8680-76f0-11ea-80a2-7f37f5ea75cc.png [image: 100ms_data_before_CAR] https://user-images.githubusercontent.com/23078454/78458938-39aba400-76f0-11ea-85ce-8af5137c9918.png [image: 10ms_data_before_CAR_plot] https://user-images.githubusercontent.com/23078454/78458940-3adcd100-76f0-11ea-9e30-01d46df15de1.png [image: 10ms_data_before_CAR] https://user-images.githubusercontent.com/23078454/78458941-3b756780-76f0-11ea-84a3-e6df2f30e93d.png

[image: 100ms_data_after_CAR] https://user-images.githubusercontent.com/23078454/78459172-2994c400-76f2-11ea-99a0-a7968e389a21.png [image: 10ms_data_after_CAR] https://user-images.githubusercontent.com/23078454/78459168-2568a680-76f2-11ea-9a59-84649038a909.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MouseLand/Kilosort2/issues/198, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5IP7LIIUJMGZPKAXWGRLRK575JANCNFSM4L65DDZA .

Pusm commented 4 years ago

Thank you Nick for replying. I was very relieved to hear from you who have a lot of experience. As you told me, I will try to record data this way for a while. I am very grateful for your altruistic spirit and wish you success :D