Code Monkey home page Code Monkey logo

Comments (7)

marius10p avatar marius10p commented on August 30, 2024

For now, use ops.stopSourcery to stop it earlier. The default value is 1/20. Sourcery stops on the first iteration which finds less than this fraction of the number of ROIs found on the first iteration.

I will come back with a more robust solution later.

from suite2p.

geffenlab avatar geffenlab commented on August 30, 2024

I think I am getting a similar error - is it related (see below) there is also a warning. I tried adding in ops.stopSourcery but it did not do anything - what kind of value would be good to set it to?
Matlab output:
...
635 total ROIs, err 1.4406, thresh 0.0048
672 total ROIs, err 1.4373, thresh 0.0048
698 total ROIs, err 1.4350, thresh 0.0048
719 total ROIs, err 1.4335, thresh 0.0048

In sourcery (line 137)
In run_pipeline (line 76)
In master_file(line 67)
Warning: Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 3.007762e-10.
734 total ROIs, err 1.4325, thresh 0.0048

UPDATE: I did manage to get the threshold to work but I left this comment here in case the warning message was of any use for you - thanks :-)

from suite2p.

rswilliamson avatar rswilliamson commented on August 30, 2024

What's your SNR like? I've found that this error is normally associated with my lower SNR recordings (more prevalent in deep recordings). A stopSourcery of around 1/10 is usually good enough to alleviate issues.

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

@geffenlab I see that you fixed it by increasing the threshold. It might have been an issue with the conditioning of the matrix inversion in line 137 of sourcery, which I had turned off (what the warning refers to). I turned that back on, so you could try it again.

from suite2p.

geffenlab avatar geffenlab commented on August 30, 2024

I tried 1/10 and I got the same warning (if you leave it going it does not find any ROIs, or just a few weird looking ones). What actually worked was to set the stopSourcery as 1/40...
Marius, I will try with the fix you have implemented on Monday - thanks!

from suite2p.

marius10p avatar marius10p commented on August 30, 2024

A recent update fixes this problem. Closing this issue. Please reopen if there are still problems?

from suite2p.

Kelarion avatar Kelarion commented on August 30, 2024

Hi @marius10p, I've recently run into this problem myself on some older data (using Suite2P downloaded today, and on the 15th). Setting stopSourcery to 1/10 fixed it, but I thought it would be good to mention in case the issue pops up for other people.

-Matteo A

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.