On 11/07/2013 08:22, Alessandro Oggioni wrote:
 > Dear all,

Hello

 > For my work I usually used R to implemented processes. My idea is to
 > crate a workflow in Taverna using R scripts, to obtain plots or numeric
 > values.
 > I followed the documentation about Rshell
 > (http://dev.mygrid.org.uk/wiki/display/taverna/Rshell) and I installed
 > also Rserve on a different machine to where I run Taverna workbench. I
 > executed the very easy script (eg. y <– sin(x)) and this work fine. I
 > implemented also a workflow with different Rshell using deparse and
 > parse commands.
 > In this moment I have 2 type of problems:
 > 1. I have created R script with a R function. Which is the semantic type
 > to use in the output port in Rshell service? Could be possible to use
 > the R-expression?

Yes, R-expression should be available as an output port's type.

 > 2. I have used Execute_SQL_Query Service. Which is the depth values to
 > obtain a result list that I can use as input in a Rshell?

The Execute SQL query service returns a list of sub-lists. Each sub-list 
corresponds to a row of queried variables. The elements in the sub-list 
are the values for the variables.

If you have, for example, an R script that takes a single integer input, 
it will not matter if you feed the results of the SQL query into it. 
Taverna will iterate over the elements of the lists and call the R 
script multiple times.

 > And in Rshell
 > service what kind of semantic type should I use to the input from a SQL
 > query?

It depends if you want to call the Rshell service once per value or once 
per row. You can choose a single value, such as Integer or a vector such 
as Integer vector.

I hope this helps.

 > Many thanks in advance
 >
 > Alessandro

Alan


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
taverna-users mailing list
[email protected]
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/

Reply via email to