Run MGCAT for Global Sequence Comparison
Created: 2010-03-19 13:42:38
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (2)
Baywatch Solutions |
Team Baywatch |
Titles (1)
Run M-GCAT for Global Sequence Comparison. |
Descriptions (2)
Runs the M-GCAT tool for Global Sequence Comparison. |
Runs the M-GCAT tool for Global Sequence Comparison.M-GCAT: http://alggen.lsi.upc.es/recerca/align/mgcat/intro-mgcat.html |
Dependencies (0)
Inputs (2)
Name |
Description |
fileB |
the second fasta file
|
fileA |
The first fasta file
|
Processors (4)
Name |
Type |
Description |
run_process |
beanshell |
ScriptString command = cmd;StringBuffer sb = new StringBuffer();String result = "";if (command == null || command.equals("")) { throw new RuntimeException("The 'command' port cannot be null.");}Process proc = null;Runtime rt = Runtime.getRuntime();File f = new File("D:/mgcat");try{proc = rt.exec(command,null,f);// Get the input stream and read from itInputStream in = proc.getInputStream();int c;while ((c = in.read()) != -1) { sb.append((char) c);}in.close();} catch(Exception ex) { System.out.println(ex); }result = sb.toString(); |
mgcat_prog |
stringconstant |
ValueD:/mgcat/mgcat.exe mgcat.ini |
read_mgcat_log |
beanshell |
Scriptimport java.io.*;String path ="D:/mgcat/output/mgcat.log";StringBuffer sb = new StringBuffer();try { BufferedReader br = new BufferedReader(new FileReader(path)); String line = br.readLine(); while(line != null) { sb.append(line + "\n"); line = br.readLine(); } br.close();}catch(Exception ex) { System.out.println(ex); }content = sb.toString(); |
set_parameters |
beanshell |
ScriptFile inPath = new File("D:/mgcat/mgcat.ini");File outPath = new File("D:/mgcat/mgcatOut.ini");try { BufferedReader br = new BufferedReader(new FileReader(inPath)); FileWriter fw = new FileWriter(outPath); String line = br.readLine(); while(line != null) { if(line.startsWith("file=") ) { line = "file=" + fileA + "\n"; fw.write( line ); } else if (line.startsWith("file1=")) { fw.write("file1=" + fileB + "\n"); } else { line = line + "\n"; fw.write( line ); } line = br.readLine(); } br.close(); fw.close();}catch(Exception ex) { System.out.println(ex); }try { BufferedReader br = new BufferedReader(new FileReader(outPath)); FileWriter fw = new FileWriter(inPath); String line = br.readLine(); while(line != null) { fw.write(line + "\n"); line = br.readLine(); } br.close(); fw.close();}catch(Exception ex) { System.out.println(ex); } |
Beanshells (3)
Name |
Description |
Inputs |
Outputs |
run_process |
|
cmd
|
result
|
read_mgcat_log |
|
ready
|
content
|
set_parameters |
|
fileA
fileB
cmd
|
cmd
|
Outputs (2)
Name |
Description |
mgcat_console |
Console
|
mgcat_log |
The log file produced by MGCAT
|
Datalinks (7)
Source |
Sink |
set_parameters:cmd |
run_process:cmd |
run_process:result |
read_mgcat_log:ready |
fileA |
set_parameters:fileA |
fileB |
set_parameters:fileB |
mgcat_prog:value |
set_parameters:cmd |
run_process:result |
mgcat_console |
read_mgcat_log:content |
mgcat_log |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment