Code Monkey home page Code Monkey logo

Comments (7)

marius10p avatar marius10p commented on August 30, 2024

It's great that you did this! Let's continue the conversation in your repo.

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

@syncrostone regarding what parameters to use for a relatively short recording, the following should all be scaled down by the same factor

ops0.Nk0 = 1300; % initial number of clusters
ops0.Nk = 650; % final number of clusters
ops0.nSVDforROI = 1000; % number of SVDs kept for ROI detection

We use these settings for recordings with 100 to 500 cells. I would decide the exact factor (1/2, maybe 1/4?) based on the training data. You can load the Suite2P result file in the GUI to check if cells have been over/under segmented. I could take a look at some of the training datasets.

It's also important to approximately set the expected cell diameter for each FOV. It tolerates a factor of 2 mismatch, but not much more than that

clustrules.diameter = 10; % expected diameter of cells (used for 0.25 * pi/4_diam^2 < npixels < 10_pi/4*diam^2)

from suite2p.

syncrostone avatar syncrostone commented on August 30, 2024

@marius10p I was plotting the data, and the cells looked right sized and not over/under segmented. There are approximately 300 cells in each ground truth set, so I don't think we need to change those factors? Does that sound right?

Or should we change them because the dataset is shorter? I'll post a screenshot from one of the datasets once we have the new data on the website.

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

I have run neurofinder data in the past with Suite2P and I remember over-segmentation problems at the default settings. I think it would have at least been a problem with the old 1-2 minute datasets. Not sure how you are plotting the data, but it was immediately obvious in the suite2P GUI that relatively few cells were active and detected by the algorithm (of the ~300 in the ground truth), and I saw over-segmentation.

from suite2p.

syncrostone avatar syncrostone commented on August 30, 2024

Oh! I dealt with that by thresholding by standard deviation of each neuron after the fact and eliminating empty neurons. Changing those numbers will fix and eliminate the need to threshold?

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

Thresholding on the variance has never worked well for me. I think it has to do with non-homogeneous variance over the field of view, and more importantly neuropil contamination. I would try a smaller number of clusters on this kind of data, and then still applying a (low) threshold, because many ROIs are neuropil.

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

I think it's best if I make my own submission to the challenge, once I add to Suite2P the features which the challenge requires, like pixel trimming. Thanks @syncrostone for making the initial submission, I appreciate it!

from suite2p.

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.