[MERFISH报错合集]Error5: codebook = fastaread(codebook);
一句话解释:
fastaread是工具箱Bioinformatics Toolbox的内置函数。
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
测试MERFISH后续分析的脚本./example_scripts/analysis_script.m时出现报错提示:
Error using CodebookToMap (line 54)
The provided path is not to a valid if !fasta file.
定位到代码错误的地方发现内容如下
if ischar(codebook)
if ~exist(codebook, 'file')
error('matlabFunctions:invalidArguments', 'The provided path is not to a valid file.');
else
try
codebook = fastaread(codebook);
catch
error('matlabFunctions:invalidArguments', 'The provided path is not to a valid if !fasta file.');
end
end
end
然后发现matlab根本找不到这个函数

我一开始以为这个是代码的自定义函数,文件没下载回来。浏览器搜索后发发现函数fastaread是Bioinformatics Toolbox 这个工具箱里的函数。所以应该先重装这个工具箱。

浙公网安备 33010602011771号