Running .exe with system()

5 ビュー (過去 30 日間)
Iene Rutten
Iene Rutten 2016 年 4 月 8 日
回答済み: Fangjun Jiang 2016 年 4 月 8 日
Hi everybody!
I'm trying to run RNAfold.exe with the matlab system command.The command line call is as follows:
RNAfold -p -d2 --noLP -P dna_mathews.par --noconv < sequence1.fa > sequence1.out
I tried to obtain the same in matlab using the following code:
[status, result]=system(['RNAfold.exe <', 'sequence1.txt'], '-echo');
It works but only partially. I can input the system with the correct file but not the specified options such as for example the parameters that should be used (e.g. dna_mathews.par).
I would like to know if it's possible to only input the file but also the options. Can anyone help me with this?
Thanks in advance!
Iene
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2016 年 4 月 8 日
Did you try the whole string that is used in Command line
system('RNAfold -p -d2 --noLP -P dna_mathews.par --noconv < sequence1.fa > sequence1.out')
Iene Rutten
Iene Rutten 2016 年 4 月 8 日
Thank you for you answer but unfortunately yes and the error is:
Error using system
Unrecognized option: -p -d2 --noLP -P dna_mathews.par --noconv < sequence1.fa > sequence1.out

サインインしてコメントする。

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2016 年 4 月 8 日
Try this:
1. Put this line into a text file called input.txt
-p -d2 --noLP -P dna_mathews.par --noconv < sequence1.fa > sequence1.out
2. Run this in MATLAB
system('RNAfold < input.txt')

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by