Version 2 (latest)
(of 2)
|
Version created on:
29/11/07 @ 15:35:48
by:
Marco Roos
|
Revision comments
Last edited on: 29/11/07 @ 15:40:30 by: Marco Roos
Title: TestIteratorStrategy_withCloning
Type: Taverna 1
Preview
(Click on the image to get the full size)
Description
This workflow implements a strategy for this problem: > I would like to perform an iteration including a dot product between > a list and a list of lists; example: > Input: > > [1] (1) > [A,B,C] (2) > [[a,b],[c,d],[e,f]] (3) > > Desired output: > > [1Aa, 1Ab, 1Bc, 1Bd, 1Ce, 1Cf]
In this implementation a java beanshell is used to clone the items in list 2 as many times per item as there are items in the sublists of list 3. The iteration strategy for Clone is set to a dot product. Thus a count on list 2 produces: [2,2,2] Clone with input: [2,2,2] . [A,B,C] produces [[A,A],[B,B],[C,C]] (note the dot product) (4) Then concatenation of (1)*((4).(3)) produces: [[1Aa,1Ab],[1Bc,1Bd],[1Ce,1Cf]]
Download
Run
Option 1:
Note: you need to have both the WHIP Launcher and the Taverna myExperiment/WHIP plugin installed on your machine for this to work. See here for information.
Option 2:
Copy and paste this link into File > 'Open workflow location...'
http://www.myexperiment.org/workflows/107/download?version=2
[ More Info
]
Workflow Components
All versions of this Workflow are licensed under the Creative Commons Attribution-Share Alike 3.0 License.
Log in to add Tags
Shared with Groups (0)
None
Current:
5.0 / 5
(1 rating)
Log in to rate and see breakdown of ratings
Statistics
674 viewings
652 downloads
None
Earliest Version:
[1] - TestIteratorStrategy_withCloning
Latest Version:
[2] - TestIteratorStrategy_withCloning
Reviews
(0)
Copyright (c) 2007 - 2008 The University of Manchester and University of Southampton
No comments yet
Log in to make a comment