Mercurial > repos > devteam > data_manager_fetch_genome_dbkeys_all_fasta
changeset 9:0d13eef4f46c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_genome_dbkeys_all_fasta commit 8b8103fc4277014570a021cf3090b6986d17f7ff
author | iuc |
---|---|
date | Thu, 15 Jun 2017 13:13:28 -0400 |
parents | fd88adb3f376 |
children | 872d7cf608f9 |
files | data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py Thu Jun 15 13:13:03 2017 -0400 +++ b/data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py Thu Jun 15 13:13:28 2017 -0400 @@ -205,7 +205,12 @@ def _download_file(start, fh): tmp = tempfile.NamedTemporaryFile() tmp.write(start) - tmp.write(fh.read()) + while True: + data = fh.read(CHUNK_SIZE) + if data: + tmp.write(data) + else: + break tmp.flush() tmp.seek(0) return tmp