Mercurial > repos > peterjc > tmhmm_and_signalp
diff tools/protein_analysis/seq_analysis_utils.py @ 6:39a6e46cdda3
Migrated tool version 0.0.9 from old tool shed archive to new tool shed repository
author | peterjc |
---|---|
date | Tue, 07 Jun 2011 17:41:38 -0400 |
parents | fe10f448d641 |
children | 5e62aefb2918 |
line wrap: on
line diff
--- a/tools/protein_analysis/seq_analysis_utils.py Tue Jun 07 17:40:55 2011 -0400 +++ b/tools/protein_analysis/seq_analysis_utils.py Tue Jun 07 17:41:38 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)