Cannot run system commands from matlab macOS catalina; zsh:1: command not found: blastp

조회 수: 44 (최근 30일)
I am trying to run the bioinformatics software blast+ from within matlab environment.
>> addpath("/usr/local/ncbi/blast/bin")
>> ! blastp -h
zsh:1: command not found: blastp
The software runs fine when I run it from the terminal.
Initially I tried to run it with the system(command) function but it was not working. As suggested on other posts I tried to add it to the matlab path but still Matlab R2020b cannot locate it. Any suggestions?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 30일
The command addpath() add the folder to MATLAB's path. ! or system() do not use MATLAB's path. You need to use setenv() to change the PATH variable as shows here: https://www.mathworks.com/matlabcentral/answers/10451-how-do-i-add-to-the-path-of-system
  댓글 수: 9
Walter Roberson
Walter Roberson 2021년 8월 4일
It would be better to replace that link with an absolute link to /usr/local/Cellar/airspy/1.0.10/bin/airspy_info
Michael
Michael 2021년 8월 4일
Okay. Thanks. I didn't make the link. It was created when I installed the package with homebrew. Your solution to the related issue is getting me along without needing to noodle with this link. Thanks so much!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by