Created
July 23, 2024 14:32
-
-
Save audy/e9b58da15aa45557dbeeddd47cd63927 to your computer and use it in GitHub Desktop.
pretty-blastn.sh
This file contains hidden or 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
pretty-blastn () { | |
column_names=(qaccver saccver pident length mismatch gapopen qstart qend sstart send slen evalue bitscore) | |
column_names_string=$(IFS=' ' ; echo "${column_names[*]}") | |
header=$(IFS=',' ; echo "${column_names[*]}") | |
echo "${header}" | |
blastn \ | |
-outfmt "10 delim=, ${column_names_string}" \ | |
"${@}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment