Mercurial > repos > sanbi-uwc > trimmomatic
view trimmomatic.sh @ 2:5c5a2a7e9cbb draft
planemo upload for repository https://github.com/SANBI-SA/galaxy-tools/tree/master/tools/trimmomatic commit 213668d2e5a61c806ad992c201ae6e304c6e0965
| author | sanbi-uwc |
|---|---|
| date | Fri, 20 Jan 2017 13:35:17 -0500 |
| parents | d8975856862e |
| children | f6cb99d6afd3 |
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 if [ -n "$CONDA_PREFIX" ] ; then # bioconda installs trimmomatic in a share directory # with a jarfile called trimmomatic.jar TRIMMOMATIC_DIR="$CONDA_PREFIX/share/trimmomatic" JARFILE="trimmomatic.jar" else JARFILE="trimmomatic-0.36.jar" fi if [ -z "$TRIMMOMATIC_DIR" ] ; then echo "TRIMMOMATIC_DIR variable not set, can't find jar file" exit 1 fi java -mx8G -jar $TRIMMOMATIC_DIR/$JARFILE $@ 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 ## #
