Comments (7)
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.
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.
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.
@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.
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.
A recent update fixes this problem. Closing this issue. Please reopen if there are still problems?
from suite2p.
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)
- Python executable pointing to python2 HOT 1
- NameError: name 'ndimage' is not defined
- Undefined function or variable 'Fbase'.
- "NameError: name 'shutil' is not defined, line 231 "shutil.copy(classorig, classfile)" in "roi_detect _and_extract(ops)
- Error in reg2p: array exceeds maximum array size preference
- running suite2p with GUI on GPUs HOT 1
- using "look_one_level_down" doesn't use "bad_frames.npy"
- Input to Suite2P
- Merging ROIs in suite2P matlab version HOT 1
- Interpreting Deconvolution Results HOT 4
- Enquiry regarding diameter of ROI HOT 1
- Cannot set up batch processing
- saving registered uint16 data
- GUI error
- deconvolution_standalone2 not standalone
- tau value for GCaMP8 HOT 2
- combine sbx files HOT 1
- contiguous scanning ROIs HOT 1
- multiplane_parallel in an HPC (Slum) HOT 1
- Transposing F matrix in spike deconvolution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from suite2p.