Hello Alan

Yes, it is fine now after I changed to dot product.

Thanks
Ketan

Alan Williams wrote:
> Ketan wrote:
>> Hello
>>
>> I get a similar output even with the beanshell processors. Workflow 
>> attached.
>> The inputs are list with depth one.
>
> You are feeding lists into services that expect single values.  What 
> happens is that Taverna, by default, performs a cross product.  If you 
> give your service, image_crop, two inputs [1,2,3,4], [x,y,z] then the 
> service is called twelve times with 1 and x, 1 and y, 1 and z, 2 and 
> x, 2 and y, 2 and z etc.
>
> The outputs will be lists of depth 2, corresponding to the results for 
> the inputs [[1&x, 1&y, 1&z], [2&x,2&y,2&z], [3&x,3&y,3&z], 
> [4&x,4&y,4&z]].
>
> You are then feeding the lists of depth 2 into interpolation that 
> expects single values.  Because of the cross product, the outputs are 
> lists of depth 4.
>
> And so on, deeper into the workflow.
>
> You need to think about whether you really mean to do cross-product. 
> The alternative is dot product where given two lists, [1,2,3] and 
> [x,y,z], the service will be called with [1&x, 2&y, 3&z] i.e. the 
> elements of the lists are matched up.  Note that dot product only 
> works when the lists are the same length.
>
> If you want dot product, click on a service, look in the contextual 
> view (bottom left hand side), click on "List Handling" and then 
> "Configure list handling".  A new configuration panel will pop-up.
>
> Click on Cross Product in the tree like form.  Then click "Change to 
> Dot Product" on the top.  (You may need to expand the window to see 
> it.) Click OK.
>
> You will need to do this for all the services where you don't want 
> cross-product.  Once this is done, the outputs will be lists of depth 1.
>
> I've attached the beanshell workflow with the list handling changed, 
> so you can see the effect.
>
>> Regards
>> Ketan
>
> Alan
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> ------------------------------------------------------------------------
>
> _______________________________________________
> taverna-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/taverna-users
> Documentation: http://www.mygrid.org.uk/usermanual1.7/
> FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
> Biological Services: 
> http://www.mygrid.org.uk/wiki/Mygrid/BiologicalWebServices

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
taverna-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/taverna-users
Documentation: http://www.mygrid.org.uk/usermanual1.7/
FAQ: http://www.mygrid.org.uk/wiki/Mygrid/TavernaFaq
Biological Services: http://www.mygrid.org.uk/wiki/Mygrid/BiologicalWebServices

Reply via email to