Detect ellipse failures and get votable without ellipse failures
Created: 2012-09-07 13:26:05
It detects if ellipse has failed by checking if the resulting data file exists.
It adds a column (validellipse) that contains 1 if ellipse didn't fail and 0 if ellipse failed.
It returns a votable that contains all the data with the new column and a votable that contains only the rows where ellipse didn't failed.
It uses astrotaverna plugin (http://wf4ever.github.com/astrotaverna/).
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Detect ellipse failures and get votable without ellipse failures |
Descriptions (1)
It detects if ellipse has failed by checking if the resulting data file exists.
It adds a column (validellipse) that contains 1 if ellipse didn't fail and 0 if ellipse failed.
It returns a votable that contains all the data with the new column and a votable that contains only the rows where ellipse didn't failed.
It uses astrotaverna plugin (http://wf4ever.github.com/astrotaverna/). |
Dependencies (0)
Inputs (2)
Name |
Description |
votable |
|
ColumnNameWithDataFile |
|
Processors (11)
Name |
Type |
Description |
List_from_column_2 |
voutils |
|
Concatenate_two_strings_2 |
localworker |
Scriptoutput = string1 + string2; |
Format_conversion |
tpipe |
|
formatTableIn_value |
stringconstant |
Valueascii |
formatTableOut_value |
stringconstant |
Valuevotable |
Cat_n-tables |
tcat |
|
tjoin |
tjoin |
|
DetectFile |
beanshell |
It returns 1 if hte file exists and 0 if the file does not exist. Scriptimport java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
String readFileAsString(String filePath) throws java.io.IOException{
byte[] buffer = new byte[(int) new File(filePath).length()];
BufferedInputStream f = null;
try {
f = new BufferedInputStream(new FileInputStream(filePath));
f.read(buffer);
} finally {
if (f != null) try { f.close(); } catch (IOException ignored) { }
}
return new String(buffer);
}
try{
string = readFileAsString(filePath);
string = "\n1";
}catch (IOExpception){
string = "\n0";
}
|
Select_Rows |
tpipe |
|
validellipse_expression |
stringconstant |
Valuevalidellipse == 1 |
validellipse_name |
stringconstant |
Value# validellipse |
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
DetectFile |
It returns 1 if hte file exists and 0 if the file does not exist. |
filePath
|
string
|
Outputs (2)
Name |
Description |
VotableWithnewColumns |
|
votable_rows_without_errors |
|
Datalinks (15)
Source |
Sink |
votable |
List_from_column_2:voTable |
ColumnNameWithDataFile |
List_from_column_2:ColumnName |
DetectFile:string |
Concatenate_two_strings_2:string2 |
validellipse_name:value |
Concatenate_two_strings_2:string1 |
Concatenate_two_strings_2:output |
Format_conversion:voTable |
formatTableIn_value:value |
Format_conversion:formatTableIn |
formatTableOut_value:value |
Format_conversion:formatTableOut |
Format_conversion:outputTable |
Cat_n-tables:votableList |
votable |
tjoin:votable1 |
Cat_n-tables:outputFileOut |
tjoin:votable2 |
List_from_column_2:list |
DetectFile:filePath |
tjoin:outputFileOut |
Select_Rows:voTable |
validellipse_expression:value |
Select_Rows:filter |
tjoin:outputFileOut |
VotableWithnewColumns |
Select_Rows:outputTable |
votable_rows_without_errors |
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 (1)
(Workflows/Files)
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