flatironinstitute / CaImAn-MATLAB

Complete Matlab pipeline for large scale calcium imaging data analysis
GNU General Public License v2.0
252 stars 147 forks source link

Error using get_noise_fft (line 13) Too many output arguments. #97

Open tochenan opened 5 years ago

tochenan commented 5 years ago

Hello Developer,

I am using run_pipeline.m to analyse my video and found the following error message: Error using parallel.FevalFuture/fetchNext (line 217) The function evaluation completed with an error.

Error in run_CNMF_patches (line 121) [idx, value] = fetchNext(future_results);

Error in run_pipeline (line 127) [A,b,C,f,S,P,RESULTS,YrA] = run_CNMF_patches(data.Y,K,patches,tau,0,options); % do not perform deconvolution here since

Error in run (line 91) evalin('caller', strcat(script, ';'));

Caused by: Error using get_noise_fft (line 13) Too many output arguments.

I am running the script on a tif video in matlab 2019.

Many thanks, Mingran

epnev commented 5 years ago

@tochenan If you replace data.Y with just data when you call run_CNMF_patches do you still get the same error? How big is your file?

tochenan commented 5 years ago

@epnev the tif file is 5.25G. I tried your method yesterday and the same error popped up.

Best, Mingran

epnev commented 5 years ago

@tochenan I'm confused. Can you copy the exact error that you get if you pass data instead of data.Y?

tochenan commented 5 years ago

starting resampling starting resampling starting resampling starting resampling Elapsed time is 94.048204 seconds. Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Estimating the noise power for each pixel from a simple PSD estimate...Error using get_noise_fft (line 13) Too many output arguments.

Error in preprocess_data (line 75) [sn,psx] = get_noise_fft(Y,options);

Error in CNMF/preprocess (line 178) [obj.P,obj.Y] = preprocess_data(obj.Y,obj.p,obj.options);

Error in CNMF/fit (line 396) obj.preprocess();

Error in run_CNMF_patches>process_patch_object (line 386) CNM.fit(Y,options,K);

Error in run_CNMF_patches (line 105) parfor i = 1:n_patches

Error in run_pipeline (line 127) [A,b,C,f,S,P,RESULTS,YrA] = run_CNMF_patches(data,K,patches,tau,0,options); % do not perform deconvolution here since

the above is the error I got