From 35787b9bfcf1595bdb0d685e90803f9607c892ac Mon Sep 17 00:00:00 2001 From: IsmailM Date: Sun, 27 Dec 2020 23:34:18 +0000 Subject: [PATCH] Use ncbi-blast-dbs to download swissprot db --- Rakefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index b2f4b5be..a02275b8 100644 --- a/Rakefile +++ b/Rakefile @@ -218,12 +218,8 @@ namespace :package do mkdir 'blast_db' cd 'blast_db' do - sh 'update_blastdb.pl --decompress swissprot' do |_, e| - abort 'update_blastdb.pl failed to run.' if e.exitstatus == 2 - # This script returns 0 on successful operations that result in no - # downloads, 1 on successful operations that downloaded files, - # and 2 on errors. - end + sh 'bundle exec genevalidator ncbi-blast-dbs swissprot' + sh 'rm swissprot.tar.*' end end end