-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.h5 file not found after preprocessing (motion correction) step #70
Comments
Hi, hope all is well. To help with this, could you:
As a heads up:
|
Hi, thanks a lot for your answer and for your advice regarding spatial filtering, I will try that out next time! Regarding the version of the package, here is the output :
v3.26.2 In fact, at first I used Ciatah but then I tried the CalciumAnalysisImaging version to see if maybe there was an incompatibility issue between Ciatah and my Matlab version which was older (2017), but the errors are the same in both cases. Here is a link to the log file for a video I tried preprocessing with Ciatah: https://file.re/2021/04/09/20210409094621preprocess/ Thanks again and best wishes |
Hi, thanks a lot for your answer and for your advice regarding spatial filtering, I will try that out next time! Regarding the version of the package, here is the output : 'v3.26.2 In fact, at first I used Ciatah but then I tried the CalciumAnalysisImaging version to see if maybe there was an incompatibility issue between Ciatah and my Matlab version which was older (2017), but the errors are the same in both cases. Here is the log file : Thanks and best wishes |
@rl72, it looks like both input and output HDF5 dataset names are blank, which is causing the HDF5 save function to fail, e.g. see below in the log file you sent: datasetName: [1×0 char]
outputDatasetName: [1×0 char] After creating the CIAtah object (e.g. obj.outputDatasetName = '/1';
obj.inputDatasetName = '/1'; This should allow you to run |
Hi Biafra, Thanks a lot for your input, everything worked out in the end nicely! I ran CNMFe and EXTRACT smoothly, but I noticed that when running EXTRACT through the CIAtah pipeline, it was possible to modify only a few parameters (the essential ones, such as choosing between GPU/CPU, setting the SNR for cell identification, the number of partitions etc) so I was wondering if there was a way to set more advanced parameters to run EXTRACT in CIAtah? Thanks and best wishes |
@rl72 Great! That's good to hear. re: EXTRACT, yep, I was planning to push an update soon, similar to the CNMF-e sub-module, to allow access to more (all) advanced parameters. |
Oh that would be amazing indeed, can't wait to try it out when it is updated then ! On the same topic, I tried running the CIAtah cell sorter on the EXTRACT output (which I ran separately in advance). I used the code provided in the EXTRACT repository but I kept receiving the following error messages in a loop for a very long time until it runs out of memory : @@@@@@@ Error in compareSignalToMovie (line 101) Error in signalSorter>viewMontage (line 2463) Error in signalSorter>chooseSignals (line 981) Error in signalSorter (line 608) Error in signalSorter>chooseSignals (line 1039) Error in signalSorter (line 608) Error in signalSorter>chooseSignals (line 1271) Error in signalSorter (line 608) ans = 'Frame 1/22725' Would you know why is this happening? Thanks a lot! |
@rl72 Did you run |
yes, I ran the following : iopts.inputMovie = M; [inputImagesSorted, inputSignalsSorted, choices] = signalSorter(output.spatial_weights, output.temporal_weights', 'options',iopts); |
Thanks. Can you send the following info:
|
Great, thanks. Looks like |
If the full path of my file is "D:\lumi_data\data_day4\trial.h5", should I run |
Try below and let me know if that works for you. If you run into issues, run iopts.inputMovie = 'D:\lumi_data\data_day4\trial.h5';
iopts.readMovieChunks = 1; % Binary: 1 = read movie from HDD, 0 = load entire movie into RAM
iopts.inputDatasetName = '/1'; CIAtah does not accept filename and HDF5 dataset name (as with EXTRACT currently) as a single string but has separate variables for each (to avoid certain issues that can arise). |
Great! Glad to hear it is working. Let me know if any other questions come up. Those warnings should not affect function, but I'll double check in my copy of 2018b (normally testing in Matlab 2019+ these days) to see if they can be removed. |
Hello,
I have been trying to preprocess a video, and in particular to apply motion correction to it (because I have done the other steps such as downsampling and spatially filtering it in the Inscopix Data Processing Software before exporting it as a .tiff file for motion correction and cell extraction) but I do not find the output .h5 file once the program runs turboreg (I have tried to save the motion corrected and the df/f movies) hence I can't further run cell extraction algorithms. Errors such as these appear :
Error using h5create (line 71)
The value of 'Dataset' is invalid. Expected DATASET to be nonempty.
Error in writeHDF5Data (line 74)
h5create(saveDir,options.datasetname,dataDims,'Datatype',inputClass,'ChunkSize',dataDimsChunkCopy,'Deflate',options.deflateLevel);
Error in calciumImagingAnalysis/modelPreprocessMovieFunction (line 645)
movieSaved = writeHDF5Data(thisMovie,savePathStr,'datasetname',options.outputDatasetName,'addInfo',{options.turboreg,analysisOptionStruct,optionsCopy},'addInfoName',{'/movie/processingSettings','/movie/analysisOperations','/movie/modelPreprocessMovieFunctionOptions'},'deflateLevel',options.deflateLevel)
Error in calciumImagingAnalysis/modelPreprocessMovie (line 37)
obj.modelPreprocessMovieFunction('folderListPath',folderListInfo,'fileFilterRegexp',options.fileFilterRegexp,'datasetName',options.datasetName,'frameList',[]);
Error in calciumImagingAnalysis/runPipeline (line 1582)
obj.(thisFxn{1});
Error in calciumImagingAnalysis/display (line 882)
obj.runPipeline;
@@@@@@@
I am new to this and not sure of what is causing this issue, what could I try to fix this?
Thanks a lot for your support and guidance,
Best wishes
The text was updated successfully, but these errors were encountered: