Created
August 25, 2015 23:23
-
-
Save semenko/c7f8c7c5b6a1d44f70bf to your computer and use it in GitHub Desktop.
BLAST to BLAST+ upgrade annoyer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Get called script name (e.g. myscript.sh) | |
SCRIPTNAME=$(basename $0) | |
if tty -s | |
then | |
USER_TTY=`tty` | |
# Be annoying. | |
echo "\a@@@ WARNING @@@:\nThe $SCRIPTNAME tool has been discontinued by the NCBI." > $USER_TTY | |
echo "Please consider converting your scripts to use the new BLAST+ tools.\n" > $USER_TTY | |
# Hide errors if they pass something incorrect to the tool. | |
if `legacy_blast.pl "$SCRIPTNAME" "$@" --print_only >/dev/null 2>&1` | |
then | |
echo -n "You should test updating your scripts to use the following command instead:\n\t" > $USER_TTY | |
echo `legacy_blast.pl "$SCRIPTNAME" "$@" --print_only` > $USER_TTY | |
fi | |
fi | |
sleep 1 | |
/srv/cgs/local/ncbi-blast/blast-2.2.25/bin/"$SCRIPTNAME" "$@" | |
#END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment