bahanonu / ciatah

CIAtah (pronounced cheetah): a software package for calcium imaging analysis of one- and two-photon imaging datasets. Documentation: https://git.io/ciatah_docs. Formerly known as calciumImagingAnalysis (ciapkg).
https://git.io/ciatah_docs
MIT License
80 stars 20 forks source link

Dot indexing is not supported for variables of this type #63

Open laopenti opened 3 years ago

laopenti commented 3 years ago

Hello Biafra,

First of all, I would like to thank you for the fantastic job in the Algorithms-based Neuroscience Analysis, it helps me a lot while studying calcium imaging analysis. Although I know nothing about codes, algorithms, Matlab, etc. before Jan. 2021, still I believe I could accomplish more results meaningfully following your amazing Matlab protocols, as its name CIAtah.

However, lately, I got some confusing outputs as below every time when I run obj2 relative commands. Frankly, it has been checked whether it procedurally or manually inappropriate compared with Quick start (command-line) and CIAtah main GUI notes. Sadly, I didnt find any reasons for them. would you please help me to handle all these errors?

Sincerely appreciate your time! Benson Kin

@@@@@@@ Dot indexing is not supported for variables of this type. Error in calciumImagingAnalysis/viewMovie/getProperFrameList (line 738) nMovieFrames = sum(movieDims.z); Error in calciumImagingAnalysis/viewMovie (line 287) [frameListTmp] = getProperFrameList('primary'); Error in calciumImagingAnalysis/runPipeline (line 202) obj.(thisFxn{1}); Error in calciumImagingAnalysis/display (line 817) obj.runPipeline; @@@@@@@

bahanonu commented 3 years ago

@laopenti

Glad to hear! Let me know if anything needs clarifying in the CIAtah user guides.

To help debug this issue, could you let me know the following:

cheers! -Biafra

laopenti commented 3 years ago

Hello Biafra,

Glad to receive your reply so soon. The actual situation that available facilities of my own just as below:

===================== PRE-LOADING MOVIES

1/1: m19 check01 data\2014_04_01_p203_m19_check01\concat_recording_20140401_180333.h5 movie 1/1: data\2014_04_01_p203_m19_check01\concat_recording_20140401_180333.h5 Getting movie info for 1\1: data\2014_04_01_p203_m19_check01\concat_recording_20140401_180333.h5 @@@@@@@ Error using h5infoc The filename specified was either not found on the MATLAB path or it contains unsupported characters. Error in h5info (line 125) hinfo = h5infoc(filename,location, useUtf8); Error in loadMovieList (line 246) hinfo = h5info(thisMoviePath); Error in calciumImagingAnalysis/viewMovie/getProperFrameList (line 732) movieDims = loadMovieList(movieListTmp2,'convertToDouble',0,'frameList',[],'inputDatasetName',obj.inputDatasetName,'getMovieDims',1,'treatMoviesAsContinuous',treatMoviesAsContinuous); Error in calciumImagingAnalysis/viewMovie (line 287) [frameListTmp] = getProperFrameList('primary'); Error in calciumImagingAnalysis/runPipeline (line 202) obj.(thisFxn{1}); Error in calciumImagingAnalysis/display (line 817) obj.runPipeline; @@@@@@@ ImageJ instance ended cleanly

Again, thank you for your patient and advise!

bahanonu commented 3 years ago

@laopenti Thanks for the additional information.

laopenti commented 3 years ago

Hello, Biafra

@@@@@@@ Error using run (line 68) RUN cannot execute the file '_external_programs\cvx_rd\cvx_setup.m'. RUN requires a valid MATLAB script Error in downloadCnmfGithubRepositories (line 53) run(mfileToRun); Error in calciumImagingAnalysis/loadDependencies (line 55) [success] = downloadCnmfGithubRepositories('forceUpdate',forceUpdate); Error in calciumImagingAnalysis/runPipeline (line 202) obj.(thisFxn{1}); Error in calciumImagingAnalysis/display (line 817) obj.runPipeline; @@@@@@@

pwd ans = 'D:\New Files\MATLAB\calciumImagingAnalysis-master'

bahanonu commented 3 years ago

@laopenti Just checked on Win 10 with Matlab 2020b with a fresh download of the ciatah master branch and was able to download movies, view them, and run the setup fine. Do you have admin privileges on the computer you are using? For the CVX setup script and at other instances, will likely need elevated privileges to allow Matlab to run those files and properly create directories.

Emailing a google drive link works, I'll keep an eye out for your email.

What is the size of the file at data\2014_04_01_p203_m19_check01\concat_recording_20140401_180333.h5? The error you're getting happens if a file is corrupt (e.g. not downloaded completely) or the extension does not match the file contents (e.g. if a TIF file ended in .h5).