Mercurial > repos > devteam > data_manager_fetch_genome_dbkeys_all_fasta
comparison data_manager/data_manager_fetch_genome_all_fasta_dbkeys.py @ 7:b1bc53e9bbc5 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:14:56 -0400 |
parents | 60994ca04177 |
children | 14eb0fc65c62 |
comparison
equal
deleted
inserted
replaced
6:16ab4dd6a0e5 | 7:b1bc53e9bbc5 |
---|---|
203 | 203 |
204 | 204 |
205 def _download_file(start, fh): | 205 def _download_file(start, fh): |
206 tmp = tempfile.NamedTemporaryFile() | 206 tmp = tempfile.NamedTemporaryFile() |
207 tmp.write(start) | 207 tmp.write(start) |
208 tmp.write(fh.read()) | 208 while True: |
209 data = fh.read(CHUNK_SIZE) | |
210 if data: | |
211 tmp.write(data) | |
212 else: | |
213 break | |
209 tmp.flush() | 214 tmp.flush() |
210 tmp.seek(0) | 215 tmp.seek(0) |
211 return tmp | 216 return tmp |
212 | 217 |
213 | 218 |