You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifadded.qsize() ==0: ## Check if no genome was succesfully downlaoded if no break
145
-
logger.info("None of listed genomes could be downloaded! Files not downloaded will be printed to {outdir}/FlexTaxD.missing".format(outdir=self.outdir.rstrip("/")))
ifself.added==0: ## Check if no genome was succesfully downlaoded if no break
146
+
logger.info("None of listed genomes could be downloaded! Files not downloaded will be printed to {outdir}/FlexTaxD.missing".format(outdir=self.outdir.rstrip("/")))
147
+
self.write_missing(files)
154
148
break
155
-
else:
156
-
self.not_downloaded+=missing.get()
157
-
count+=1
158
-
iflen(self.not_downloaded) >0:
159
-
self.write_missing(self.not_downloaded)
149
+
l=len(self.genome_names)
150
+
gen=added.get()
151
+
ifgen:
152
+
self.genome_names+=gen
153
+
self.genome_path[gen] =fpath.get()
154
+
ifl==len(self.genome_names):
155
+
break
156
+
else:
157
+
self.not_downloaded+=missing.get()
158
+
count+=1
159
+
ifadded.qsize():
160
+
break
161
+
iflen(self.not_downloaded) >0:
162
+
self.write_missing(self.not_downloaded)
163
+
exceptKeyboardInterrupt:
164
+
logger.info("Program was interrupted by user: cleaning up subprocesses!")
165
+
finally: ## Make sure all sub-processes are ended even if program is forced to quit
166
+
ifany(proc.is_alive() forprocinjobs):
167
+
forpinjobs:
168
+
print(p)
169
+
p.kill()
170
+
time.sleep(1)
171
+
ifany(proc.is_alive() forprocinjobs):
172
+
logger.error("Could not stop all subprocesses check your process manager and end them manually!")
160
173
returnself.not_downloaded
161
174
162
-
defrun(self, files, representatives=False):
175
+
defrun(self, files, representative=False,url=""):
163
176
'''Download list of GCF and or GCA files from NCBI or download represenative genomes
0 commit comments