Mercurial > repos > peterjc > tmhmm_and_signalp
diff tools/protein_analysis/seq_analysis_utils.py @ 6:a290c6d4e658
Migrated tool version 0.0.9 from old tool shed archive to new tool shed repository
author | peterjc |
---|---|
date | Tue, 07 Jun 2011 18:07:09 -0400 |
parents | f3b373a41f81 |
children | 9b45a8743100 |
line wrap: on
line diff
--- a/tools/protein_analysis/seq_analysis_utils.py Tue Jun 07 18:06:27 2011 -0400 +++ b/tools/protein_analysis/seq_analysis_utils.py Tue Jun 07 18:07:09 2011 -0400 @@ -102,7 +102,7 @@ raise err return files -def run_jobs(jobs, threads, verbose=False): +def run_jobs(jobs, threads, pause=10, verbose=False): """Takes list of cmd strings, returns dict with error levels.""" pending = jobs[:] running = [] @@ -126,7 +126,7 @@ process = subprocess.Popen(cmd, shell=True) running.append((cmd, process)) #Loop... - sleep(10) + sleep(pause) if verbose: print "%i jobs completed" % len(results) assert set(jobs) == set(results)