Coder Social home page Coder Social logo

Comments (1)

Julie-Fabre avatar Julie-Fabre commented on July 18, 2024

Hi Sungmin,

I have recorded some ephys data using a neuropixel 1.0 probe for multiple days.
To keep same cell for days, we merged all data into one big file and run kilosort.
When I had a look for bc_qualityMetrics_pipeline.m, in line 20, I need to set the path for .oebin meta file.
However, unfortunately, as the data is merged, I feel like I need to make another .oebin file for merged data set
Do you have any idea or way to make a .oebin file for multiple recordings? or this program can only run in single data recording.

The meta file (in your case oebin) is only used to extract the gain_to_uV scaling factor, which is used to turn the raw mean waveforms bombcell extracts into units of microVolts. You can specify any of the oebin files for this (or create a separate one if you prefer - it needs to contain the value "bit_volts": xxx. Usually it is "bit_volts": 0.19499999284744263.

Another question is that sometimes we cut some bad channels from recorded data.
In this case, do I need to change some setting?

If you remove bad channels from your raw data, you will need to update the value param.nChannels. If it is just in the output of your spike sorter, you can simply use the inputs in bombcell with the bad channels removed. Make sure in the function [qMetric, unitType] = bc_runAllQualityMetrics(param, spikeTimes_samples, spikeTemplates, ... templateWaveforms, templateAmplitudes, pcFeatures, pcFeatureIdx, channelPositions, savePath) that size(templateWaveforms,3) == size(channelPositions,1).

P.S. If you are trying to track cells over days, you might also be interested in unitMatch preprint here, code here. It uses waveform features of units to match them across days, with no need to stitch any recordings together.

Best wishes,
Julie

from bombcell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.