Skip to content

Instantly share code, notes, and snippets.

@audy
Created July 23, 2024 14:32
Show Gist options
  • Save audy/e9b58da15aa45557dbeeddd47cd63927 to your computer and use it in GitHub Desktop.
Save audy/e9b58da15aa45557dbeeddd47cd63927 to your computer and use it in GitHub Desktop.
pretty-blastn.sh
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