# HG changeset patch # User pjbriggs # Date 1443012500 14400 # Node ID a7139c612c4506ddcaa39ec736c9bb2a0b4bebb5 # Parent e7c8359dfa239bbb9cc7b5c3ab6048559725b6fc Updated to version 0.32.3: add support for FASTQ pairs (dataset collections) diff -r e7c8359dfa23 -r a7139c612c45 README.rst --- a/README.rst Wed Apr 22 09:28:59 2015 -0400 +++ b/README.rst Wed Sep 23 08:48:20 2015 -0400 @@ -58,6 +58,9 @@ ========== ====================================================================== Version Changes ---------- ---------------------------------------------------------------------- +0.32.3 - Add support for FASTQ R1/R2 pairs using dataset collections (input + can be dataset collection, in which case tool also outputs dataset + collections) and improve order and naming of output files. 0.32.2 - Use ``GALAXY_SLOTS`` to set the appropriate number of threads to use at runtime (default is 6). 0.32.1 - Remove ``trimmomatic_adapters.loc.sample`` and hard-code adapter files diff -r e7c8359dfa23 -r a7139c612c45 install_tool_deps.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install_tool_deps.sh Wed Sep 23 08:48:20 2015 -0400 @@ -0,0 +1,40 @@ +#!/bin/bash +# +# Install dependencies for Trimmomatic for testing from the command line +# +# Installation directory +TOP_DIR=$1 +if [ -z "$TOP_DIR" ] ; then + echo Usage: $(basename $0) DIR + exit +fi +if [ -z "$(echo $TOP_DIR | grep ^/)" ] ; then + TOP_DIR=$(pwd)/$TOP_DIR +fi +if [ ! -d "$TOP_DIR" ] ; then + mkdir -p $TOP_DIR +fi +cd $TOP_DIR +# Trimmomatic 0.32 +INSTALL_DIR=$TOP_DIR/trimmomatic/0.32 +mkdir -p $INSTALL_DIR +wd=$(mktemp -d) +pushd $wd +wget -q http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.32.zip +unzip -qq Trimmomatic-0.32.zip +mv Trimmomatic-0.32/trimmomatic-0.32.jar $INSTALL_DIR/ +mv Trimmomatic-0.32/adapters/ $INSTALL_DIR/ +popd +rm -rf $wd/* +rmdir $wd +# Make setup file +cat > trimmomatic/0.32/env.sh <&2 + exit 1 +fi +tar cvzf $TGZ \ + README.rst \ + trimmomatic.xml \ + trimmomatic.sh \ + tool_dependencies.xml \ + test-data +if [ -f $TGZ ] ; then + echo Created $TGZ +else + echo Failed to created $TGZ >&2 + exit 1 +fi +## +# diff -r e7c8359dfa23 -r a7139c612c45 run_planemo_tests.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run_planemo_tests.sh Wed Sep 23 08:48:20 2015 -0400 @@ -0,0 +1,39 @@ +#!/bin/bash +# +# Install dependencies and set up environment for +# trimmomatic tool, then run tests using planemo +# +# Note that any arguments supplied to the script are +# passed directly to the "planemo test..." invocation +# +# e.g. --install_galaxy (to get planemo to create a +# Galaxy instance to run tests) +# +# --galaxy_root DIR (to run tests using existing +# Galaxy instance) +# +# List of dependencies +TOOL_DEPENDENCIES="trimmomatic/0.32" +# Where to find them +TOOL_DEPENDENCIES_DIR=$(pwd)/test.tool_dependencies.trimmomatic +if [ ! -d $TOOL_DEPENDENCIES_DIR ] ; then + echo WARNING $TOOL_DEPENDENCIES_DIR not found >&2 + echo Creating tool dependencies dir + mkdir -p $TOOL_DEPENDENCIES_DIR + echo Installing tool dependencies + $(dirname $0)/install_tool_deps.sh $TOOL_DEPENDENCIES_DIR +fi +# Load dependencies +for dep in $TOOL_DEPENDENCIES ; do + env_file=$TOOL_DEPENDENCIES_DIR/$dep/env.sh + if [ -e $env_file ] ; then + . $env_file + else + echo ERROR no env.sh file found for $dep >&2 + exit 1 + fi +done +# Run the planemo tests +planemo test $@ $(dirname $0)/trimmomatic.xml +## +# diff -r e7c8359dfa23 -r a7139c612c45 trimmomatic.xml --- a/trimmomatic.xml Wed Apr 22 09:28:59 2015 -0400 +++ b/trimmomatic.xml Wed Sep 23 08:48:20 2015 -0400 @@ -1,12 +1,31 @@ - + flexible read trimming tool for Illumina NGS data - trimmomatic.sh + + trimmomatic + + + + + - - trimmomatic - + ]]> @@ -46,10 +62,23 @@ - - + + + + + + + + + + + + + @@ -101,21 +130,37 @@ - + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "pair_of_files" - + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "pair_of_files" - + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "pair_of_files" - + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "pair_of_files" - + not paired_end['is_paired_end'] + + + + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "collection" + + + + + paired_end['is_paired_end'] + paired_end['paired_input_type_conditional']['paired_input_type'] == "collection" + @@ -159,8 +204,28 @@ --> + + + + + + + + + + + + + + + + + + + + - + + ]]>