annotate trimmomatic.sh @ 2:e7c8359dfa23 draft

Uploaded version 0.32.2 (now uses GALAXY_SLOTS).
author pjbriggs
date Wed, 22 Apr 2015 09:28:59 -0400
parents a2e6088d1165
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
1 #!/bin/sh
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
2 #
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
3 # Shell wrapper to run Trimmomatic jar file as a Galaxy tool
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
4 echo Arguments:
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
5 for i in $@ ; do
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
6 echo "*" $i
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
7 done
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
8 java $@ 2>&1 | tee trimmomatic.log
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
9 status=$?
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
10 echo "Exit status: $status"
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
11 # Check for successful completion
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
12 if [ -z "$(tail -1 trimmomatic.log | grep "Completed successfully")" ] ; then
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
13 echo "Trimmomatic did not finish successfully" >&2
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
14 exit 1
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
15 fi
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
16 exit $status
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
17 ##
a2e6088d1165 Uploaded latest version to check tool tests.
pjbriggs
parents:
diff changeset
18 #