annotate trimmomatic.sh @ 3:f8a9a5eaca8a draft

Updated to version 0.32.3: add support for FASTQ pairs (dataset collections)
author pjbriggs
date Wed, 23 Sep 2015 08:59:23 -0400
parents 3358c3d30143
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
1 #!/bin/sh
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
2 #
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
3 # Shell wrapper to run Trimmomatic jar file as a Galaxy tool
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
4 echo Arguments:
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
5 for i in $@ ; do
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
6 echo "*" $i
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
7 done
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
8 java $@ 2>&1 | tee trimmomatic.log
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
9 status=$?
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
10 echo "Exit status: $status"
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
11 # Check for successful completion
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
12 if [ -z "$(tail -1 trimmomatic.log | grep "Completed successfully")" ] ; then
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
13 echo "Trimmomatic did not finish successfully" >&2
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
14 exit 1
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
15 fi
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
16 exit $status
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
17 ##
3358c3d30143 Uploaded initial version.
pjbriggs
parents:
diff changeset
18 #