lib/rbbt/sources/organism.rb in rbbt-sources-3.2.6 vs lib/rbbt/sources/organism.rb in rbbt-sources-3.2.8
- old
+ new
@@ -66,10 +66,13 @@
claim Organism[organism], :rake, Rbbt.share.install.Organism[organism].Rakefile.find
module_eval "#{ organism } = with_key '#{organism}'"
end
- Rbbt.claim Rbbt.software.opt.bin.liftOver, :url, "http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver"
+ Rbbt.claim Rbbt.software.opt.bin.liftOver, :proc do |file|
+ url = "http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver"
+ CMD.cmd_log("wget '#{url}' -O '#{file}' && chmod +rx #{file}")
+ end
def self.hg_build(organism)
require 'rbbt/sources/ensembl_ftp'
organism = organism.strip
return organism if organism =~ /^hg\d\d$/