lib/ecf_classify/zenodo.rb in ecf_classify-1.0.2 vs lib/ecf_classify/zenodo.rb in ecf_classify-1.0.3
- old
+ new
@@ -19,10 +19,10 @@
## downloads the current dataset
##
## returns
## true if everything is ok
def self.download
- perma_record = open(RECORD_URL)
+ perma_record = URI.open(RECORD_URL)
FILES.each do |key,file|
download = open(perma_record.base_uri.to_s + "/files/" + file)
IO.copy_stream(download, path(key))
if(file.split(".").last == "hmm")
EcfClassify::HMMER.hmmpress(path(key))