Note: some items may not be visible to you, due to viewing permissions.
|
Original Uploader |
Created: 29/11/07 @ 15:31:32
Credits:
License: Creative Commons Attribution-Share Alike 3.0 Unported License
Implementation of the iteration workaround by Tom Oin conform the Q&A below. The nested workflow 'NestedProcessor' is called that to conform to Tom's explanation. For an alternative solution using a java beanshell to clone list items see 'TestIteratorStrategy_withCloning.
This workflow implements the following Q&A:
Marco Roos wrote:
> Dear Taverna user,
>
> Issue 1: Complex iteration
>
> I would like to perform an iteration including a dot product between
> a list and a list of li...
Rating: 0.0 / 5 (0 ratings) | Versions: 1 | Reviews: 0 | Comments: 0 | Citations: 0 Viewed: 57 times | Downloaded: 42 times Tags (5): |
View
Download (v1)
|
|
Original Uploader |
Created: 29/11/07 @ 15:34:52
Credits:
License: Creative Commons Attribution-Share Alike 3.0 Unported License
Utility workflow that clones an item copy_number times. You can use this to work around standard iteration strategies, e.g. in combination with the CountListItems workflow.
Workflow examples: TestIterationStrategy_withClones. For an alternative approach see TestIterationStrategy_withNesting.
Example I/O:
input: A
copy_number: 3
result: [A,A,A]
input: [A,B,C]
copy_number: 3
result: [[A,A,A][B,B,B][C,C,C]]
input: [A,B,C]
copy_number: [3,2]
result: [[[A,A,A],[A,A]][[B,B,B],[B,B]],[[C,C,C],...
Rating: 0.0 / 5 (0 ratings) | Versions: 1 | Reviews: 0 | Comments: 1 | Citations: 0 Viewed: 53 times | Downloaded: 36 times Tags (5): |
View
Download (v1)
|
|
Original Uploader |
Created: 29/11/07 @ 15:35:48 | Last updated: 29/11/07 @ 15:40:30
Credits:
License: Creative Commons Attribution-Share Alike 3.0 Unported License
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 stra...
Rating: 5.0 / 5 (1 rating) | Versions: 2 | Reviews: 0 | Comments: 0 | Citations: 0 Viewed: 66 times | Downloaded: 49 times Tags (6): |
View
Download (v2)
|
Copyright © 2007 - 2011 The University of Manchester and University of Southampton