You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# input: m8 tabular output with multiple results for a single record (header). Provides an output with only one result per record, based on the result with the smallest e value
# Chiu Laboratory
# University of California, San Francisco
# January, 2014
#
# Copyright (C) 2014 Samia N Naccache - All Rights Reserved
# SURPI has been released under a modified BSD license.
# Please see license file for details.
scriptname=${0##*/}
if [ $# = 0 ]
then
echo "Usage: $scriptname <blastn>"
exit
fi
echo -e "$(date)\t$scriptname\tStarting uniq sort on $1"
sort -k1,1 -k11,11g $1 | sed 's/\t/,/g' | sort -u -t, -k 1,1 | sed 's/,/\t/g' > $1.uniq
echo -e "$(date)\t$scriptname\tDone uniq sort on = $1"