Home
Kepler Scientific Workflows
Contents
1. _ All Ontologies and Folders Ea gt g Components b Projects gt Statistics gt Actors gt Directors gt Opendap Integrate n gt R 7 Integrator d n2 b nl n2 if fH This model shows the solution to the classic Lotka Volterra H predator prey dynamics model It uses the Continuous Time on domain to solve two coupled differential equations one that models se the predator population and one that models the prey Leren za population The results are plotted as they are calculated showing m E both population change and a phase diagram of the dynamics Rich Williams 2003 NCEAS viai Figure 8 The Lotka Volterra workflow in the Kepler interface 6 2 Running an Existing Scientific Workflow To run any existing scientific workflow 1 Open the desired workflow 2 From the Toolbar select the Run button gt 3 The workflow will execute and produce the specified output OR 1 Open the desired workflow 17 2 From the Menu bar select Workflow then Runtime Window A Run window will appear Figure 9 If the workflow has parameters they will appear here 3 Adjust the parameters as needed and then click the Go button 4 The workflow will execute and produce the specified output During workflow execution you may select the Pause Resume or Stop buttons K file C kepler 1 0 0beta3 demos gett arted 02 LotkaVolterraPredatorPrey xml Joe File
2. cccccssssssesseseeeeeeeens 29 6 5 2 Example 6 Creating a Simple Workflow Using Local Data 0 31 Te Sample Scientific Workflows seereis anneni a a neii 32 7 1 Sample Workflow 1 Simple Statistics 2 0 ccsceccccccceeeceeseeeeeeceeeeeeaaeeeees 32 7 2 Sample Workflow 2 Linear Regression ccccccccccssssssssssssseeeeeecceeeeeeeeeeeeeaaaas 35 Tos Sample Workflow 3 Web Service moreninio a 40 7 4 Sample Workflow 4 XML Data Transformation ee0seeeeeeennessseseeeeessssseee 43 7 5 Sample Workflow 5 Execute an External Application from Kepler CE xXtermall xecuuOnaClOn aerun iyi tise ecard E dae 46 Ce IO Pe UI itachi cise castorate Gerardo a cic A E 49 8 1 Ptolemy II The Foundation of Kepler ccccssssssesssseeeseeeeeeeeeeeees 49 See AClOrREICICICS aceite TOE eae eee 49 1 Introduction The Getting Started Guide introduces the main components and functionality of Kepler and contains step by step instructions for using modifying and creating your own scientific workflows The Guide provides a brief introduction to the application interface as well as to application specific terminology and concepts Once you are familiar with the general principles of Kepler we recommend that you work through a couple of the sample workflows covered in Section 7 to get a feel for how easy it is to use and modify workflow components and how components can be combined to form powerful workflows 1 1
3. lt ANDO 09 XMLDataTransformation XML Entry Display eco ai 47a 38c 375 This workflow demonstrates the use of the data tranformation actors to process a genetic sequence The sequence is displayed in three different ways first in its native format XML second as a sequence element that has been extracted from the XML format and third as an HTML document that might be used for display on a web site Both of the latter two operations are performed using a composite actor that hides some of the complexity of the underlying operation These composites can be thought of as sub workflows that execute D a potentially complex set of tasks when called 1 cacctggaga ai 61 caagtgattt aatttcagct gatt 121 tttggnatct ggagacagga gi iI lt SEQUENCE gt lt DDBJXML gt Author Ilkay Altintas May 2006 SDSC aae a a a a e 4 gt 1 Z viai execution finished Figure 32 The results of the XML Data Transformation Workflow 45 NOTE To add an annotation to your workflow drag and drop the Annotation actor onto the Workflow canvas Double click the default text Double click to edit to customize the annotation 7 5 Sample Workflow 5 Execute an External Application from Kepler ExternalExecution actor The ExternalExecution actor can be used to launch an external application from within a Kepler workflow The actor can pass values to the application and return values that can be used or displayed
4. 2000 10 2000 10 File Reader 2000 10 2000 10 2000 10 2000 10 2000 10 Display NNN Ne lt Figure 21 Using and displaying local data in a workflow NOTE When creating a workflow remember that the limitations of the data determine which processing components are appropriate 7 Sample Scientific Workflows This section examines a small set of sample scientific workflows that come standard with Kepler and provides step by step instructions for creating these workflows 7 1 Sample Workflow 1 Simple Statistics Summary Statistics O0 StatisticalSummary xml Detailed This workflow calculates the mean standard deviation and variance of Description a set of numerical values The Constant actors contains the input data an array of values 1 2 3 4 5 6 7 8 9 10 These data are sent to the SummaryStatistics actor which calculates the statistics and then outputs the results through its output ports Results are displayed by three TextDisplay actors Assumptions The SummaryStatistics actor is a special adaptation of the RExpression actor To run this workflow R a language and environment for 32 statistical computing must be installed on the computer running the Kepler application SDF Director Data is generated in the Constant actor Constant SummaryStatistics Display Parameters SDF Director iterations 1 Constant value 1 2 3 4 5 6 7 8 9 10 The Summary Statistics workflow takes a
5. 3 Click the Search button The search may take several moments You may be prompted for log in credentials If so enter your user and password information or click Login Anonymously When the search 1s complete a list of search results 1 e Data actors will be displayed in the Components and Data Access area 4 To use one or more data actors in a workflow simply drag the desired actors to the Workflow canvas 26 Unnamed1 elakeQP les somo 6 a Components Data Outline gt Workflow Search Data Qatos meteorologicos Search Sources Cancel Datos Meteorologicos Datos gt 1 results returned Datos eorologicos gt Figure 16 Searching for and locating Datos Meteorologicos NOTE To configure the data search click the Sources button Select the sources to be searched and the type of documents to be retrieved Information about a Data actor can be revealed in three ways 1 on the Workflow canvas roll over the Data actor s data output ports to reveal a tool tip containing the name and type of data output by each port 2 right click the Data actor and select Get Metadata to open a window containing more information about the data set 3 right click the data actor and select Preview from the drop down menu to preview the data set Figure 17 Zi eorologicos Configure Actor Customize Name Configure Ports Configure Units Open Act
6. 3 Double click the install file to open the install wizard We recommend that you quit all programs before continuing with the installation 4 The Kepler installer displays a status bar as the installation progresses 3 Starting Kepler To start Kepler follow the instructions for your platform 3 1 Windows and Macintosh Platforms To start Kepler on a PC double click the Kepler shortcut icon on the desktop Figure 2 Kepler can also be started from the Start menu Navigate to Start menu gt All Programs and select Kepler to start the application On a Mac the Kepler icon is created under Applications Kepler x y The icon can be dragged and dropped to the desktop or the dock if desired The main Kepler application window opens Figure 3 From this window you can access and run sample and existing scientific workflows and or create your own custom scientific workflow Each time you open an existing workflow or create a new workflow a new application window will open Multiple windows allow you to work on several workflows simultaneously and compare copy and paste components between workflows 3 2 Linux Platform To start Kepler on a Linux machine use the following steps 1 Open a shell window On some Linux systems a shell can be opened by right clicking anywhere on the desktop and selecting Open Terminal Speak to your system administrator if you need information about your system 2 Navigate to the directory in wh
7. Control Control actors do not have a persistent family symbol These actors are used to control workflows e g stop pause or repeat Data File Data File Access actors do not have a Access persistent family symbol Actors belonging to this family read write and query data The icon displayed here is a data write icon 13 i ae Name Pe a i naain Data Processing actors aama disassemble and update data Display Display actors are indicated by vertical bars Actors belonging to this family output the workflow in text or graphical format File File Management actors do not have a Management persistent family symbol Actors belonging to this family locate or unzip files for example The icon displayed here is a directory listing 1 GAMESS GAMESS actors are used for computational chemistry workflows General Actors that don t fit into one of the other families fall into the General family General actors include email file operation and transformation actors for example The icon displayed here is a filter icon GIS Spatial GIS Spatial actors are used to process geospatial information Image Image Processing actors are used to Processing manipulate graphics files Logic actors have no persistent family symbol Actors in this family include Boolean switches and logic functions The icon displayed here is an equals icon Math actors have no persistent family symbol Actors in this family include
8. What is Kepler Kepler is a software application for the analysis and modeling of scientific data Kepler simplifies the effort required to create executable models by using a visual representation of these processes These representations or scientific workflows display the flow of data among discrete analysis and modeling components Figure 1 K File Tools Help 5 5 SDF Director File Tools Help Constant 3 0276503540975 1 2 3 4 5 6 7 8 9 10 Figure 1 A simple scientific workflow developed in Kepler Kepler allows scientists to create their own executable scientific workflows by simply dragging and dropping components onto a workflow creation area and connecting the components to construct a specific data flow creating a visual model of the analytical portion of their research Kepler represents the overall workflow visually so that it is easy to understand how data flow from one component to another The resulting workflow emailed to colleagues and or published for sharing with colleagues worldwide Kepler users with little background in computer science can create workflows with standard components or modify existing workflows to suit their needs Quantitative analysts can use the visual interface to create and share R and other statistical analyses Users need not know how to program in R in order to take advantage of its powerful analytical features pre programmed Kepler components can simply be dragg
9. PM gt 05 LinearRegression xml Friday February 1 2008 8 10 PM gt 06 WebServicesAndDataTransformation xml Thursday May 22 2008 3 02 PM gt 07 CommandLine_1 xml Thursday May 22 2008 3 02 PM gt 08 CommandLine_2 xml Thursday April 17 2008 11 39 AM HelloWorld class Tuesday January 22 2008 12 05 PM gt HelloWorld jar Monday January 28 2008 2 58 PM j HelloWorld java Tuesday January 22 2008 12 05 PM Bi mollusc_abundance txt b gt readingdata xml Tuesday February 23 2010 4 15 PM species distribution jpg Friday May 19 2006 4 53 PM File Format All Files B Cancel Select Figure 20 Configuring the File Reader actor to use data from your local machine 31 8 Click the Commit button at the bottom of the Edit Parameters for File Reader dialog box The actor is now configured to read the specified file 9 In the Components tab search for Display Select the Display actor and drag it onto the Workflow canvas to the right of the File Reader actor 10 Connect the output port of the File Reader actor to the input port of the Display actor 11 From the Toolbar select the Run button A pop up window will appear displaying the contents of the data file in tabular format Figure 21 12 From the Menu bar select File then Save When prompted name the newly created workflow readingdata SDF Director K 03 ImageDis play Display ole File Tools Help 2000 10
10. TimedPlotter Kei Wo errorTolerance le 6 4 0 valueResolution 1e 8 3 0 synchronizeToRealTime F 30 ODESolver ExplicitRK45Solver sal oe breakpointODESolver DerivativeResolver l run headLength 0 1 2 0 class ptolemy domains ct kernel CTMixedSignalDirector les semantic ypenn urn lsid localhost onto 1 1 Director 10 execution finished Figure 12 Graphs output by the Lotka Volterra model with adjusted parameters 6 3 Editing an Existing Scientific Workflow There are two ways to edit an existing scientific workflow e substitute a different data set for the current data set or e substitute one or more analytical processes in the workflow with other analytical processes e g substitute a neural network model actor for a probabilistic model actor Before substituting data or processes you must understand the required inputs and outputs of the actors involved NOTE To see a high level description of an actor right click that actor to display a menu select Documentation then Display Figure 13 A dialog box containing a description of the main function of the actor and its required inputs and output appears When finished with this dialog close the window 25 ReadTable Configure Actor Customize Name Configure Ports Configure Units Open Actor Documentation Wk itii Customize Listen to Actor ARD t Remove Customization Suggest Semantic Type Annotation Save Archive K
11. Unnamed1 4 Open 20 Tag workflow select or type tag and press enter a Q Open MoML gt gt A On mi z Componer Open MoML URL Workflow eres Close AW earch Compo caye 925 Q Save As e Export Advanced l Print P All Ontologie Exit gt Components T gt f Projects Statistics Actors C Dataturbine C Directors Opendap E R YY YV YV Y SF 0 results found Figure 7 The Kepler File menu 3 Double click a workflow file to open it The workflow will appear in the Workflow canvas of the application window 6 1 1 Example 1 Opening the Lotka Volterra Workflow 16 In this example we will open a specific workflow the classic predator pray model the Lotka Volterra workflow To open this workflow 1 From the Menu bar select File then Open MoML A standard file dialog box will appear 2 Navigate to the getting started directory and locate the file named 02 LotkaVolterraPredatorPrey xml 3 Double click the 02 LotkaVolterraPredatorPrey xml file The Lotka Volterra workflow appears in the Workflow canvas of the application window Figure 8 Kepler File Edit View Workflow Tools Window Help 4 A Ce Charge 0 0O00 R ___file Users staggs keplerworkspace_ke arted 02 LotkaVolterraPredatorPrey xml Taname m P cn Components _ Data Outline gt Workflow Search Components CT Director Timed Plotter Advanc pg Sources
12. by downstream actors In order to use the ExternalExecution actor the invoked application must be on the local computer and in some cases configured appropriately In this section we will look at several examples of workflows that use the ExternalExecution actor Name Command Line 1 Workflow 07 CommandLine_ xml Detailed The 07 CommandLine_1 xml workflow uses Kepler s Description ExternalExecution actor to execute the HelloWorld Java application that is shipped with Kepler The actor outputs the application s return which is displayed by a Display actor The HelloWorld Java application is installed on the local machine in the getting started directory Actors Constant actor CommandLine CommandLineExec and Display Parameters CommandLineExec actor directory WorkingDir waitForProcess parameter is selected The Command Line workflow uses Kepler s ExternalExecution actor to execute the HelloWorld application that ships with Kepler The HelloWorld application is a simple Java program that outputs a string consisting of the text Hello plus a variable usually a user name and by default the string Kepler User The ExternalExecution actor waits for the HelloWorld application to finish executing and then returns the application output which is displayed by a Display actor 46 The ExternalExecution s directory parameter is configured to the location of the HelloWorld application All other parameters are left
13. by function e g Director or Filter Actor To search for components 1 Inthe Components and Data Access area to the left of the Workflow canvas select the Components tab 2 Type in the desired search string e g File Copy 3 Click the Search button or hit Enter When the search is complete the search results are displayed in the Components and Data Access area The search results replace the default list of components You may notice multiple instances of the same component because components are arranged by category the same component may appear in multiple places in the search results 4 To use one or more processing components in a workflow simply drag the desired components to the Workflow canvas 28 5 To clear the search results and re display the list of default components click the Cancel button NOTE If you know which component you want to use and its location in the Component library you can navigate to it directly and then drag it to the Workflow canvas 6 5 Creating a Basic Scientific Workflow One of the strengths of Kepler is the ability to design create and save your own executable workflows The general steps in creating a workflow are as follows Create a conceptual paper or other medium model of your scientific workflow Open the Kepler application Map the data and actor components available in Kepler to your conceptual model Select a director for your workflow and dra
14. list of numbers calculates the mean variance and standard deviation and displays the results This workflow highlights the ease and functionality of Kepler To run this workflow R a language and environment for statistical computing must be installed on the computer running the Kepler application R is included with the full Kepler installation for Windows and Macintosh R is not included with Kepler s Linux installer To create this workflow from scratch open a new blank workflow from the File menu File gt New Workflow gt Blank and follow the steps below 1 In the Components Data Access and Outline area select the Components tab 2 Search for the SDF Director and drag and drop it to the Workflow canvas 3 Configure the SDF Director by right clicking it and selecting Configure Director In the Edit Parameters for SDF Director window set the iterations parameter to 1 and click Commit 4 Search for the Constant actor and drag and drop it to the Workflow canvas The Constant actor can be found under Components gt Data Input gt Workflow Input gt Constant 5 Configure the Constant actor by right clicking the actor and selecting Configure Actor In the Edit Parameters for Constant window set the value field to 1 2 3 4 5 6 7 8 9 10 and click Commit Note The braces are needed Curly braces designate an array in Kepler 6 Search for the SummaryStatistics actor and drag and drop it to the Workflow canvas
15. view Workflow Tools Window Help leas at fe ES XY Plotter att Model parameters 40 ii 2 39 a 0 1 b 0 1 30 d ah 25 Director parameters 20 timeResolution 1E 10 14 tartTime startTime 0 0 10 stopTime 1000 initStepSize 0 1 minStepSize ies 0 1 2 3 4 5 6 TA 8 g 10 maxStepSize k K le Eg ij TimedPlotter Kei ot maxIterations 20 errorTolerance 1e 6 40 valueResolution 1e 8 35 synchronizeToRealTime F 30 ODESolver ExplicitRK45Solver T breakpointODESolver DerivativeResolver run headLength 0 1 20 class ptolemy domains ct kernel CTMixedSignalDirector 15 semantic Type000 urn lsid localhost onto 1 1 Director 10 5 0 0 0 0 1 0 2 0 3 0 4 0 5 0 6 D 0 8 0 9 1 0 x10 Figure 9 The Runtime window displaying the Lotka Volterra workflow Click the Go button to run the workflow Director and model parameters can be edited in the Runtime window Output is displayed in the window as well 6 2 1 Example 2 Running the Lotka Volterra Workflow with Default Parameters The Lotka Volterra model uses the continuous time domain 1 e a CT Director in Kepler to solve two coupled differential equations one that models the predator population and one that models the prey population The results are plotted as they are calculated showing both populations change and a phase diagram For more information about the model see Section 6 2 2 To run the Lotka Volterra workflow 1 Open the workflow file name
16. 7 Locate the correct output ports of the SummaryStatistics actor by right clicking the actor and selecting Configure Ports Figure 22 8 Inthe Configure ports for SummaryStatistics dialogue box under the Show Name column click the check box for xmean xstd and xvar Click Commit to save your changes The port names for the xmean xstd and xvar outputs will now display on the Workflow canvas making it easier to connect the proper ports 33 Configure Actor Customize Name Configure Units ve Configure ports for SummaryStatistics Open Actor ame Input Ou Multi Type Direction Show Name Hide 30 mer ti ile ry esist i viwa Ipupa E pr r a geohicsFiename O DEFALI a Listen to Actor uput l ve ee E a E DEFAULT a Suggest ye v A DEFAULT g Lj Semantic Type Annotation pais Ea DEFAULT Y oO aT Save Arch ve KAR _ ror Ai Upload to Repository Figure 22 Displaying port names 9 Connect the output of the Constant actor to the input port of the SummaryStatistics actor 10 Search for the text Display actor and drag and drop that to the Workflow canvas three times Note the second actor is named Display2 and the third actor is named Display3 11 Customize the name for the three text Display actors by right clicking each and selecting Customize Name In the Rename Text Display dialogue box for the Display actor type Mean and click Commit to save your changes Name the Displ
17. AR Upload to Repository View LSID Preview Appearance lt Figure 13 Displaying actor documentation To edit an existing scientific workflow l 2 or Open the desired workflow Identify which workflow component is the target for substitution Select the target component data actor or processing actor by clicking it The selected component will be highlighted in a thick yellow border Press the Delete key on your keyboard The highlighted component will disappear from the Workflow canvas From the Components Data Access and Outline area drag either an appropriate data or processing actor to the Workflow canvas Connect the appropriate input and output ports Run the workflow From the Menu bar select File then Save or Export to save the workflow as desired to a KAR or MoML file as desired 6 3 1 Example 4 Editing Substituting Analytical Processes in the Image J Workflow In this example we will show how two different actors can perform the same function in a workflow We will work with the Image Display workflow 03 ImageDisplay xml found in the getting started directory and we will substitute the Browser Display actor for the JmageJ actor Both actors will display a bitmapped image representing the species distribution of the species Mephitis throughout North and South America This image was created by GARP a genetic algorithm that creates an ecological niche model for a 24 speci
18. As Cache File Name L endpoint As All Cache File Names 4 namespace vh As Column Vector Cancel Help 3 Preferences Restore Defaults 4 Add C Commit f Remove Figure 25 Configuring Datos Meteorologicos NOTE Datos Meteorologicos has a series of output ports corresponding to the data attribute names e g BARO and T_AIR To locate the appropriate port mouse over the output ports and review the port tooltips Figure 26 Datos A E BARO type double Figure 26 Identifying data ports Mouse over each output port to review the port tooltips To finish creating the workflow add the SDF Director and the remaining actors RExpression ImageJ Display 7 Locate the SDF Director and drag and drop it to the Workflow canvas 8 Configure the SDF Director by right clicking it and selecting Configure Director Change the number of iterations to l 9 Click Commit for the changes to take effect 10 Locate the RExpression actor and drag and drop it to the Workflow canvas The RExpression actor is located in the General Purpose folder By default the RExpression actor is configured with two output ports and a simple R script Before you can use the RExpression actor in the Simple Linear Regression workflow you must add two input ports T_AIR and BARO and reconfigure the RExpression script 11 Right click the RExpression actor and select Configure Ports 38 12 In the Config
19. LLOW read public Listen to Actor suggest gt dividual Mr Rodrijzo Torrens Semantic Type Annotation Save Archive KAR Upload to Repository arne Datos Meteorologicos View LSID escription Dtos Estacion meteorologeca La Hechicera para e Preview ii bject Narne ize Appearance gt haracter Encoding Convert to Class Number of Header Lines Record Delimiter n Maximum Record Length Simple Delomted Field Defimeter Case Sensitive no Number Of Records 100 1 Text Format cooumn Atribute Column Definition Type of Measurement Measurement Missing Accuracy Name Label Value Type Domain Vaue Code Report DATE tring Format metor DATE Date ot collection jatetim Precision Format Mime Figure 24 Viewing Metadata 5 Right click the Datos Meteorologicos actor and select Configure Actor Select As Column Vector from the pull down menu beside the Data Output Format parameter Figure 25 and click Commit The data type of the Datos Meteorologicos actor must be set to As Column Vector to match the input requirements of the RExpression actor 37 QOS Edit parameters for Datos Meteorologicos ile EML File Browse ile ore Data File Browse Selected Entity Datos Meteorologicos Data Output Format Ak Field File Extension Filter As Field As Table Allow leni ing ow lenient data parsing kka Check for latest version As Byte Array recordid As UnCompressed File Name j are
20. add subtract integral and statistical functions The icon displayed here is used to represent statistical functions e g the Quantizer actor Model actors use a solid arrow Model actors include statistical mathematical rule based and probability models Note that icons will include additional symbols further identifying the actor function 14 Molecular Molecular Processing actors are indicated Processing by a molecule icon in the upper left corner Other External Other External Program actors are Program indicated by a purple rectangle External Program actors include R SAS and MATLAB actors The icon displayed here is an R icon String actors are indicated with the text tri String string String actors are used to string manipulate strings in a variety of ways Utility Utility actors are indicated with a wrench Utility actors help manage and tune a Dun particular aspect of an application Web Services Web Services actors are indicated by a wireframe globe Actors in this family amp execute remote services oo Unit components define a system of units Table 2 The major Kepler icons 5 4 The Workflow Canvas Scientific workflows are opened created and modified on the Workflow canvas Components are dragged and dropped from the Component Data Access and Outline area to the desired canvas location Each component is represented by an icon see Section 5 3 for examples which makes identifying
21. and is made up of two differential equations One describes how the prey population changes dn1 dt r nl a n1 n2 and the second equation describes how the predator population changes dn2 dt d n2 b n1 n2 The Lotka Volterra model is based on certain assumptions e the prey has unlimited resources e the prey s only threat is the predator e the predator is a specialist 1 e the predator s only food supply is the prey and e the predator s growth depends on the prey it catches The Lotka Volterra model as represented in Kepler as a scientific workflow contains e six actors two plotters two equations and two integral functions e one director and Lotka Alfred J 1925 Elements of physical biology Baltimore Williams amp Williams Co Volterra Vito 1926 Fluctuations in the abundance of a species considered mathematically Nature 118 558 560 20 e four workflow parameters Table 3 NOTE The director of the Lotka Volterra model has several configurable parameters as do the two plotter actors The critical assumptions above provide the basis for the workflow parameters The workflow parameters and their defaults are as follows Value of predation 0 1 capture efficiency of a predator or death rate of prey due to predation 0 1 proportion of consumed prey biomass converted P into predator biomass 1 e efficiency of turning prey into new predators d O1 deathrateofthe predator _ _ Tabl
22. at the default settings To create the Command Line 1 workflow 1 Drag and drop an SDF Director onto the Workflow canvas and configure the iterations parameter to 1 2 Drag and drop a Constant actor onto the Workflow canvas Name the actor CommandLine To name the actor right click each actor icon and select Customize Name from the drop down menu Enter a new name in the New name field and click Commit The name will be updated on the Workflow canvas 3 Double click the CommandLine actor to open its parameters Specify java cp HelloWorld Kepler User as the value java cp HelloWorld is the command that runs the Java application HelloWorld The cp part of the command tells Java to include the current directory in the Java classpath Kepler_User is an argument passed to the command line and its value can be varied to as desired e g Katie or Bob Note that the surrounding quotation marks around the entire value are required to indicate that it 1s a string Click the Commit button 4 Search for Parameter in the Component library and then drag and drop a workflow Parameter to the Workflow canvas Right click the parameter and select Customize Name from the drop down menu Name the parameter WorkingDir and click Commit Double click the parameter to set its value to the parameter to property outreach workflowdir demos getting started 1e the location of the working directory 5 Drag and drop an Ext
23. ata Access and Outline Area ccccccccccceeceeeeeseeeeeeeeeeeeaas 12 Des WMC COL Aid ACO TOONS sass cca cnaciesnateaasnayes ss T E E 13 Sy Oy CIN ae este sie secs Sates enact sets feces te saves tenet eee ete cnet 15 6 Basic Operations in Kepler on ccceccccccccccccessseeeecccceeeeaeesseeccccceeseauaeeeececeeeessaanesees 15 6 1 Opening an Existing Scientific Workflow ccccccceessssssssesssssssssssesssesseeeeens 16 6 1 1 Example 1 Opening the Lotka Volterra Workflow cccccceeseeeeeeeees 16 6 2 Running an Existing Scientific Workflow ccccscecessssesssesssesessssessssesseeeees 17 6 2 1 Example 2 Running the Lotka Volterra Workflow with Default Parameters 18 6 2 2 Example 3 Running the Lotka Volterra Workflow with Adjusted PA AUN US 0 pct oars sits crete asta ieee please sane E E A eounenue eet eseneeues 19 6 3 Editing an Existing Scientific Workflow cccccccccsssssssssssseeeeeeeceeeeeeeeeeeeeeaaaas 23 6 3 1 Example 4 Editing Substituting Analytical Processes in the Image J WOrK HOW cienne n N eente cnet arene a ita tt cereal crane acest 24 Gia Searc hN 1m Kepler aicea a a 26 64l Seac for Avallable Dali ennnen n E E eeu ehes 26 6 4 2 Searching for Available Processing Components cccccceeeeeeeeeeeeeeees 28 6 5 Creating a Basic Scientific Workflow 0 cc ccccccccsssssssessseeeeeceeeeeeeeeeeeeeeeaaaaas 29 6 5 1 Example 5 Creating a Hello World Worktflow
24. ay2 actor Variance and the Display3 actor Standard Deviation 12 Connect the xmean xstd and xvar output ports of the SummaryStatistics actor to the input port on the corresponding Mean Standard Deviation and Variance actors You are now ready to run the workflow The resulting workflow and output are displayed in Figure 23 34 K File Tools Help SDF Director File Tools Help on 3 0276503540975 gt 1 2 3 4 5 6 7 8 9 10 Figure 23 The Simple Statistics workflow and its output The right hand windows in Figure 23 display the mean variance and standard deviation of the data set created by the array of values in the Constant actor Change the input array of the Constant actor for example try 1 17 6 4 12 to calculate a new set of corresponding statistics 7 2 Sample Workflow 2 Linear Regression Name Simple Linear Regression workflow using R 05 LinearRegression xml Detailed This workflow performs a simple linear regression analysis using the Description RExpression actor The workflow creates a scatter plot of the two variables from the Datos Meteorologicos data set and adds a regression line using the Y a bX equation where X is the explanatory variable and Y is the dependent variable The slope of the line is b and a is the intercept the value of y when x 0 A linear regression assumes linearity independence homoscedasticity and normality R must be installed on the system run
25. cution SDF Director K 03 ImageDis play Display aA Fie Tools Help World World World Constant Display ello World gt Hello World World World World World World World Figure 19 Hello World workflow and output NOTE By default the SDF Director will continuously run a workflow creating a loop To run Hello World a limited number of times right click on the SDF Director and select Configure Director from the menu Type the desired number of iterations into the iterations field of the Edit parameters for SDF Director dialog window and click the Commit button to save your changes 30 6 5 2 Example 6 Creating a Simple Workflow Using Local Data In this example we create a simple workflow using an actor that reads a local data file containing information about species abundance and then sends the data to a second actor for display Kepler can read data in many ways and from many formats In this example we will use an actor to review a data table To determine which actor is appropriate consider the format in which the data are saved In this example the data are saved in a text format As such we will use the File Reader actor to read the data in a tabular format This workflow requires two actors a File Reader actor and a Display actor to output text In addition the example requires a SDF Director 1 From the Menu bar select File then New Workflow and then B
26. d 02 LotkaVolterraPredatorPrey from the getting started directory 2 From the Menu bar select Run 18 3 The Lotka Volterra workflow will execute with the default parameters and produce two graphs The graph labeled TimedPlotter depicts the interaction of predator and prey over time 1 e the cyclical changes of the predator and prey populations over time predicted by the model The graph labeled XY Plotter depicts a phase portrait of the population cycle 1 e the predator population against the prey population Together these graphs show how the predator and prey populations are linked as prey increases the number of predators increase Figure 10 K 02 LotkaVolterraPredatorPrey Time dP lotter Jog TimedPlotter 40 35 KI BD bey fe hehe Poy ye fe y EL BRAE a0 0 1 X Plotter 4 5 6 Figure 10 Graphs output by the Lotka Volterra workflow Bm fo g 10 6 2 2 Example 3 Running the Lotka Volterra Workflow with Adjusted Parameters To better illustrate the effect of parameters on a workflow we must first provide some background about the Lotka Volterra workflow Figure 11 CT Director TimedPlotter nad XYPlotter Integrate n1 Cent arniina J dn2idt Integrate n2 lt d n2 b n1 n2 tke J Figure 11 Graphic of Lotka Volterra workflow The Lotka Volterra model was developed independently by Lotka 1925 and Volterra 1926
27. d in workflow table at the beginning of Section 7 2 7 3 Sample Workflow 3 Web Services WebService workflow 06 WebService xml Detailed This workflow demonstrates the use of the remote Description genomics data service to retrieve a genetic sequence The Web Service actor assumes that the target Web 40 service 1s RPC based and uses primitive XML types and arrays Data The data consists of an initial input gene accession number that is specified by the String Constant actor and an intermediate input retrieved from the remote genomics data service String Constant WebService Displa Parameters Web Services wsdlUr1 http xml nig ac jp wsdl DDBJ wsdl methodName getFFEntry The Web Services workflow uses the Web Service actor to access a genomics database and return a genetic sequence from it which is queried using a remote genomics data service The name of the genetic sequence 1 e the gene accession number is passed to the Web Services actor by a String Constant actor The Web Service actor must be configured to access the appropriate remote server Once configured the Web Service actor outputs the gene sequence obtained from the remote server In addition the workflow uses a Display actor to display errors returned by the remote server e g server down or incorrect input To create the Web Services workflow Open a new Workflow canvas Drag and drop the SDF Director onto the Workflow canvas Ri
28. e 3 Description of the default parameters for the Lotka Volterra workflow In the differential equations used in the workflow dn1 dt r n1 a n1 n2 and dn2 dt d n2 b nl n2 the variable nl represents prey density and the variable n2 represents predator density When changing parameters in a workflow the assumptions of the model must be kept in mind For example if creating a Lotka Volterra model with rabbits as prey and foxes as predators the following assumptions can be made with regard to how the rabbit population changes in response to fox population behavior e the rabbit population grows exponentially unless it is controlled by a predator e rabbit mortality is determined by fox predation e foxes eat rabbits at a rate proportional to the number of encounters e the fox population growth rate is determined by the number of rabbits they eat and their efficiency of converting the eaten rabbits into new baby foxes and e fox mortality is determined by natural processes If you think of each run of the model in terms of the rates at which these processes would occur then you can think of changing the parameters in terms of percent of change over time To run the Lotka Volterra workflow with adjusted parameters 1 Open the workflow file named 02 LotkaVolterraPredatorPrey from the getting started directory 2 From the Menu bar select Workflow then Runtime Window The Runtime window will appear Notice ther
29. e are two sets of parameters one for the 21 workflow and one for the director In this example you will make adjustments to both sets of parameters 3 Adjust the workflow parameters as suggested in Table 4 absence of predation I Diced seated of prey due to predation 0 1 proportion of consumed prey biomass converted into predator biomass 1 e efficiency of turning prey into new predators gt d 02 death rate of the predator Table 4 Description of the suggested parameters for the Lotka Volterra workflow taken from http www stolaf edu people mckelvey envision dir lotka volt html 4 Adjust the value of the stopTime director parameter to 300 5 Inthe Runtime window click the Go button The Lotka Volterra workflow will execute with the adjusted parameters and produce two graphs 1 the TimedPlotter graph and 2 the XYPlotter graph Note that with the changes in the parameters the relationship between the predator and prey populations are still linked but the relationship has changed ZZ IK file C kepler 1 0 0beta3 demos gett arted 02 LotkaVolterraPredatorPrey xml oe File View Workflow Tools Window Help RA Model parameters 4 0 3 5 r 04 a 0 0005 3 0 As d 0 2 2 0 Director parameters ed timeResolution 1E 10 1 0 startTime 0 0 0 5 stopTime 300 0 0 initStepSize 0 1 minStepSize le 5 0 5 1 0 ES 2 0 As 3 0 aka 4 0 4 5 maxStepsize 1 0 2 n K le Ed maxlterations 20 x10
30. ed into a visually represented workflow Even advanced users will find that Kepler offers many advantages particularly when it comes to presenting complex programs and analyses in a comprehensible and easily shared way Kepler includes distributed computing technologies that allow scientists to share their data and workflows with other scientists and to use data and analytical workflows from others around the world Kepler also provides access to a continually expanding geographically distributed set of data repositories computing resources and workflow libraries e g ecological data from field stations specimen data from museum collections data from the geosciences etc 1 2 What are Scientific Workflows Scientific workflows are a flexible tool for accessing scientific data streaming sensor data medical and satellite images simulation output observational data etc and executing complex analysis on the retrieved data Each workflow consists of analytical steps that may involve database access and querying data analysis and mining and intensive computations performed on high performance cluster computers Each workflow step is represented by an actor a processing component that can be dragged and dropped into a workflow via Kepler s visual interface Connected actors and a few other components that we ll discuss in later sections form a workflow allowing scientists to inspect and display data on the fly as it is co
31. ed together to perform more complex operations Composite actors can be used in workflows essentially acting as a nested or sub workflow Figure 4 An entire workflow can be represented as a composite actor and included as a component within an encapsulating workflow In more complex workflows it is possible to have different directors at different levels Input Actor Nested Workflow Output Actor e g data i e composite actor e g display Figure 4 Representation of a nested workflow Kepler provides a large set of actors for creating and editing scientific workflows Actors can be added to Kepler for an individual s exclusive use and or can be made available to others 4 2 Ports Each actor in a workflow can contain one or more ports used to consume or produce data and communicate with other actors in the workflow Actors are connected in a workflow via their ports The link that represents data flow between one actor port and another actor port is called a channel Ports are categorized into three types e input port for data consumed by the actor e output port for data produced by the actor and e input output port for data both consumed and produced by the actor Each port 1s configured to be either a singular or multiple port A single input port can be connected to only a single channel whereas a multiple input port can be connected to multiple channels Single ports are designat
32. ed with a dark triangle multiple ports use a hollow triangle Workflows can also use external ports and port parameters See the Ptolemy documentation for more information 4 3 Relations Relations allow users to branch a data flow Branched data can be sent to multiple places in the workflow For example a scientist might wish to direct the output of an operational actor to another operational actor for further processing and to a display actor to display the data at that specific reference point By placing a Relation in the output data channel the user can direct the information to both places simultaneously 4 4 Parameters Parameters are configurable values that can be attached to a workflow or to individual directors or actors For example the ntegrator actor has a parameter called InitialState that should be set to the initial value of the function being integrated The parameters of simulation model actors can be configured to control certain aspects of the simulation such as initial values Director parameters control the number of workflow iterations and the relevant criteria for each iteration The next sections provide an overview of the interface and step by step examples of how to open edit and run different scientific workflows 5 Kepler Interface Scientific workflows are edited and built in Kepler s easily navigated drag and drop interface The major sections of the Kepler application window Figure 5 co
33. ediction GarpPrediction org ecoinformatics seek garp GarpPrediction Configure Actor GARP is a computer program tor predicting species locations based on various patel date sets of Customize Name environment wariabies and known species locatons GARP it an scronym for Gerate Algortim for Confiqure Ports Rue Set Production GARP was originaly ceated by David Stockwed The version in Kepler is based onngu on Desktop GARD htp Paww Htemapper orgtiesitopgann The Gepiredicten actor predicts Configure Units presencefabeoence date on a spatial grid based on the input MudeSet jcatcasted by the GarpAdporttys Open Actor actor and the input set of errvronmertal leyers The reut levers are described i a surmeary xed fhe C txi The outputs are ether an onc gd the or bmp tie Either can be drpisyed ss b nsppad mage wth predicted presencelabaence indicated by pice values e color mapped when Customize Srpleyed Listen to Actor ae Remove Customization Suggest This is a JM based actor E requires the folowing inane Sbgarp so widows gapdi ibapa at Semantic Type Annotation MacOS Curren y not avadatie for the Mac 3 16 2005 Save Archive KAR Upload to Repository View LSID Parameters Preview Appearance eSF ienane Parameter Tris it the tie name of Te fle containing the RueSet data Ei usually Pe output of a GarpAlgorifit actor jayerseth enamePararcete This ts the the nane of he dhd Me used to ummarize the set of apsal Gate
34. enerator Using XSLT actor and the Sequence Getter Using XPath actor to the Relation icon as well 15 Rename the second Display actor Sequence Display and position it to the right of the Sequence Getter using XPath actor 16 Connect the input of the Sequence Display actor to the output of the Sequence Getter using XPath actor 17 Rename the third Display actor HTML Display and position it to the right of the HTML Generator Using XSLT actor 18 Connect the input of the HTML Display actor to the output of the HTML Generator Using XSLT actor You are now ready to run the workflow The resulting output from the Display actors will be displayed Figure 32 file Users derik KeplerData workflow g started 09 XMLDataTransformation xml Q Ql Q PMO gt pm me alch lo Components Data Outline Workflow 09 XMLDataTransformation Sequence Display SDF Director Using Data Transformation Actors BASE COUNT 47a 38c 37g ORIGIN 1 cacctggaga aa 61 caagtgattt aatttcagct gatte 121 tttggnatct ggagacagga ga XML Entry Display II L lt SEQUENCE gt 4 v 4 5 aji Z 09 XMLDataTransformation HTML Display File Reader BASE COUNT 47a 38c 37 ORIGIN e 1 cacctggaga a Sequence Getter Using XPath Sequence Display 61 caagtgattt aatttcagct gatt 121 tttggnatct ggagacagga gi HTML Generator Using XSLT JI HTML Display lt jli gt lt ul gt lt body gt lt html gt a
35. ernalExecution actor onto the Workflow canvas Double click the icon and set the value of the directory parameter to SWorkingDir e the value of the WorkingDir parameter set on the Workflow canvas Figure 35 47 Edit parameters for External Execution by FiringCountLimit command directory workingDir environment name value prependPlatformDependentShellCommand C throwExceptionOnNonzeroReturn waitForProcess class ptolemy actor lib Exec semanticTypedd urnilsid localhost onto 1 1 ExternalExecutionEnyvironmentActor semanticlypel 1 urnilsid localhost onto 2 1 UnixCommand Figure 33 Set the directory parameter of the ExternalExecution actor for use with this workflow 6 Connect the output port of the CommandLine actor to the command input port of the ExternalExecution actor 7 Drag and drop a Display actor onto the Workflow canvas and connect its input port to the ExternalExecution actor s output port 8 You are now ready to run the workflow The workflow and its default output are displayed in Figure 36 Hello Kepler_User SDF Director WorkingDir property outreach workflowdir demos getting started CommandLine gt java cp HelloWorld Kepler_User External Execution Figure 34 The Command Line workflow and its default output 48 8 Appendix 8 1 Ptolemy II The Foundation of Kepler Ptolemy II is a software framew
36. es that represents the environmental conditions where that species would be able to maintain populations GARP was originally developed by David Stockwell at the San Diego Supercomputer Center For more information on GARP see http www lifemapper org desktopgarp To edit the Image Display workflow l 2 Open the 03 Image Display xml workflow from the getting started directory Select the target component the mageJ actor in this case The JmageJ actor will be highlighted in a thick yellow border indicating that it is selected Figure 14 SDF Director ImageConverter Image Filename gt property KEPLER demos getting start Figure 14 Image Display workflow showing ImageJ actor highlighted 3 4 Press the Delete key on your keyboard The JmageJ actor will disappear from the Workflow canvas From the Components Data Access and Outline area drag the Browser Display actor to the Workflow canvas You can find the Browser Display actor by typing Browser Display in the search field and hitting Enter in the Components tab It will appear beneath Components gt Data Output gt Workflow Output gt Textual Output Connect the output port of the JnageConverter actor to the input port of the Browser Display actor To connect the ports left click and hold on the output port black triangle on the right side of the mage Converter actor drag the pointer to the upper input port on the left side
37. fies wth ervronmertai data for each p cel OLA SC NP arameter This is the fie mame to be used tor the output ASCE gid the OVOM TE MPP aramreter This is the tie mame to be used for the output BNP raster fle Input Ports rate nE enine This ts the fie name of Se fhe Contarrang the FiseSet daia Eis utuaiy her ouiet Of a Garp Algerie actor tayerselF ilename This s the fie name of Pe chet fhe used to summarize the set of spatial date fies wih exrerormmertal data tor each ptcel outta SOW Thig i the file mame to be usted tor the output ASCE gral the 4 ARARO E O Sa u LA 11 s Fa i EERE a O Aattar Ched Ber cicy Den Hippo NOEAL UC Corto See Aten No javsiocs tund Gaio cinas Tepestoms Actor Sozce com Not used N any demos Figure 35 Actor documentation 50
38. flow 1 Select the Data tab in the Components and Data Access area 2 Click the Sources button and limit the scope of the search by unchecking KU Query Interface and KNB Metacat Authenticated Query Interface Because Datos Meteorologicos is stored on the KNB Metacat the data source for the search can be limited to just those nodes on the EarthGrid Click Ok to confirm and save the search source changes 4 Type Datos Meteorologicos in the search box and click Search Results may take 20 seconds to return 5 From the search results click the Datos Meteorologicos icon Drag and drop the Datos Meteorologicos actor to the Workflow canvas U 36 NOTE To find more information about the data set right click Datos Meteorologicos on the Workflow canvas and select Get Metadata Figure 24 Depending upon the amount of information entered by the provider much valuable metadata can be obtained The type of value and measurement type of each attribute help you decide which statistical models are appropriate to run K file KC Documents 20an 20Settines K Vurn bid tocathost c96a7dff 0 0 html Fle View Took Heb r Datos p Meteorologicos lt Data Set Description gt Idemifer laoti atalog System inb nnhoure tre z Configure Acto mE tle Datos Meeorologicos Customize Name Configure Ports idmduat Mr Rodrijo Torrens Configure Unit Open Actor al uth System mie Get Metadata a mt eke locumentation Documentatio
39. from the Web Services and Data Transformation workflow into your workflow NOTE To view the insides of a composite actor right click the actor and select Open Actor from the menu The composite actor will open in a new application window Figure 31 Composite actors can be thought of as sub workflows that execute a potentially complex set of tasks with a single actor 3 ator Using XSLT t a 7 Contigure Actor Customize Name Dart igure Ports Lontiaqure mits XML input xs Actor amin wimiOul Remove First Line HTML Output b gt ir pulreplaceFirst 7s i lt WDOCTYPE 7 gt Figure 31 Inside the HTML Generator Using XSLT composite actor Because the File Reader Actor output is required by three actors before connecting your actors you must add a relation to direct the output to multiple ports 44 11 Add a relation by clicking the Relation icon at the far right of the Toolbar The relation represented by a dark diamond icon will appear near the center of the Workflow canvas You can also add a relation with the keyboard shortcut Ctrl click or Command click on Mac 12 Position the Relation icon between the File Reader actor and the Sequence Getter using XPath actor 13 Connect the input port of the XML Entry Display Display actor to the Relation To make the connection start from the input port of the Display actor and drag the cursor to the center of the Relation icon 14 Connect the HTML G
40. g it to the Workflow canvas For more information about choosing a director please see Chapter 5 of the Kepler User Manual 5 Drag the desired workflow components to the Workflow canvas 6 Connect the workflow components 7 Save the workflow a ae Sa The examples in this section illustrate how to begin to create your own workflows The first example 1s the classic Hello World workflow that demonstrates how easy it is to create a functioning workflow in Kepler The second example 1s more practical and shows how to use your desktop data in a workflow 6 5 1 Example 5 Creating a Hello World Workflow To create the Hello World workflow begin by thinking about the type of data used e g text or string data the type of output desired e g textual or image display and the type of director needed to execute this model e g synchronous or parallel The Hello World workflow requires a constant actor a text display actor and an SDF director in an SDF director the data will flow through the actors based on the order in the workflow and the workflow will run continuously by default 1 Open Kepler A blank Workflow canvas will open 2 Inthe Components Data Access and Outline area select the Components ontology then expand the Director category by clicking the triangle 3 Drag the SDF Director to the top of the Workflow canvas 4 Inthe Components tab search for Constant and select the C
41. ght click the SDF Director and set iterations to 1 Drag and drop the String Constant actor onto the Workflow canvas Right click the String Constant actor and select Configure Actor Type AA045112 the gene accession number into the value field and click Commit 6 To change the name of the String Constant actor right click it and select Customize Name Type a new name e g Gene Accession Number into the Name field and click Commit Figure 28 ae 4 String Constant T n AAD45112 Configure Actor wE Rename String Constant Configure Ports wame String Constant C ontig ure Units f Dismay name String Constam Open Actor Documentation Listen to Actor Suggest gt Semantic Type Annotation Save Archive KAR Upload to Repository l Show name View LSID Preview Convert to Class Appearance Figure 29 Customizing the name of an actor 7 Drag and drop the Web Service Actor onto the Workflow canvas By default the Web Service Actor has one output port for displaying runtime errors and must be configured with a Web service URL a wsd1Ur1 parameter an appropriate method a methodName parameter Once the actor has been configured with this information 1t will automatically generate the correct input and output ports required by the Web service 8 To configure the parameters required for accessing the Web service right click the Web Service Actor and select Configure Actor Figure 29 Type http xm
42. he insides of the 43 composite actors right click the actor icon on the Workflow canvas and select Open Actor from the menu The composite actor will open in a new window The Data Transformation workflow uses two component actors designed specifically for this workflow These customized actors are not available in the Component library and rather than recreating them we will save some time by copying and pasting them from the existing workflow 1 Open anew Workflow canvas 2 Drag and drop the SDF Director onto the workflow canvas 3 Right click on the SDF Director and set iterations to 1 4 Drag and drop a File Reader actor onto the workflow canvas 5 Right click on the Filer Reader actor and set fileOrUrl to the sampleEntry xml file Use the Browse button to find the file within demos getting started directory 6 Drag and drop two Display actors onto the workflow canvas 7 Open the Data Transformation workflow 09 XMLDataTransformation xml from the demos getting started directory The workflow will open in a new window Select the Sequence Getter Using XPath composite actor by left clicking it 8 From the Edit menu select Copy or use the keyboard shortcut Ctrl C 9 Return to your workflow and paste the Sequence Getter Using XPath actor to the right of the File Reader Actor using the Paste command available in the Edit menu or the keyboard shortcut Ctrl V 10 Copy and paste the HTML Generator Using XSLT actor
43. he RExpression actor to the input port of the ImageJ actor You are now ready to run the workflow The resulting workflow and graphic output are shown below Figure 28 39 SDF Director R linear regression 1152049686328 jpe ais 8 bit 225 480x460 pire r K 05 LinearReeression Display File Tools help gt setwdi C Documents and Settings Kirsten gt jJpeg filename 1152049696328 pg width 480 height 480 pointsize gt FT AIR lt c 15 0 13 4 13 4 12 4 11 7 11 4 11 5 11 5 12 2 17 4 20 1 gt BARO lt 953 4 953 8 954 0 954 3 954 5 954 7 954 8 954 8 954 9 95 gt res lB BARO T_AIR gt plot T_AIR BARO gt abline res Figure 28 Linear Regression workflow and its output The left hand window in Figure 28 displays the scatter plot of Barometric pressure to Air Temperature along with a regression line The graph shows a strong negative relationship between the two as air temperature lowers the Barometric pressure rises The right hand window displays the Barometric Pressure and Air Temperature data used in the scatter plot Additionally the intercept on the Y axis 958 38 Barometric Pressure and the slope 0 32 for the linear regression equation y mx b is displayed You can change the data type and the data set that is run through the workflow When changing the data remember to make sure that the data meets the assumptions mentione
44. ich Kepler is installed To change the directory use the cd command e g cd directory name 3 Type kepler sh to run the application The main Kepler application window opens Figure 2 3 From this window you can access and run existing scientific workflows and or create your own custom scientific workflow Each time you open an existing workflow or create a new workflow a new application window opens Multiple windows allow you to work on several workflows simultaneously and compare copy and paste components between workflows 4 Basic Components in Kepler Scientific workflows consist of customizable components directors actors and parameters as well as relations and ports which facilitate communication between the components O keplerworkspace_ke arted 02 LotkaVolterraPredatorPrey xml QQ BQ P O mm ale Components _ Data Outline gt Workflow CT Director Search Components a search Advanc Sources Cancel All Ontologies and Folders H Components Projects Statistics C Actors L Directors E Opendap E R YYY YV YV VY SF dnd s bni n2 i e n2 This model shows the solution to the classic Lotka Volterra predator prey dynamics model It uses the Continuous Time domain to solve two coupled differential equations one that models the predator population and one that models the prey AA lt population The results are plotted as they are calculated show
45. iendly but offers no record of what steps have been executed Kepler combines the advantages of all of these programs permitting users to model analyze and display data in one easy to use interface See Ludascher B I Altintas C Berkley D Higgins E Jaeger Frank M Jones E Lee J Tao Y Zhao 2005 Scientific Workflow Management and the Kepler System DOI 10 1002 cpe 994 Kepler builds upon the open source Ptolemy II visual modeling system http ptolemy eecs berkeley edu ptolemylII creating a single work environment for scientists The result is a user friendly program that allows scientists to create their own scientific workflows without having to integrate several different software programs or enlist the assistance of computer programmers A number of ready to use components come standard with Kepler including generic mathematical statistical and signal processing components and components for data input manipulation and display R or MATLAB based statistical analysis image processing and GIS functionality are available through direct links to these external packages You may also create new components or wrap existing components from other programs e g C programs for use within Kepler 2 Downloading and Installing Kepler Kepler is an open source cross platform software program that can run on Windows Macintosh or Linux based platforms Kepler can be downloaded from the project website http kepler p
46. ilize R so installing R 1s recommended http www t project org 2 2 Installing on Windows Follow these steps to download and install Kepler for Windows 1 Click the following link https kepler project org users downloads and select the Windows installer 2 Save the install file to your computer 3 Double click the install file to open the install wizard 4 Follow the steps presented to complete the Kepler installation process Once the installation process is complete a Kepler shortcut icon will appear on your desktop Figure 2 and or in the Start Menu K Kepler Figure 2 Kepler shortcut icon 2 3 Installing on Macintosh Java is included as part of the Mac OSX operating system so it need not be installed Follow these steps to download and install Kepler for Macintosh systems 1 Click the following link https kepler project org users downloads and select the Mac install file Save the install file to your computer 2 Double click the install icon that appears on your desktop when the extraction is complete 3 Follow the steps presented in the install wizard to complete the Kepler installation process A Kepler icon is created under Applications Kepler x y 2 4 Installing on Linux Follow these steps to download and install Kepler for Linux 1 Click the following link https kepler project org users downloads and select the Linux install file 2 Save the install file to your computer
47. in Kepler Click the Data tab to reveal the Data Access area From here you can easily search the EarthGrid for remotely hosted data sets For more information about searching for data see section 6 4 1 12 5 3 Director and Actor Icons In Kepler icons provide a visual representation of each component s function Directors are represented by a single icon actors are divided into functional categories or families with each category assigned a visually related icon Table 2 Some actor families have a persistent family symbol other families do not The majority of the actor icons use a teal rectangle though some icons such as the Data File Access icons use other colors and or shapes In the table below persistent symbols are noted For families that do not have a persistent symbol an example of one of the icons from that family is displayed A table that includes all icons for each family can be found in Chapter 5 of the Kepler User Manual Family Name Director Stand alone component that directs the other components the actors in their execution Array actors are indicated with a curly brace Actors belonging to this family are used for general array processing e g array sorting Composite Composite actors are represented by multiple teal rectangles because they represent multiple actors Composite actors are collections of actors bundled together to perform more complex operations within an encapsulating workflow
48. ing both population change and a phase diagram of the dynamics 0 results found Rich Williams 2003 NCEAS v a Figure 3 Main window of Kepler with some of the major workflow components highlighted 4 1 Director and Actors Kepler uses a director actor metaphor to visually represent the various components of a workflow A director controls or directs the execution of a workflow just as a film director oversees a cast and crew The actors take their execution instructions from the director In other words actors specify what processing occurs while the director specifies when it occurs Every workflow must have a director that controls the execution of the workflow using a particular model of computation Each model of computation in Kepler is represented by its own director For example workflow execution can be synchronous with processing occurring one component at a time in a pre calculated sequence SDF Director Alternatively workflow components can execute in parallel with one or more components running simultaneously which might be the case with a PN Director A small set of commonly used directors come pre packaged with Kepler but more are available in the underlying Ptolemy II software that can be accessed as needed For more detailed discussion of workflow models of computation please refer to the Kepler User Manual or the Ptolemy I documentation Composite actors are collections or sets of actors bundl
49. l nig ac jp wsdl DDBJ wsdl into the wsd1Ur1 field In the methodName field type get FFEnt ry Click commit The Web Service Actor ports should update automatically You can move the ports so that they are more conveniently located by right clicking the actor and selecting a desired port direction from the Configure Ports dialog box Lat parameters for Web Service Actor Customize Name Configure Ports Configure Unit Open Actor Documentation Listen to Actor Suggest Semantic Type Annotation Save Archive KAR Upload to Repository ew LSID Prey ew Convert to Class Figure 30 Configuring the Web Service Actor 42 9 Connect the output of the String Constant actor Gene Accession Number to the input of the Web Service Actor 10 Drag and drop two Display actors onto the Workflow canvas 11 Position one of the Display actors beneath and to the right of the Web Service Actor Right click the actor and change the name to Errors Sink 12 Connect the lower output port of the Web Service Actor to the input port of the Errors Sink Display actor 13 Position the second Display actor above the Errors Sink Display Right click the actor and change the name to Entry Display You may now run the workflow and view its output in the two Display actors 7 4 Sample Workflow 4 XML Data Transformation XML Data Transformation workflow 09 XMLDataTransformation xml Detailed This workflow demonstrates
50. lank A new window will open with a blank Workflow canvas 2 Inthe Components Data Access and Outline area search for the SDF Director 3 Drag the SDF Director to the top of the Workflow canvas Right click the SDF Director change iterations to 1 and select the Commit button 4 In the Components tab search for File Reader 5 Drag the File Reader actor to the Workflow canvas 6 Right click the File Reader actor and select Configure Actor from the menu An Edit parameters for File Reader dialog window will open 7 Click the Browse button to the right of the ileOrURL parameter and navigate to the following file mollusc _abundance txt This data file is located in the eetting started directory Figure 20 Edit parameters for File Reader firingCountLimit l fileOrURL NT Browse gt newline property line separator class ptolemy actor lib io FileReader semantic Type00 urn lsid localhost onto 1 1 ReaderExternallnputActor semantic Type11 urn lsid localhost onto 2 1 Locallnput Cancel Preferences Restore Defaults Remove Tie Noo das Open getting started 34 Name Date Modified gt 00 StatisticalSummary xml Thursday February 7 2008 3 20 PM gt 01 SimpleAddition xml Thursday December 20 2007 3 05 PM gt 02 LotkaVolterraPredatorPrey xml gt 03 ImageDisplay xml Thursday February 7 2008 3 20 PM gt 04 HelloWorld xml Thursday December 20 2007 3 48
51. mputed make parameter changes as necessary and re run and reproduce experimental results Workflows may represent theoretical models or observational analyses they can be simple and linear or complex and non linear One of the benefits of scientific workflows is that they can be nested meaning that a workflow can contain sub workflows that perform embedded tasks A nested workflow also known as a composite actor is a re usable component that performs a potentially complex task Scientific workflows in Kepler provide access to the benefits of today s grid technologies providing access to distributed resources such as data and computational services while hiding the underlying complexity of those technologies Kepler automates low level data processing tasks so that scientists can focus instead on the scientific questions of interest Workflows also provide the following e documentation of all aspects of an analysis e visual representation of analytical steps e ability to work across multiple systems e reproducibility of a given project with little effort e reuse of part or all of a workflow in a different project To date most scientific workflows have involved a variety of software programs and sophisticated programming languages Traditionally scientists have used STELLA or Simulink to model systems graphically and R or MATLAB to perform statistical analyses Some users perform calculations in Excel which 1s user fr
52. n sections of the toolbar include e Viewing zoom in reset fit and zoom out of the workflow on the Workflow canvas e Run run pause and stop the workflow without opening the Runtime window Ports add single black or multi white input and output ports to workflows add Relations to workflows 11 QaRa lOs eT Ports Figure 6 Annotated Kepler Toolbar 5 2 Components Data Access and Outline Area The Components Data Access and Outline area contains a library of workflow components e g directors and actors under the Components tab a search mechanism for locating and using data sets under the Data tab and an outline view of the workflow under the Outline tab When the application is first opened the Components tab is displayed Components in Kepler are arranged in three high level categorizations Components Projects and Statistics Table 1 Any given component can be classified in multiple categories appearing in multiple places in the component tree Use any instance of the actor only its categorization is different Browse for components by clicking through the trees or use the search function at the top of the Components tab to find a specific component For more information about searching for components see section 6 4 2 Components Contains a standard library of all components arranged by function e g SEEK or CIPRes statistical analysis Table 1 Component Categories
53. ning the workflow R is included with the full Kepler installation for Windows and Macintosh Datos Meteorologicos RExpression Display ImageJ 35 Parameters Datos Meteorologicos Data Output Format As Column Vector SDF Director iterations 1 RExpression R function or script res lt lm BARO T AIR res plot T AIR BARO abline res RExpression input ports T AIR and BARO The Simple Linear Regression workflow runs a search for data on the EarthGrid These data are used to create a workflow conducting a linear regression In this example the input data comes from two output ports the data columns on Barometric Pressure and Air Temperature of the Datos Meteorologicos actor a data set of meteorological data collected in 2001 from the La Hechicera station The Linear Regression workflow uses four actors the Datos Meteorologicos actor the RExpression actor the ImageJ actor and the Display actor and the SDF Director The RExpression actor inserts R commands and scripts into the workflow The RExpression actor makes integrating the powerful data manipulation and statistical functions of R into workflows easy To implement the RExpression actor R must be installed on the computer running the Kepler application NOTE If you have problems creating this workflow a stored version comes with Kepler in the getting started directory named 05LinearRegression xml To create the Simple Linear Regression work
54. nsist of the following e Menu bar provides access to all Kepler functions e Toolbar provides access to the most commonly used Kepler functions e Components Data Access and Outline area consists of three tabs The Components tab and the Outline tab both contain a search function and display the library of available components and or search results The Outline tab provides an outline view of the workflow 10 Workflow canvas provides space for displaying and creating workflows Navigation area displays the full workflow Click a section of the workflow displayed in the Navigation area to select and display that section on the Workflow canvas the small unlabeled section in the lower left in the screenshot Ki Unnamed File Edit View Workflow Tools Window Help Q Q 2 Q P 1 O gt m eA cal Components Data Outline oo a Ta Joey A gt Search Components Q Searc Rae vse eS Advance Sources Riess All Ontologies and Folders 3 gt fal Components 4 gt E Projects Mii 4 4 T Statistics E rs gt Actors gt a Directors s gt u Opendap k a tai gt ER Workflow canvas ew em ee ee ew ee ee eee end TR 0 results found Figure 5 Empty Kepler window with major sections annotated 5 1 The Toolbar The Kepler toolbar is designed to contain the most commonly used Kepler functions Figure 6 The mai
55. of the Browser Display actor and then release the mouse If the connection is made you will see a thick black line If the connection is not made the line will be thin Run the workflow From the Menu bar select File then Save or Export to save the workflow to a KAR or MoML file as desired 25 SDF Director IimaaeConverter g Image Filename Browser Display Figure 15 The Image Display workflow with the Browser Display actor substituted for the ImageJ actor NOTE Sometimes the easiest way to connect actors is to go from the output port of the source to the input port of the destination 6 4 Searching in Kepler Kepler provides searching mechanisms to locate data on the EarthGrid and analytical processing components on the local system or both the local system and a remote component repository The examples given in this section describe searching for data and components in Kepler 6 4 1 Searching for Available Data Via its search capabilities Kepler provides access to data from the EarthGrid EarthGrid resources are stored in the KNB Metacat http knb ecoinformatics org database To search for data on the EarthGrid through Kepler 1 In the Components Data Access and Outline area select the Data tab Figure 16 2 Type in the desired search string e g Datos Meteorologicos Make sure that the search string is spelled correctly You can also enter just part of the entire string e g Datos
56. onstant actor 5 Drag the Constant actor onto the Workflow canvas and place it a little below the SDF Director 6 Configure the Constant actor by right clicking the actor and selecting Configure Actor from the menu Figure 18 29 onstant Configure Actor Customize Name Configure Ports Configure Units Open Actor Documentation Listen to Actor Suggest gt Semantic Type Annotation Save Archive KAR Upload to Repository View LSID A Edit parameters for Constant Gn Preview Convert to Class firingCountLimit NONE Appearance value Hello World class ptolemy actor lib Const semantic Type0d urn Isid localhostionto 1 1eConstantActor semanticTypell urn Isid localhostonto 2 1 Constant kar r a urn Isid kepler project orgkar 7 1 Cancel Preferences Restore Defaults Figure 18 Configuring the Constant actor 7 Type Hello World in the value field of the Edit parameters for Constant dialog window and click Commit to save your changes Hello World is a string value In Kepler all string values must be surrounded by quotes 8 Inthe Components and Data Access area search for Display and select the Display actor found under Textual Output 9 Drag the Display actor to the Workflow canvas 10 Connect the output port of the Constant actor to the input port of the Display actor 11 Run the model Figure 19 Press the Red Stop button to stop exe
57. or Documentation Ann Datos Meteorologicos Preview 2 DATE TIME T_AIR RH DEW BARO WD WS RAIN SOL Listen to Actor j 00 00 953 4 99 Suggest j 01 00 13 953 8 100 Semantic Type Annotation 02 00 954 114 Save Archive KAR j 03 00 954 114 Upload to Repository j 04 00 954 96 View LSID j 05 00 954 85 j 06 00 954 114 I 07 00 954 8 88 Appearance 101 08 00 954 88 j 09 00 953 336 j 10 00 952 322 j 11 00 951 7 289 j 12 00 951 193 j 13 00 950 42 J 14 00 ii 950 j 15 00 950 16 00 950 j 17 00 951 j 18 00 952 f 19 00 952 f 20 00 953 f 21 00 953 f 22 00 953 f 23 00 E 953 00 00 953 N UN mmm Ge O O O amp amp amp amp Mm Mm D O O O OO O Qi N N OWOM HE DEN OE ee WwW ROMMUaANDH UN io wil NinnewoedbnununbanNnaD DU onono himo 93 M UW WW WNN mj SS vi 34 J lw 277 277 196 264 We DOWaAMWWWHNNYHANOwAwy uw oo POUMUUMADNBMYNDRBBONDAWYNNNWOO coococoocoeoeoeoeoeoeoeoeoeoeoeoeoeocCoCeoSCSe Ob o o ooco Figure 17 Previewing a data set 6 4 2 Searching for Available Processing Components Kepler comes standard with over 350 workflow components and the ability to modify and create your own You can create an innumerable number of workflows with a variety of analytic functions The default set of Kepler processing components is displayed under the Components tab Components are organized
58. ork for heterogeneous concurrent modeling and design with a Java based component assembly framework using a graphical interface called Vergil The Ptolemy II software is a product of the Ptolemy project at the University of California at Berkeley a project whose goal is the use of well defined models of computation that govern the interactions between components As explained at the project s website Ptolemy II includes a number of domains each of which realizes a model of computation It also includes a component library and a number of support packages such as graphing mathematics plot and data packages For more information about Ptolemy II see http ptolemy eecs berkeley edu index html Although not originally intended for scientific workflows Ptolemy II provides support for dataflow oriented models which is a very important characteristic of scientific workflows Because Ptolemy II provides an open source mature platform for model design and execution including various models of computation and is well documented and easily extensible it was chosen as the foundation for Kepler 8 2 Actor Reference Documentation for actors and directors is available in the Actor Reference document Additionally this documentation is available within the Kepler interface To get documentation 1 Right click the actor or director 2 Select Documentation 3 Then select Display Figure 37 49 K P a P Devo DM 3 Garp Pr
59. roject org Kepler releases are a continual work in progress and Kepler users are encouraged to contribute to the product by suggesting new features and notifying the designers of bugs and other problems See https kepler project org developers get involved for more information Community involvement in the on going development of Kepler has proved valuable because it allows the system to quickly adapt to the needs of practicing scientists To stay abreast of changes and updates subscribe to the Kepler users mailing list at http mercury nceas ucsb edu ecoinformatics mailman listinfo kepler users 2 1 System Requirements Recommended system requirements for running Kepler e 300 MB of disk space e 512 MB of RAM minimum 1 GB or more recommended e 2 GHz CPU minimum e Java 1 6 e Network connection optional Although a connection is not required to run Kepler many workflows require a connection to access networked resources e R software optional R is a language and environment for statistical computing and graphics and it is required for some common Kepler functionality To download and install Kepler follow the instructions for your system Downloading the installer files may be time consuming depending upon your connection NOTE Java 1 6 is required and can be obtained from Sun s Java website at http java sun com j2se downloads or from your system administrator NOTE Kepler has many actors that ut
60. the components simple Connections between the components 1 e channels are also represented visually so that the flow of data and processing is clear Each time you open an existing workflow or create a new workflow a new application window opens Multiple windows allow you to work on several workflows simultaneously and compare copy and paste components between Workflow canvases 6 Basic Operations in Kepler This section covers the basic operations in Kepler opening and running an existing workflow and some techniques for editing designing and creating your own workflows 15 6 1 Opening an Existing Scientific Workflow In Kepler workflows may be found as xml MoML or KAR files A KAR 1s an archive file a JAR that aggregates many files into one A workflow KAR is one that contains a MoML workflow file To open or save a workflow KAR use File gt Open File gt Save and File gt Save As To save a workflow as xml only use Export The demo workflows discussed here are xml files 1 From the Menu bar select File then Open MoML A standard file dialog box will appear 2 Workflows discussed in this guide are stored in your KeplerData workflows module outreach 2 X Y demos getting started directory so navigate there KeplerData is in Documents and Settings on Windows or your home directory on Linux and Mac Kepler Edit View Workflow Tools Window Help aA00 New Workflow e
61. the use of the data Description transformation actors to process a genetic Sequence and display the data as XML a sequence and HTML Assumptions The sampleEntry xml file exists in your getting started directory SDF Director A genetic sequence in XML format in a file StringToXML Display Parameters FileReader fileOrURL sampleEntry xml This workflow demonstrates the use of the data transformation actors to process a genetic sequence The sequence is displayed in three different ways first in its native format XML second as a sequence element that has been extracted from the XML format and third as an HTML document that might be used for display on a web site Both of the latter two operations are performed using a composite actor that hides some of the complexity of the underlying operation These composites can be thought of as sub workflows that execute a potentially complex set of tasks when called A Relation is used to branch the data output by the File Reader actor so that it can be shared by all of the necessary components The workflow uses two composite actors Sequence Getter Using XPath and HTML Generator Using XSLT to process the returned XML data and convert it into a sequence of elements and an HTML file respectively These actors have been created for use with this workflow using existing Kepler actors Sequence Getter Using XPath and HTML Generator Using XSLT do not appear in the Components tab To see t
62. ure ports dialogue box click Add twice to add two new ports Designate the new ports as input ports by clicking the checkbox named Input beside each port 13 Name the new input ports by double clicking the blank box in the Name column Add the name T AIR for one input and BARO for the other Click Commit to save the changes Figure 27 1w Configure ports for RExpression Opt Maigxet 3 Type To os a ae eae ya onvert to Appearance Figure 27 Adding and customizing ports 14 To configure the R script right click the RExpression actor and select Configure Actor In the R function or script dialogue box change the value of the R function or script from the default to the following res lt lm BARO T AIR res plot T AIR BARO abline res The above R script tells the RExpression actor to read the Barometric Pressure and Air Temperature data and then plot the values along with a regression line Click Commit to save your changes 15 Find the text Display actor to the Workflow canvas The Display actor is located under Components gt Data Output gt Workflow Output gt Textual Output 16 Connect the lower output port of the RExpression actor to the input port of the Display actor 17 Drag and drop the mageJ actor to the Workflow canvas The ImageJ actor is located under Components gt Data Output gt Workflow Output gt Graphical Output Connect the upper output port of t
63. y Kepler Te ew Getting Started with Kepler The Getting Started with Kepler guide is a tutorial style manual for scientists who want to create and execute scientific workflows Table of Contents l MMM OC IAG TOM ocasenactetaadadsaterasanentdiua veenscvanousadedsnenrssaeantdiuatecnsnranoueisedseennsssonntdisauocemeammeites 2 Pi WEE de ee a ee ee eee ee ee 2 12 What are Scientic W OPT LOWS lennti iann n E A 4 2 Downloading and Installing Kepler oo ccsessessesseeeeeeeeceeeeeeeeeseeeeaaeaaeeeeeeseeees 5 Dg OVS EER COU Mec UG er TAT E ETA N 5 2 2 Installing on Windows cccccccceccccceccceeeeeeeeeaaeeesessseeeeeeeeeeeeeeeseeeeeeaaaaaaeeesseeeees 6 23s Installing on Macintos Rene 6 pe a O EDO er e E A A E E E E AE 6 Di Darne Eepe oeenn n E EER AA E EE AAE AENEA E 7 3 1 Windows and Macintosh Platforms ccccccseesseesssssssssessesssessssesssssesseeeeseens 7 s2 LU od F110 8 eee nn ee meer a eee ee E ee T A Basic Components m Kepler occcacacssstiessoavedewanastenestodeudeacsasdoesmoredenavastantstededdendoesdeisawaceeds I d Decor and Ae O r a E E E A TANE 8 Bec NOUS clin crce verses A A E to cassis pein oath E E otoconia AE due ogde cans 9 doa ERC MONG e a E EE EAE E A EEE E A E 10 Mie P a E E ee A E E 10 5 Kepler Interface cc cccccccccccccccccsssseeecccceeeccaeseseeeccceeessaaseeseeecceeesesuaaeseeeeeeeeeesaaaneees 10 ils lS TO OID AR eer er a A A T E A AEO 11 5 2 Components D
Download Pdf Manuals
Related Search
Related Contents
Ne-O-dor Destructeur naturel d`odeurs JUX机 INSTALLATION INSTRUCTIONS TC920LED Zinsser 249054 Use and Care Manual TK-AB40 取扱説明書 et la segmentation du marche Copyright © All rights reserved.
Failed to retrieve file