Question: Calling muscle as a Java process
0
Bioaln • 300 wrote:
Hello. I'm developing a Java application, which at some point calls a MSA algorithm. Currently, I'm using muscle. I'm trying to call this process from within java app, there are no errors, yet there is no output! Is there a syntax problem I am not aware of?
try { System.out.println("Opening muscle analysis.."); Runtime runTime = Runtime.getRuntime(); Process process = runTime.exec(new String[]{ "muscle", "-in","test1.fasta", "-out","out12.afa"} ); System.out.println("Closing.."); process.destroy(); } catch (IOException e) { e.printStackTrace(); }
Thank you very much
ADD COMMENT
• link
•
modified 3.3 years ago
by
Pierre Lindenbaum ♦ 116k
•
written
3.3 years ago by
Bioaln • 300
Following code works defintely:
How to call it: execute(new String[]{"muscle","-in", "input.fa" , "-out" , "output.fa"});