view trimmomatic.sh @ 1:2bd7cdbb6228 draft

Add README and citation tags.
author pjbriggs
date Tue, 09 Dec 2014 09:41:33 -0500
parents 3358c3d30143
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
##
#