view README.txt @ 6:78044a3d4a21

Readme = wiki more or less now
author Ross Lazarus <ross.lazarus@gmail.com>
date Thu, 31 May 2012 10:49:22 +1000
parents 9c1a1e0e664a
children 7221619caefa
line wrap: on
line source

= WARNING before you start =
This tool should only ever be installed on a private instance - NEVER use it on a public Galaxy because the risks are too awful to contemplate let alone manage. You have been warned.

== Motivation ==
Simple transformation, filtering or reporting scripts get written, run and lost every day in most busy labs - even ours where Galaxy is in use. This 'dark script matter' is pervasive and generally not reproducible. 

After considerable nagging, I wrote and installed a new tool locked down to allow only two other trusted bioinformatician users to paste and run (NO sandbox!) arbitrary scripts - see screenshot attached. 

== Benefits ==
For our group, this allows Galaxy to fill that important dark script gap - all those "small" bioinformatics tasks - because once a trusted user has a working R (or python or perl) script that takes parameters the way Galaxy supplies them (see example below), they: 

1) run the new tool

2) paste their code into the tool 'script' text box

3) select the optional history input (and some other odds and ends - see screen shot) and 

4) run the tool and thus the script. 

== Proposal - a Galaxy toolshed interface ==
Rerunning the output of the existing script reruns the same script of course, so we're now better off than we were before. But what about adding some code to this script runner tool to generate a new Galaxy tool as a ready to install toolshed entry? 

This (imho) will be a very low impedence way to generate new simple Galaxy tools - run them until they work then package them up and deploy/distribute for any user to use - no new security risks.

Does this seem like a good idea to anyone else?

== Proof of concept ==

=== Obligatory screenshot ===
[[http://bitbucket.org/fubar/galaxytoolmaker/src/fda8032fe989/images/dynamicScriptTool.png|proof of concept screengrab]]

=== Sample Rscript ===
As a working example, this trivial Rscript replaces the score column in a bed file with a random number:
{{{
  ourargs = commandArgs(TRUE)
  inf = ourargs[1]
  outf = ourargs[2]
  inp = read.table(inf,head=F,row.names=NULL,sep='\t')
  inp[,5] = runif ( nrow(inp) )
  write.table(inp,outf, quote=FALSE, sep="\t",row.names=F,col.names=F)
}}}

== Licensing ==
All project artefacts are copyright Ross Lazarus (ross period lazarus at gmail period com) 2012
All rights reserved.
You may accept a license from me under the LGPL if you want to use this code for any reason.
Please see http://www.gnu.org/licenses/lgpl.html for details