def download(self): BlastDatabase.download(self) # wget chokes on files >2GB # invoke = ConfigSys.wget + " -nc" # -nc to overwrite existing file with same name invoke = ConfigSys.curl + " -O -s " if (not self.flag_debug): invoke += " -nv" invoke += " " + self.url + "/" + self.downloaded_filemask self.invokeCmd(invoke)
def download(self): BlastDatabase.download(self) invoke = ConfigSys.cp + " " + self.script_cwd + "/update_blastdb.pl ." self.invokeCmd(invoke) # use the --force flag, update_blastdb.pl isn't clever enough to detect # incomplete downloads invoke = ConfigSys.perl + " update_blastdb.pl --force" if (self.flag_debug): pass # invoke += " --verbose" # do nothing, this debug is too detailed invoke += " " + self.name self.invokeCmd(invoke)
def download(self): BlastDatabase.download(self) ftp.getDB(self.name, Config.ncbi_formatted, self.workdir, self.flag_debug)