1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
#!/bin/bash
cmd="";
for i in "$@"
do
case $i in
-o=*|--outname=*)
OUTNAME="${i#*=}"
shift # past argument=value
;;
*)
cmd="$cmd $i"
;;
esac
done
bl_asn=${OUTNAME}.asn
bl0_out="$OUTNAME.html"
blm_out="$OUTNAME.msa"
blt_out="$OUTNAME.bl_tab"
# echo "OUTFILE = ${OUTNAME}"
#export BLAST_PATH="/ebi/extserv/bin/ncbi-blast+/bin"
export BLAST_PATH="/usr/bin"
$BLAST_PATH/blastp -outfmt 11 $cmd > $bl_asn
$BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 0 -html > $bl0_out
$BLAST_PATH/blast_formatter -archive $bl_asn -outfmt '7 qseqid qlen sseqid slen pident length mismatch gapopen qstart qend sstart send evalue bitscore score btop' > $blt_out
$BLAST_PATH/blast_formatter -archive $bl_asn -outfmt 2 > $blm_out
|