LeonieZ / ACCEPT

The ACCEPT image analysis algorithm made for the Cancer-ID Project.
GNU General Public License v3.0
10 stars 5 forks source link

Images process error #5

Open Wistar1308 opened 6 years ago

Wistar1308 commented 6 years ago

Hello I tried this software and faced some problem. When I ran it, it appears some error messeges(below). I haven't got a clue about that. :( I would appreciate it if you would tell me how to solve the errors. Thanks.

Cell contents reference from a non-cell array object.
Error in Default/preload_tiff_headers (line 180)
                this.sample.imageSize=[this.sample.tiffHeaders{1,1}(1).Height this.sample.tiffHeaders{1,1}(1).Width
                numel(this.sample.channelNames)];
Error in Default/new_sample_path (line 70)
            this.preload_tiff_headers(samplePath);
Error in IO.load_sample_path (line 199)
                loader.new_sample_path([sampleList.inputPath filesep sampleList.sampleNames{sampleNr}]);
Error in Base/run (line 127)
                        sample = IO.load_sample_path(this.sampleList,k);
Error in gui_main/process (line 198)
            base.run(); 
Error while evaluating UIControl Callback
Wistar1308 commented 6 years ago

Hey I had reviewed my problem, I guessed that I made some mistake in filename. So, I have tried to correct my filename and reput them in seperated folder(every sample). However, MATLAB showed this error. I am not sure if my filename or folder structure offend matlab code. I haven't used Matlab before. :( Would you do me a favor? Thank you so much.


Process samples...
15:57:43: Sample NR1 failed to load
15:57:43: Sample NR1 is reprocessed
Error using dir
Characters adjacent to a ** wildcard must be file separators.
Error in Default/preload_tiff_headers (line 163)
          tempImageFileNames = dir([this.sample.imagePath filesep '*' this.sample.channelNames{j} '*.tif']);
Error in Default/new_sample_path (line 70)
          this.preload_tiff_headers(samplePath);
Error in IO.load_sample_path (line 199)
          loader.new_sample_path([sampleList.inputPath filesep sampleList.sampleNames{sampleNr}]);
Error in Base/run (line 127)
          sample = IO.load_sample_path(this.sampleList,k);
Error in gui_main/process (line 169)
          base.run(); 
Error while evaluating UIControl Callback
LeonieZ commented 6 years ago

Hi, could you try if the same error occurs if you delete everything in your results folder (especially the folder Full Detection_0.1)? And do you have now separate folders for each sample and in each folder the csv file specifying the channel names?

Wistar1308 commented 6 years ago

Hello Leonie I followed what you said, yet it still showed errors. problem Do I set the channels wrongly? Or there are other rules in filename I missed? Thank you!

Process samples... Warning: Variable names were modified to make them valid MATLAB identifiers. The original names are saved in the VariableDescriptions property. 17:08:21: Sample NR1 failed to load 17:08:21: Sample NR1 is reprocessed Warning: Variable names were modified to make them valid MATLAB identifiers. The original names are saved in the VariableDescriptions property. Cell contents reference from a non-cell array object. Error in Default/preload_tiff_headers (line 180) this.sample.imageSize=[this.sample.tiffHeaders{1,1}(1).Height this.sample.tiffHeaders{1,1}(1).Width numel(this.sample.channelNames)]; Error in Default/new_sample_path (line 70) this.preload_tiff_headers(samplePath); Error in IO.load_sample_path (line 199) loader.new_sample_path([sampleList.inputPath filesep sampleList.sampleNames{sampleNr}]); Error in Base/run (line 127) sample = IO.load_sample_path(this.sampleList,k); Error in gui_main/process (line 169) base.run(); Error while evaluating UIControl Callback