From 0dafffc24e23763d4455807a643213634fcb25cd Mon Sep 17 00:00:00 2001 From: j0kaso Date: Wed, 27 Jul 2022 11:37:51 +0200 Subject: [PATCH] [mp-pipeline] bugfix import error and add random timer for deepTMHMM call --- software/rosetta_ddG_pipeline/mp_prepare.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/software/rosetta_ddG_pipeline/mp_prepare.py b/software/rosetta_ddG_pipeline/mp_prepare.py index 11e8f0c..76455e9 100644 --- a/software/rosetta_ddG_pipeline/mp_prepare.py +++ b/software/rosetta_ddG_pipeline/mp_prepare.py @@ -10,8 +10,10 @@ import io import logging as logger import os +import random import subprocess import sys +import time import glob import json @@ -300,7 +302,8 @@ def calc_deepTMHMM(fasta_file, tmp_output_path): run_count = 9 else: run_count += 1 - time.sleep(2*60) # wait 2 minutes before trying to reach the server again + sleeptime = random.randint(1*60, 5*60) + time.sleep(sleeptime) # wait 2 minutes before trying to reach the server again # get total length total_length = len(inputseq)