view trimmomatic_BASE_16831.sh @ 5:069b6b601fad draft default tip

planemo upload for repository https://github.com/SANBI-SA/galaxy-tools/tree/master/tools/trimmomatic commit 779c2af9e413bd7098662231d07e6b857161f48d
author sanbi-uwc
date Mon, 23 Jan 2017 07:53:06 -0500
parents 642a39a927c9
children
line wrap: on
line source

#!/bin/sh
#
# Shell wrapper to run Trimmomatic jar file as a Galaxy tool
echo Arguments:
for i in $@ ; do
    echo "*" $i
done
java $@ 2>&1 | tee trimmomatic.log
status=$?
echo "Exit status: $status"
# Check for successful completion
if [ -z "$(tail -1 trimmomatic.log | grep "Completed successfully")" ] ; then
    echo "Trimmomatic did not finish successfully" >&2
    exit 1
fi
exit $status
##
#