diff --git a/Formula/blast.rb b/Formula/blast.rb index 2d253cb63c..601bee9c76 100644 --- a/Formula/blast.rb +++ b/Formula/blast.rb @@ -1,9 +1,9 @@ class Blast < Formula desc "Basic Local Alignment Search Tool" homepage "https://blast.ncbi.nlm.nih.gov/" - url "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.9.0/ncbi-blast-2.9.0+-src.tar.gz" - version "2.9.0" - sha256 "a390cc2d7a09422759fc178db84de9def822cbe485916bbb2ec0d215dacdc257" + url "https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.10.0/ncbi-blast-2.10.0+-src.tar.gz" + version "2.10.0" + sha256 "3acdd9cec01c4f43e56aeaf89049cb8f8013d60b9c1705eced10166967f1d926" bottle do sha256 "9fef86c970bdc8556a479920bffd3d33a57c0ce7bdcad4c44f2469e116f940aa" => :catalina @@ -34,11 +34,22 @@ class Blast < Formula end test do + output = shell_output("#{bin}/update_blastdb.pl --showall") + assert_match "nt", output + (testpath/"test.fasta").write <<~EOS >U00096.2:1-70 AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC EOS output = shell_output("#{bin}/blastn -query test.fasta -subject test.fasta") assert_match "Identities = 70/70", output + + # Create BLAST database + output = shell_output("#{bin}/makeblastdb -in test.fasta -out testdb -dbtype nucl") + assert_match "Adding sequences from FASTA", output + + # Check newly created BLAST database + output = shell_output("#{bin}/blastdbcmd -info -db testdb") + assert_match "Database: test", output end end