From e79b280635e3c5b70131aaab5844bd7c53181478 Mon Sep 17 00:00:00 2001 From: Anurag Priyam Date: Sun, 30 Apr 2017 14:34:47 +0100 Subject: [PATCH] Add ability to download taxdump. Signed-off-by: Anurag Priyam --- lib/ncbi-blast-dbs.rake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/ncbi-blast-dbs.rake b/lib/ncbi-blast-dbs.rake index dc8a1b4..da5be96 100644 --- a/lib/ncbi-blast-dbs.rake +++ b/lib/ncbi-blast-dbs.rake @@ -47,8 +47,13 @@ databases.each do |name, files| multitask(name => files.map { |file| task(file) { download(file) } }) end +# Taxonomy database is different from sequence databases. +task :taxdump do + download 'ftp://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz' +end + # List name of all databases that can be downloaded if executed without # any arguments. task :default do - puts databases.keys.join(', ') + puts databases.keys.push('taxdump').join(', ') end