From 4cfda5c6324802f193b37d83ecb06d790746e400 Mon Sep 17 00:00:00 2001 From: chloefishstar <51824912+chloefishstar@users.noreply.github.com> Date: Thu, 18 Jun 2020 23:30:02 +0800 Subject: [PATCH] Update SplitFusion.py --- exec/SplitFusion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exec/SplitFusion.py b/exec/SplitFusion.py index 372d56c..f2d09b0 100755 --- a/exec/SplitFusion.py +++ b/exec/SplitFusion.py @@ -4,6 +4,7 @@ import re import os import argparse +from future.utils import viewitems def parseArgs(): @@ -96,7 +97,7 @@ def mkdir(path): if __name__ == '__main__': args = parseArgs() - output=[str(k) + "=" + "\"" + str(v)+ "\"" for k,v in args.iteritems() if v != None] + output=[str(k) + "=" + "\"" + str(v)+ "\"" for k,v in viewitems(args) if v != None] config_p = args['output'] + "/" + args['sample_id'] + "/" mkdir(config_p) config_o = config_p + "config.txt"