mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
#) An "xy_plot" tool and a new "build_ucsc_custom_track" tool that
demonstrate the various features added here.
#) Grouping constructs for tool parameters:
- "repeat" element allows for a set of parameters to be repeated an
arbitrary number of times
- "conditional" element allows choosing a set of parameters to display
based on the value of another parameter
These constructs can be arbitrarily nested. Their values are structured
and can be used in hooks, validation, et cetera
#) Support for generating arbitrary config files to pass to a tool
#) Command lines are now full Cheetah templates
#) Better job error reporting, includes tracebacks for internal errors
preparing the job (database change required, see below!)
#) Preparation of command line, config files, exec_before_job hook moved
into job execution stage
#) Parameter values now jsonified before storing in database (this is much
more rigorous that before, and restoring from the database now works
properly)
DATABASE CHANGE:
alter table job add column traceback text;
24 lines
572 B
Bash
Executable File
24 lines
572 B
Bash
Executable File
#!/bin/sh
|
|
|
|
### Run R providing the R script in $1 as standard input and passing
|
|
### the remaining arguments on the command line
|
|
|
|
# Function that writes a message to stderr and exits
|
|
function fail
|
|
{
|
|
echo "$@" >&2
|
|
exit 1
|
|
}
|
|
|
|
# Ensure R executable is found
|
|
which R > /dev/null || fail "'R' is required by this tool but was not found on path"
|
|
|
|
# Extract first argument
|
|
infile=$1; shift
|
|
|
|
# Ensure the file exists
|
|
test -f $infile || fail "R input file '$infile' does not exist"
|
|
|
|
# Invoke R passing file named by first argument to stdin
|
|
R --vanilla --slave $* < $infile
|