From aa988de5463146d42a5c75aeca43d4c192f30fe0 Mon Sep 17 00:00:00 2001 From: proost Date: Thu, 27 Apr 2017 14:29:12 +0200 Subject: [PATCH] fixes --- blast_on_cluster.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blast_on_cluster.py b/blast_on_cluster.py index 828fab4..93430ef 100644 --- a/blast_on_cluster.py +++ b/blast_on_cluster.py @@ -61,7 +61,7 @@ def execute_command_on_cluster(submission_script, cmd, threads=1): submission_script] print(qsub_cmd) - # subprocess.call(qsub_cmd) + subprocess.call(qsub_cmd) def run(): @@ -73,10 +73,12 @@ def run(): print("Waiting for command to execute...") - for line in sys.stdin(): + for line in sys.stdin: if check_line(line): print("\n\tCommand found! Executing") execute_command_on_cluster(submission_script, line.strip()) + else: + print(line, end='') if __name__ == "__main__": run()