Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Calling bowtie2 from matlab

1 回表示 (過去 30 日間)
Guy Nir
Guy Nir 2017 年 9 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to run bowtie2 from matlab: [a,b]=unix('bowtie2 -h') the output is: a =127 b='bin/bash not such command' so I copied all the executables to usr/bin and then it gave me: a = 127 b = 'env: perl: No such file or directory'
And in my startup.m I have: setenv('PATH','usr/bin:/usr/local/bin'); Where bowtie2 is defined, and when I type the same bowtie2 command from terminal it works. It used to work in matlab too, in an earlier version, but now i am using 2017a, and it's not working anymore. I would love to get some answers. Thank you

回答 (1 件)

Ramnarayan Krishnamurthy
Ramnarayan Krishnamurthy 2017 年 9 月 21 日
Can you try running bowtie2 from matlab using the 'system' command. That is,
[a,b] = system('bowtie2 -h')
Also, there is a possibility that the startup.m is being shadowed. Try running to check if there are multiple startup files:
which -all startup
  1 件のコメント
Guy Nir
Guy Nir 2017 年 9 月 21 日
Hi Ramnarayan,
Apparently I somehow deleted a backslash from my startup.m, and thus, didn't have PATH well-defined. It works well now!
Thanks, Guy

製品

Community Treasure Hunt

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

Start Hunting!

Translated by