# Error handling. set -uex # Create blast directory. mkdir -p ~/db # Download the latest blast database into this directory. (cd ~/db && update_blastdb.pl --decompress Betacoronavirus) # View the content of the blast database. blastdbcmd -info -db ~/db/Betacoronavirus # How many complete genomes in the Blast database? blastdbcmd -db ~/db/Betacoronavirus -entry all -outfmt "%t" | grep "complete genome" | wc -l