#!/bin/sh
#
# Added by Tim Booth <tbooth@ceh.ac.uk>
# Qiime wants very much to use the UClust binary, but this is not free software.
# However, it is available right now free-of-charge if:
#  a) You are an academic user and only want the 32-bit version.
#  b) You promise to use the UClust application only as part of Qiime.
#
# My plan is to put the no-cost UClust into bio-linux-qiime.  If someone
# installs just the reglar qiime package they need to know what to do...

# See if uclust.real is available.
if which uclust.real >/dev/null ; then
    exec uclust.real "$@"
fi

if [ `uname -m` = x86_64 ] ; then
    bits='64-bit'
else
    bits='32-bit'
fi

echo """\
UClust is not freely redistributable and is thus not included in the default Qiime package.

To use this feature, please go to:
    http://www.drive5.com/uclust/downloads1_2_21q.html

Download the $bits binary, then:
    sudo cp uclustq1.2.21_* /usr/local/bin/uclust
    sudo chmod a+x /usr/local/bin/uclust
"""
