annotate trimmomatic.sh @ 2:a60283899c6d
draft
Version 0.32.2: use GALAXY_SLOTS to set number of threads.
author |
pjbriggs |
date |
Wed, 22 Apr 2015 09:36:27 -0400 |
parents |
3358c3d30143 |
children |
|
rev |
line source |
0
|
1 #!/bin/sh
|
|
2 #
|
|
3 # Shell wrapper to run Trimmomatic jar file as a Galaxy tool
|
|
4 echo Arguments:
|
|
5 for i in $@ ; do
|
|
6 echo "*" $i
|
|
7 done
|
|
8 java $@ 2>&1 | tee trimmomatic.log
|
|
9 status=$?
|
|
10 echo "Exit status: $status"
|
|
11 # Check for successful completion
|
|
12 if [ -z "$(tail -1 trimmomatic.log | grep "Completed successfully")" ] ; then
|
|
13 echo "Trimmomatic did not finish successfully" >&2
|
|
14 exit 1
|
|
15 fi
|
|
16 exit $status
|
|
17 ##
|
|
18 #
|